|
|
发表于 2011/9/20 20:27:21
|
显示全部楼层
a120255857 发表于 2011/9/20 12:38 
頂111111111111111
比较简单的逻辑
Step1.通过fnd_request执行,并保存layout和request_id
Step2.通过global variable 保存request_id
Step3.输出Request_id
另附三个图片和一段SQL
='DECLARE
l_layout BOOLEAN;
l_req_id NUMBER;
BEGIN
DELETE FROM xxont.xxont_4716_order_conf_gt;
l_layout := fnd_request.add_layout( ' || '''XXONT''' ||
',' || '''XXONT0701''' ||
',' || 'NULL' ||
',' || 'NULL' ||
',' || '''PDF''' || ');
l_req_id := fnd_request.submit_request( ' || '''XXONT''' ||
',' || '''XXONT0701''' ||
',' || '''''' ||
',' || '''''' ||
',FALSE' ||
',' || ${item.ORDER.HEADER_ID.value} ||
',chr(0));
COMMIT;
INSERT INTO xxont.xxont_4716_order_conf_gt(request_id) VALUES(l_req_id);
END'
|
|