How to initialize application parameters, call order import concurrent, and wait for request status
Initialize Application parameters
fnd_global.apps_initialize(user_id => fnd_global.user_id
, resp_id => fnd_global.resp_id
, resp_appl_id => fnd_global.resp_appl_id );
mo_global.init(v_app_short_name);
mo_global.set_policy_context('M',l_org_id);
Submit order import concurrent request
v_req_id := apps.fnd_request.submit_request (application => 'ONT'
, program => 'OEOIMP'
, argument1 => null
, argument2 => null
, argument3 => null
, argument4 => null
, argument5 => 'N'
, argument6 => null
, argument7 => 4
, argument8 => null
, argument9 => null
, argument10 => null
, argument11 => null
, argument12 => 'N'
, argument13 => null
, argument14 => null
, argument15 => 'Y');
Wait for concurrent request to get the phase and status to complete
apps.fnd_concurrent.wait_for_request(v_req_id,
1,
600000,
v_dummy,
v_dummy,
v_dphase,
v_dstatus,
x_dummy);
fnd_global.apps_initialize(user_id => fnd_global.user_id
, resp_id => fnd_global.resp_id
, resp_appl_id => fnd_global.resp_appl_id );
mo_global.init(v_app_short_name);
mo_global.set_policy_context('M',l_org_id);
Submit order import concurrent request
v_req_id := apps.fnd_request.submit_request (application => 'ONT'
, program => 'OEOIMP'
, argument1 => null
, argument2 => null
, argument3 => null
, argument4 => null
, argument5 => 'N'
, argument6 => null
, argument7 => 4
, argument8 => null
, argument9 => null
, argument10 => null
, argument11 => null
, argument12 => 'N'
, argument13 => null
, argument14 => null
, argument15 => 'Y');
Wait for concurrent request to get the phase and status to complete
apps.fnd_concurrent.wait_for_request(v_req_id,
1,
600000,
v_dummy,
v_dummy,
v_dphase,
v_dstatus,
x_dummy);
Comments
Post a Comment