發放訂單API
發放訂單API
[@more@]PL/SQL Developer Test script 3.0
98
declare
l_rowid varchar2(20);
l_batch_id number;
l_customer_id number;
l_order_header_id number;
l_Ship_Set_ID number;
l_Inventory_Item_Id number;
l_Order_Type_Id number;
l_pick_grouping_rule_id number :=1006;
l_pick_sequence_rule_id number :=1006;
l_Organization_Id number;
l_org_id number;
l_name varchar2(20);
l_user_id number;
l_request_id number;
l_req_quantity number;
p_userid number :=1057;
p_Pick_From_Subinventory varchar2(20) :='庫';
p_Pick_to_Subinventory varchar2(20):='PT';
p_Delivery_id number :=152497;
--p_order_num number :=63005548;
begin
fnd_global.apps_initialize(1057,50212,660);
WSH_PICKING_BATCHES_PKG.Insert_Row(
X_Rowid => l_Rowid,
X_Batch_Id => l_batch_id,
P_Creation_Date => sysdate-30,
P_Created_By => p_userid,
P_Last_Update_Date => sysdate,
P_Last_Updated_By => p_userid,
P_Last_Update_Login => null,
X_Name => l_name,
P_Backorders_Only_Flag => 'I',
P_Document_Set_Id => null,
P_Existing_Rsvs_Only_Flag => 'N',
P_Shipment_Priority_Code=> null,
P_Ship_Method_Code => null,
P_Customer_Id => l_Customer_Id,
P_Order_Header_Id => l_Order_Header_Id,
P_Ship_Set_Number => l_Ship_Set_ID,
P_Inventory_Item_Id => l_Inventory_Item_Id,
P_Order_Type_Id => l_Order_Type_Id,
P_From_Requested_Date => null,
P_To_Requested_Date => null,
P_From_Scheduled_Ship_Date => null,
P_To_Scheduled_Ship_Date => null,
P_Ship_To_Location_Id => null,
P_Ship_From_Location_Id => null,
P_Trip_Id => null,
P_Delivery_Id => p_Delivery_id,
P_Include_Planned_Lines => 'N',
P_Pick_Grouping_Rule_Id => l_pick_grouping_rule_id,
P_pick_sequence_rule_id => l_pick_sequence_rule_id,
P_Autocreate_Delivery_Flag => 'N',
P_Attribute_Category => null,
P_Attribute1 => null,
P_Attribute2 => null,
P_Attribute3 => null,
P_Attribute4 => null,
P_Attribute5 => null,
P_Attribute6 => null,
P_Attribute7 => null,
P_Attribute8 => null,
P_Attribute9 => null,
P_Attribute10 => null,
P_Attribute11 => null,
P_Attribute12 => null,
P_Attribute13 => null,
P_Attribute14 => null,
P_Attribute15 => null,
P_Autodetail_Pr_Flag => 'Y',
P_Carrier_Id => null,
P_Trip_Stop_Id => null,
P_Default_stage_subinventory => p_Pick_to_Subinventory,
P_Default_stage_locator_id => null,
P_Pick_from_subinventory => p_Pick_From_Subinventory,
P_Pick_from_locator_id => null,
P_Auto_pick_confirm_flag => 'Y' ,
P_Delivery_Detail_Id =>null,
P_Project_Id => null,
P_Task_Id => null,
P_Organization_Id => l_Organization_Id);
l_request_id := WSH_PICKING_BATCHES_PKG.Submit_Release_Request(l_BATCH_ID,null);
dbms_output.put_line(l_request_id);
end;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/132092/viewspace-968155/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 淘寶訂單資訊獲取介面API,淘寶打單發貨介面API
- 淘寶訂單評論API文件分析,PHP開發攻略APIPHP
- EBS:OM Sales Order銷售訂單【Open Interface、Open API】API
- 淘寶賣家API:獲取賣出的商品訂單列表/訂單詳情資料,含sku資訊API
- 微信支付訂單、退款訂單、轉款訂單的查詢
- 微信支付開發(5) 訂單查詢
- Thinkphp訂單系統,DukuanCMS競價訂單系統,單品訂單管理系統,多產品訂單管理系統PHP
- Laravel5.5+passport 放棄 dingo 開發 API 實戰,讓 API 開發更省心LaravelPassportGoAPI
- SAP S4CRM 1811 服務訂單API介紹API
- 訂單超時關閉訂單的實現操作
- 訂單工作流中找不到“訂單流-通用”
- 工行api開放平臺API
- 開放平臺API介面API
- 工單未完工但訂單已做 ship confirm 造成訂單shipped卡住,但訂單closed, 工單無法完工入庫
- sap開發-採購訂單更改歷史table
- bigbluebutton中文社群 / 開放API / bbb APIAPI
- 淘寶開放平臺API - 獲取單筆交易的詳細資訊API
- erp 專案訂單重構--修改訂單狀態部分
- 如何使用API的方式消費SAP Commerce Cloud的訂單服務APICloud
- 如何使用 API 的方式消費 SAP Commerce Cloud 的訂單服務APICloud
- 淘寶/天貓獲取賣出的商品訂單列表 API 返回值說明API
- chrome外掛開發——訂單號環境切換Chrome
- 路透社開放API了API
- 歐盟冷對微軟“API”開放微軟API
- 淘寶/天貓獲取購買到的商品訂單列表 API 返回值說明API
- 「SAP技術」SAP SD微觀研究之根據銷售訂單查詢到該訂單發貨的批次
- 架構面試題—大併發量的訂單的解析架構面試題
- 自己開發的一個SAP CRM訂單統計工具
- 新訂單提醒平臺
- 製造業訂單流程
- 得物主子訂單模型模型
- ecshop退款訂單原理分析
- 訂單視角看支付
- 電商 自由訂單下載
- html-拖拽釋放(Drag and drop) APIHTMLAPI
- 如 何 用 API 播 放 CD (轉)API
- 評微軟開放“API”的“舉措”微軟API
- 快遞鳥api介面實現訂閱物流軌跡單號查詢功能對接呼叫API