FA

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

Please use the user guide at this URL:

http://download.oracle.com/docs/cd/B53825_01/current/acrobat/121faug.pdf
Go to Adjustment API section and there you can find an example of Adjustment API
without invoice information.
2. Regarding the script to select events from depreciation (summary or detail) t
able, you need to extract data from period counter 24180 with this select:
select *
from FA_DEPRN_SUMMARY
where BOOK_TYPE_CODE = 'BTVL B&T DELHI'
and PERIOD_COUNTER = 24180
and deprn_source_code = 'DEPRN'
and deprn_amount <> 0
and event_id IS NULL
3. In order to update the events id please use this script from note 1496778.1 w
hich will populate the missing events id. You should test this first on a TEST i
nstance:
REM Script calls Deprn event creation api
REM Creates depreciation events for the book
REM for the period if it is not already created.
REM Arguments
REM user_id : user_id of the application user for which fnd logging is enabled
REM resp_id : Resp_id of the FA responsibility attached to the user
REM book : Name of the book
REM l_pc : Period counter of the period for which events needs to be created
set serveroutput on
spool b10412648.log
declare
l_app_id number := 140;
l_user_id number := &user_id;
l_resp_id number := &resp_id;
l_book_type_code VARCHAR2(15) := '&book' ;
l_period_counter number := &l_pc;
l_return_status number ;
begin
dbms_output.enable(10000000);
dbms_output.put_line('Start .....');
FND_GLOBAL.APPS_INITIALIZE(l_user_id, l_resp_id, l_app_id);
fnd_profile.put('AFLOG_ENABLED', 'Y');
fnd_profile.put('AFLOG_LEVEL', '1');
fnd_log_repository.init;
FA_SRVR_MSG.Init_Server_Message;
FA_DEBUG_PKG.Initialize;
FA_DEPRN_EVENTS_PKG.process_deprn_events
(p_book_type_code => l_book_type_code,
p_period_counter => l_period_counter,
p_total_requests => 1,
p_request_number => 1,
x_return_status => l_return_status);
dbms_output.put_line('Return Status : ' || l_return_status);
if (l_return_status <> 0) then
dbms_output.put_line('FAILURE');
else
dbms_output.put_line('SUCCESS');
end if;
end;
/

You might also like