<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當前位置: 首頁 - 科技 - 知識百科 - 正文

        更新工藝路線資源

        來源:懂視網 責編:小采 時間:2020-11-09 14:45:18
        文檔

        更新工藝路線資源

        更新工藝路線資源:DECLARE -- API input variables l_operation_tbl bom_rtg_pub.operation_tbl_type := bom_rtg_pub.g_miss_operation_tbl; l_rtg_header_rec bom_rtg_pub.rtg_header_rec_type := bom_rtg_pub.g_miss_rtg_header_rec; l_rtg_revision_tbl bom_rtg_pub.rtg_rev
        推薦度:
        導讀更新工藝路線資源:DECLARE -- API input variables l_operation_tbl bom_rtg_pub.operation_tbl_type := bom_rtg_pub.g_miss_operation_tbl; l_rtg_header_rec bom_rtg_pub.rtg_header_rec_type := bom_rtg_pub.g_miss_rtg_header_rec; l_rtg_revision_tbl bom_rtg_pub.rtg_rev

        DECLARE -- API input variables l_operation_tbl bom_rtg_pub.operation_tbl_type := bom_rtg_pub.g_miss_operation_tbl; l_rtg_header_rec bom_rtg_pub.rtg_header_rec_type := bom_rtg_pub.g_miss_rtg_header_rec; l_rtg_revision_tbl bom_rtg_pub.rtg_rev

         DECLARE -- API input variables l_operation_tbl bom_rtg_pub.operation_tbl_type := bom_rtg_pub.g_miss_operation_tbl; l_rtg_header_rec bom_rtg_pub.rtg_header_rec_type := bom_rtg_pub.g_miss_rtg_header_rec; l_rtg_revision_tbl bom_rtg_pub.rtg_revision_tbl_type := bom_rtg_pub.g_miss_rtg_revision_tbl; l_op_resource_tbl bom_rtg_pub.op_resource_tbl_type := bom_rtg_pub.g_miss_op_resource_tbl; l_sub_resource_tbl bom_rtg_pub.sub_resource_tbl_type := bom_rtg_pub.g_miss_sub_resource_tbl; l_op_network_tbl bom_rtg_pub.op_network_tbl_type := bom_rtg_pub.g_miss_op_network_tbl;
        -- API output variables x_rtg_header_rec bom_rtg_pub.rtg_header_rec_type; -- routing header record x_rtg_revision_tbl bom_rtg_pub.rtg_revision_tbl_type; -- routing revisions x_operation_tbl bom_rtg_pub.operation_tbl_type; -- routing operations x_op_resource_tbl bom_rtg_pub.op_resource_tbl_type; -- oepration resources x_sub_resource_tbl bom_rtg_pub.sub_resource_tbl_type; -- sub operation resources x_op_network_tbl bom_rtg_pub.op_network_tbl_type; -- operation networks x_message_list error_handler.error_tbl_type;
        -- Other API variables l_return_status VARCHAR2(1 ) := NULL; l_msg_count NUMBER := 0 ; l_cnt NUMBER := 1 ;
        -- WHO columns l_user_id NUMBER := -1 ; l_resp_id NUMBER := -1 ; l_application_id NUMBER := -1 ; l_row_cnt NUMBER := 1 ; l_user_name VARCHAR2(30 ) := 'HAND-GH';
        BEGIN
        -- Get the user_id SELECT user_id INTO l_user_id FROM fnd_user WHERE user_name = l_user_name;
        -- Get the application_id and responsibility_id l_application_id := 702; l_resp_id := 50723;
        -- Initialize applications information /*fnd_global.apps_initialize(l_user_id, l_resp_id, l_application_id); -- Mfg / Mfg & Dist Mgr / INV dbms_output.put_line('Initialized applications context: ' || l_user_id || ' ' || l_resp_id || ' ' || l_application_id);*/
        -- Create the routing header l_rtg_header_rec.assembly_item_name := 'TEST01'; l_rtg_header_rec.organization_code := '101'; l_rtg_header_rec.alternate_routing_code := NULL; --l_rtg_header_rec.completion_subinventory := 'FGI';--200-ITR l_rtg_header_rec.transaction_type := 'UPDATE';
        -- Create the routing operations -- operation 1 /* l_operation_tbl(l_cnt).assembly_item_name := 'TEST01'; l_operation_tbl(l_cnt).organization_code := '101'; l_operation_tbl(l_cnt).alternate_routing_code := NULL; l_operation_tbl(l_cnt).department_code := 'THCJ'; l_operation_tbl(l_cnt).operation_sequence_number := '20'; l_operation_tbl(l_cnt).operation_type := 1; l_operation_tbl(l_cnt).start_effective_date := SYSDATE; l_operation_tbl(l_cnt).standard_operation_code := 'TH'; --l_operation_tbl(l_cnt).yield := 0.87; l_operation_tbl(l_cnt).transaction_type := 'UPDATE'; l_operation_tbl(l_cnt).reference_flag := 2; l_operation_tbl(l_cnt).attribute1 := 'Y';*/ -- l_op_resource_tbl(l_cnt).assembly_item_name := 'TEST01'; l_op_resource_tbl(l_cnt).organization_code := '101'; l_op_resource_tbl(l_cnt).alternate_routing_code := NULL; l_op_resource_tbl(l_cnt).operation_sequence_number := '20'; l_op_resource_tbl(l_cnt).usage_rate_or_amount := 3; l_op_resource_tbl(l_cnt).transaction_type := 'UPDATE'; l_op_resource_tbl(l_cnt).resource_sequence_number := '10'; l_op_resource_tbl(l_cnt).op_start_effective_date := to_date( '2014/5/29 18:58:26', 'YYYY-MM-DD hh24:mi:ss' ); --Actually the issue again was effectivity date, for Resource update I was supplying effectivity date l_op_resource_tbl (j).op_start_effective_date which was not exact match as in Application. --Picked up correct effectivity date and it worked fine. --l_op_resource_tbl(l_cnt).resource_code := 'THL'; /*-- operation 2 l_cnt := l_cnt + 1; l_operation_tbl(l_cnt).assembly_item_name := 'lcy_test_item01'; l_operation_tbl(l_cnt).organization_code := 'M1'; l_operation_tbl(l_cnt).alternate_routing_code := NULL; l_operation_tbl(l_cnt).operation_sequence_number := '20'; l_operation_tbl(l_cnt).operation_type := 1; l_operation_tbl(l_cnt).start_effective_date := SYSDATE; -- to_date('16-JUL-2010 19:30:39','DD-MON-YY HH24:MI:SS'); -- should match timestamp for UPDATE l_operation_tbl(l_cnt).standard_operation_code := 'SFPK'; l_operation_tbl(l_cnt).yield := 1.0; l_operation_tbl(l_cnt).transaction_type := 'CREATE';*/
        -- initialize error stack for logging errors error_handler.initialize;
        -- call API to create / update routing dbms_output.put_line('=======================================================' ); dbms_output.put_line( 'Calling Bom_Rtg_Pub.Process_Rtg API' );
        bom_rtg_pub.process_rtg(p_bo_identifier => 'RTG', p_api_version_number => '1.0', p_init_msg_list => TRUE, p_rtg_header_rec => l_rtg_header_rec, p_rtg_revision_tbl => l_rtg_revision_tbl, p_operation_tbl => l_operation_tbl, p_op_resource_tbl => l_op_resource_tbl, p_sub_resource_tbl => l_sub_resource_tbl, p_op_network_tbl => l_op_network_tbl, x_rtg_header_rec => x_rtg_header_rec, x_rtg_revision_tbl => x_rtg_revision_tbl, x_operation_tbl => x_operation_tbl, x_op_resource_tbl => x_op_resource_tbl, x_sub_resource_tbl => x_sub_resource_tbl, x_op_network_tbl => x_op_network_tbl, x_return_status => l_return_status, x_msg_count => l_msg_count, p_debug => 'N', p_output_dir => '/usr/tmp/', p_debug_filename => 'rtg_bo_debug.log');
        dbms_output.put_line('=======================================================' ); dbms_output.put_line( 'Return Status: ' || l_return_status);
        IF (l_return_status <> fnd_api.g_ret_sts_success) THEN dbms_output.put_line( 'x_msg_count:' || l_msg_count); error_handler.get_message_list(x_message_list => x_message_list); dbms_output.put_line( 'Error Message Count :' || x_message_list.count); FOR i IN 1 .. x_message_list.count LOOP dbms_output.put_line(to_char(i) || ':' || x_message_list(i) .entity_index || ':' || x_message_list(i) .table_name); dbms_output.put_line(to_char(i) || ':' || x_message_list(i) .message_text); END LOOP ; END IF; dbms_output.put_line('=======================================================' );
        EXCEPTION WHEN OTHERS THEN dbms_output.put_line( 'Exception Occured :'); dbms_output.put_line( SQLCODE || ':' || SQLERRM); dbms_output.put_line('=======================================================' ); RAISE; END;

        聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        更新工藝路線資源

        更新工藝路線資源:DECLARE -- API input variables l_operation_tbl bom_rtg_pub.operation_tbl_type := bom_rtg_pub.g_miss_operation_tbl; l_rtg_header_rec bom_rtg_pub.rtg_header_rec_type := bom_rtg_pub.g_miss_rtg_header_rec; l_rtg_revision_tbl bom_rtg_pub.rtg_rev
        推薦度:
        標簽: 資源 更新 API
        • 熱門焦點

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 亚洲人成在线播放网站岛国| 四虎永久在线精品免费观看地址| 亚洲国产精品无码专区影院| 日韩久久无码免费毛片软件| 亚洲精品偷拍视频免费观看| 特级毛片全部免费播放a一级| 亚洲成A人片在线观看无码3D| 一级做a免费视频观看网站| 亚洲综合另类小说色区色噜噜| 一级成人毛片免费观看| 亚洲日本va在线视频观看| 一级看片免费视频| 中文字幕人成人乱码亚洲电影| 中文字幕a∨在线乱码免费看| 国产∨亚洲V天堂无码久久久| 91香蕉国产线在线观看免费 | 日韩一区二区a片免费观看| 丁香婷婷亚洲六月综合色| 在线免费观看一级片| 一区二区三区视频免费观看| 亚洲国产精品一区二区成人片国内| 99久久精品免费视频| 亚洲熟妇AV一区二区三区浪潮| 四虎影院永久免费观看| 最近免费字幕中文大全| 亚洲另类古典武侠| 又粗又硬免费毛片| 男人的天堂网免费网站| 亚洲AV色吊丝无码| www.亚洲精品.com| 亚洲午夜免费视频| 亚洲日韩AV无码一区二区三区人| 亚洲高清最新av网站| 一级成人a毛片免费播放| 亚洲av日韩av永久无码电影| 久久久青草青青亚洲国产免观| 黄页网站在线看免费| 精品国产污污免费网站入口在线| 亚洲黄色在线观看| 亚洲成a人片在线观看日本麻豆 | 亚洲激情在线视频|