程序中加载layout以及提交请求
[@more@]
fnd_global.apps_initialize(fnd_profile.value('USER_ID'),
fnd_profile.value('RESP_ID'),fnd_profile.value('RESP_APPL_ID'));
v_result := apps.fnd_request.add_layout('XXEEG',
'XXWIPDJSRQ',
'en',
'US',
'EXCEL');
/* template_appl_name => 'XDO' -- Application Short name
,template_code => 'XXMRPIUR'
,template_language => 'English'
,template_territory => p_template_territory
,output_format => 'PDF');*/
x_xx_dis_job_shortage_rep_id := fnd_request.submit_request('XXEEG',
'XXWIPDJSRQ',
null,
sysdate,
false,
p_organization_id,
p_report_type);
exception
when others then
errstring := sqlcode || ' ' || sqlerrm;
retcode := 2;
errbuf := errstring;
end;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/93880/viewspace-1031064/
,如需转载,请注明出处,否则将追究法律责任。