ship_confirm API
SET SERVEROUTPUT ON SIZE 100000
DECLARE
p_api_version_number NUMBER;
x_return_status VARCHAR2(15);
x_msg_count NUMBER;
x_msg_data VARCHAR2(2000);
p_action_code VARCHAR2(25);
p_delivery_id NUMBER;
p_delivery_name VARCHAR2(30);
p_asg_trip_id NUMBER;
p_asg_trip_name VARCHAR2(30);
p_asg_pickup_stop_id NUMBER;
p_asg_pickup_loc_id NUMBER;
p_asg_pickup_stop_seq NUMBER;
p_asg_pickup_loc_code VARCHAR2(50);
p_asg_pickup_arr_date DATE;
p_asg_pickup_dep_date DATE;
p_asg_dropoff_stop_id NUMBER;
p_asg_dropoff_loc_id NUMBER;
p_asg_dropoff_stop_seq NUMBER;
p_asg_dropoff_loc_code VARCHAR2(50);
p_asg_dropoff_arr_date DATE;
p_asg_dropoff_dep_date DATE;
p_sc_action_flag VARCHAR2(2);
p_sc_intransit_flag VARCHAR2(2);
p_sc_close_trip_flag VARCHAR2(2);
p_sc_create_bol_flag VARCHAR2(2);
p_sc_stage_del_flag VARCHAR2(2);
p_sc_trip_ship_method VARCHAR2(30);
p_sc_actual_dep_date DATE;
p_sc_report_set_id NUMBER;
p_sc_report_set_name VARCHAR2(100);
p_sc_defer_interface_flag VARCHAR2(2);
p_sc_send_945_flag VARCHAR2(2);
p_wv_override_flag VARCHAR2(2);
x_trip_id VARCHAR2(30);
x_trip_name VARCHAR2(30);
BEGIN
-- Assign only the columns which are to be updated
p_action_code := 'CONFIRM';
p_api_version_number := 1.0;
p_delivery_name := '152511';
p_delivery_id := '152511';
p_sc_action_flag := 'B';
p_sc_intransit_flag := 'Y';
p_sc_close_trip_flag := 'Y';
p_sc_create_bol_flag := 'N';
p_sc_stage_del_flag := 'Y';
--p_sc_trip_ship_method := 'DHL';
wsh_deliveries_pub.delivery_action
(
p_api_version_number => p_api_version_number,
p_init_msg_list => FND_API.G_TRUE,
x_return_status => x_return_status,
x_msg_count => x_msg_count,
x_msg_data => x_msg_data,
p_action_code => p_action_code,
p_delivery_id => p_delivery_id ,
p_delivery_name => p_delivery_name ,
p_asg_trip_id => p_asg_trip_id ,
p_asg_trip_name => p_asg_trip_name ,
p_asg_pickup_stop_id => p_asg_pickup_stop_id ,
p_asg_pickup_loc_id => p_asg_pickup_loc_id ,
p_asg_pickup_stop_seq => p_asg_pickup_stop_seq ,
p_asg_pickup_loc_code => p_asg_pickup_loc_code ,
p_asg_pickup_arr_date => p_asg_pickup_arr_date ,
p_asg_pickup_dep_date => p_asg_pickup_dep_date ,
p_asg_dropoff_stop_id => p_asg_dropoff_stop_id ,
p_asg_dropoff_loc_id => p_asg_dropoff_loc_id ,
p_asg_dropoff_stop_seq => p_asg_dropoff_stop_seq ,
p_asg_dropoff_loc_code => p_asg_dropoff_loc_code ,
p_asg_dropoff_arr_date => p_asg_dropoff_arr_date ,
p_asg_dropoff_dep_date => p_asg_dropoff_dep_date ,
p_sc_action_flag => p_sc_action_flag ,
p_sc_intransit_flag => p_sc_intransit_flag ,
p_sc_close_trip_flag => p_sc_close_trip_flag ,
p_sc_create_bol_flag => p_sc_create_bol_flag ,
p_sc_stage_del_flag => p_sc_stage_del_flag ,
p_sc_trip_ship_method => NULL ,
p_sc_actual_dep_date => p_sc_actual_dep_date ,
p_sc_report_set_id => p_sc_report_set_id ,
p_sc_report_set_name => p_sc_report_set_name ,
p_sc_defer_interface_flag => p_sc_defer_interface_flag,
p_sc_send_945_flag => p_sc_send_945_flag ,
p_wv_override_flag => p_wv_override_flag ,
x_trip_id => x_trip_id ,
x_trip_name => x_trip_name
);
IF (x_return_status = WSH_UTIL_CORE.G_RET_STS_SUCCESS) THEN
COMMIT;
dbms_output.put_line('Return Status = '|| SUBSTR (x_return_status,1,255));
dbms_output.put_line('Delivery Name = '|| p_delivery_name);
ELSE
dbms_output.put_line('Return Status = '|| SUBSTR (x_return_status,1,255));
dbms_output.put_line('Msg Count = '|| TO_CHAR(x_msg_count));
dbms_output.put_line('Delivery Id = '|| TO_CHAR(p_delivery_id));
dbms_output.put_line('Delivery Name = '|| p_delivery_name);
dbms_output.put_line('Msg Data = '|| SUBSTR (x_msg_data,1,255));
FOR I IN 1..10 LOOP
dbms_output.put_line(I||'. '|| SUBSTR (FND_MSG_PUB.Get(p_encoded => FND_API.G_FALSE ), 1, 255));
END LOOP;
END IF;
END;
/
commit;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/132092/viewspace-968156/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 免費常用API介面:簡訊API,天氣API,快遞API,識別API...API
- GraphQL API vs REST APIAPIREST
- 熱門免費api介面:含物流api,簡訊api,天氣api等API
- 【API】api 下 session 的 Yes or No?APISession
- 筆記:API 和 Web API筆記APIWeb
- api和api幫助文件API
- 熱門免費API介面,含天氣api、物流API、企業工商API等API
- ecshop /api/client/api.php、/api/client/includes/lib_api.php SQL Injection VulAPIclientPHPSQL
- 搞懂 API ,API 分類全知道API
- 用Web API Client 呼叫 Web APIWebAPIclient
- API 測試 | 瞭解 API 介面測試 | API 介面測試指南API
- 重學 JavaScript API - Broadcast Channel APIJavaScriptAPIAST
- 淘寶API介面大全 電商API詳情API
- 設計流暢的API(Fluent API)API
- normalizr APIORMAPI
- 【PYQT】APIQTAPI
- [PYQT] APIQTAPI
- WebSocket APIWebAPI
- API 之下API
- OpenAI APIOpenAIAPI
- Stream APIAPI
- rest apiRESTAPI
- WEB APIWebAPI
- canvas apiCanvasAPI
- API 列表API
- API 速查API
- Jquery APIjQueryAPI
- API文件API
- 常用APIAPI
- 免費API介面大全分享,含簡訊API、IP查詢API等API
- API測試:瞭解API介面測試與API介面測試指南API
- SAP API management portal - 如何建立API providerAPIIDE
- Spark API 全集(1):Spark SQL Dataset & DataFrame APISparkAPISQL
- API 線上管理工具 api-momAPI
- 重學 JavaScript API - Page Visibility APIJavaScriptAPI
- API集錦:免費好用的API介面API
- 寶藏API:免費好用的api分享API
- API與API管理,需要注意什麼?API