-
PLSQL提交请求集
- PROCEDURE prc_do_import_set(prm_org IN NUMBER,
- prm_appcode OUT NUMBER,
- prm_appmsg OUT VARCHAR2) IS
- custom_exception EXCEPTION;
- success BOOLEAN;
- v_request_id NUMBER;
- v_phase VARCHAR2(30);
- v_status VARCHAR2(30);
- v_dev_phase VARCHAR2(30);
- v_dev_status VARCHAR2(30);
- v_message VARCHAR2(1000);
- v_request_flag BOOLEAN;
- v_start_time VARCHAR2(30);
- BEGIN
- prm_appcode := 0;
-
- fnd_global.apps_initialize(user_id => global_user_id,
- resp_id => global_resp_id,
- resp_appl_id => global_resp_appl_id);
-
- success := fnd_submit.set_request_set('INV', 'PLM_ERP_IMPORT');
- IF NOT success THEN
- RAISE custom_exception;
- END IF;
-
- success := fnd_submit.submit_program('INV',
- 'INCOIN',
- 'STAGE10',
- prm_org,
- '1',
- '1',
- '1',
- '1',
- '1',
- '1',
- chr(0));
- IF NOT success THEN
- RAISE custom_exception;
- END IF;
- v_start_time := to_char(SYSDATE, 'DD-MON-YYYY HH24:MI:SS');
- v_request_id := fnd_submit.submit_set(v_start_time, FALSE);
- IF v_request_id = 0 THEN
- RAISE custom_exception;
- ELSE
- COMMIT;
- END IF;
-
- v_request_flag := fnd_concurrent.wait_for_request(request_id => v_request_id,
- INTERVAL => 5,
- max_wait => 0,
- phase => v_phase,
- status => v_status,
- dev_phase => v_dev_phase,
- dev_status => v_dev_status,
- message => v_message);
- IF v_request_flag THEN
- IF v_dev_status = 'NORMAL' THEN
- NULL;
- ELSE
- RAISE custom_exception;
- END IF;
- ELSE
- RAISE custom_exception;
- END IF;
- EXCEPTION
- WHEN custom_exception THEN
- prm_appcode := -1;
- prm_appmsg := '错误提示:导入ERP正式表出错!' || SQLERRM;
- WHEN OTHERS THEN
- prm_appcode := -1;
- prm_appmsg := '错误提示:导入ERP正式表出错!' || SQLERRM;
- END prc_do_import_set;
成长
/ | \
学习 总结 分享
QQ交流群:122230156
-
相关阅读:
hdu 5976 Detachment
poj 2096 Collecting Bugs
hdu 4544 湫湫系列故事——消灭兔子
Educational Codeforces Round 8 B. New Skateboard
python 迭代器与生成器 区别
【机器学习】EM算法详细推导和讲解
【机器学习】极大似然估计详解
标准sql工单模板
【机器学习】LDA 浅谈
Jupyter notebook入门教程
-
原文地址:https://www.cnblogs.com/benio/p/2373589.html
Copyright © 2020-2023
润新知