大橙子网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

ship_confirmAPIofmytestscript

ship_confirm API of my test script

创新互联是一家专业提供河东企业网站建设,专注与做网站、成都做网站成都h5网站建设、小程序制作等业务。10年已为河东众多企业、政府机构等服务。创新互联专业网站建设公司优惠进行中。

[@more@]

method 2 , exit delivery_id and change the line/orders to ship

method1: by pick realease API add a parameter:

lr_batch_rec. ship_confirm_rule_id:=1;


select wda.delivery_id,ol.shipment_number , ol.unit_cost,ol.*-- delivery_id ÓʼĺÅÂë :80514
from
oe_order_headers_all oh,
oe_order_lines_all ol,
wsh_delivery_assignments wda,
wsh_delivery_details wdd
where
oh.header_id=ol.header_id
and
ol.line_id=wdd.source_line_id
and wdd.delivery_detail_id=wda.delivery_detail_id
and oh.order_number=51408


G_RET_STS_SUCCESS CONSTANT VARCHAR2(1) := FND_API.G_RET_STS_SUCCESS;



FND_API.G_RET_STS_UNEXP_ERROR


wsh_deliveries_pub.delivery_action


*****************************


/* Formatted on 2007/05/14 15:37 (Formatter Plus v4.8.7) */
DECLARE
v_return_status VARCHAR2(100);
v_msg_count NUMBER;
v_msg_data VARCHAR2(2000);
v_trip_id NUMBER;
v_trip_name VARCHAR2(2000);
fail_api EXCEPTION;
v_msg_summary VARCHAR2(2000);
v_msg_details VARCHAR2(2000);
v_message_count number;
BEGIN
wsh_deliveries_pub.delivery_action(p_api_version_number => 1.0,
p_init_msg_list => '',
x_return_status => v_return_status,
x_msg_count => v_msg_count,
x_msg_data => v_msg_data,
p_action_code => 'CONFIRM',
p_delivery_id => 42011,
p_delivery_name => '42011',
p_asg_trip_id => '',
p_asg_trip_name => '',
p_asg_pickup_stop_id => '',
p_asg_pickup_loc_id => '',
p_asg_pickup_stop_seq => '',
p_asg_pickup_loc_code => '',
p_asg_pickup_arr_date => '',
p_asg_pickup_dep_date => '',
p_asg_dropoff_stop_id => '',
p_asg_dropoff_loc_id => '',
p_asg_dropoff_stop_seq => '',
p_asg_dropoff_loc_code => '',
p_asg_dropoff_arr_date => '',
p_asg_dropoff_dep_date => '',
p_sc_action_flag => 'S',
p_sc_intransit_flag => '',
p_sc_close_trip_flag => 'Y',
p_sc_create_bol_flag => '',
p_sc_stage_del_flag => '',
p_sc_trip_ship_method => 'CP',
p_sc_actual_dep_date => '',
p_sc_report_set_id => '',
p_sc_report_set_name => '',
p_sc_defer_interface_flag => '',
p_sc_send_945_flag => '',
p_sc_rule_id => 1,


p_sc_rule_name => '·¢»õÈ·ÈÏ',
p_wv_override_flag => '',
x_trip_id => v_trip_id,
x_trip_name => v_trip_name);

DBMS_OUTPUT.put_line('return status:' || v_return_status);
DBMS_OUTPUT.put_line('msg_count:' || v_msg_count);
DBMS_OUTPUT.put_line('msg data:' || v_msg_data);
DBMS_OUTPUT.put_line('trip id :' || v_trip_id);
DBMS_OUTPUT.put_line('trip name' || v_trip_name);

IF (v_return_status = wsh_util_core.g_ret_sts_success) THEN

-- RAISE fail_api;
COMMIT;

ELSIF v_return_status = 'W' then
RAISE fail_api;
COMMIT;
ELSIF v_return_status = 'U' then
RAISE fail_api;
rollback;
ELSIF v_return_status = 'E' then
RAISE fail_api;
rollback;
END IF;

EXCEPTION
WHEN fail_api THEN
wsh_util_core.get_messages('Y',
v_msg_summary,
v_msg_details,
v_message_count);

IF v_msg_count > 1 THEN
v_msg_data := v_msg_summary || v_msg_details;
ELSE
v_msg_data := v_msg_summary;
END IF;
DBMS_OUTPUT.put_line('*****errors detail******');
DBMS_OUTPUT.put_line('summary' || v_msg_summary);
--DBMS_OUTPUT.PUT_LINE(length(v_msg_details));
DBMS_OUTPUT.put_line('details' || substr(v_msg_details, 0, 240));
DBMS_OUTPUT.put_line(substr(v_msg_details, 240, length(v_msg_details)));
DBMS_OUTPUT.put_line('count number: ' || v_message_count);
END;

********************

--other references:


销售订单发运Interface相关问题

销售订单发运Interface相关问题
我们现在计划使用无线扫描设备实现销售订单发运,计划使用的方案有:
A:方法 inv_move_order_pub.process_move_order 创建物料搬运单,物料搬运单行和order_line相关联
inv_pick_release_pub.pick_release 进行挑库
inv_pick_wave_pick_confirm_pub.pick_confirm 挑库确认
问题 一直在挑库确认时出错, 个人怀疑还需调用WSH_DELIVERIES_PUB,那位大侠有什么建议

B: 方法 设置发运参数 关闭自动挑库和自动发运
运行 发运-〉发放销售订单 -〉发放销售订单 菜单通过系统创建物料搬运单
inv_move_order_pub.process_move_order 更新move_order相关信息,加入批次信息
inv_pick_release_pub.pick_release 进行挑库
inv_pick_wave_pick_confirm_pub.pick_confirm 挑库确认


方案
1。登记订单 erp系统中实现
2。拆分发运行wsh_delivery_details_pub.split_line实现,把一个订单行需要的每个批次进行拆分,每个批次对应一行
3。自动生成创建生成交货WSH_DELIVERY_DETAILS_PUB.Autocreate_Deliveries,把需要发运的行分配到一个交货
4。对交货启动挑库发放wsh_deliveries_pub.delivery_action,生成搬运单
5。update搬运单加入批次信息inv_move_order_pub.Process_Move_Order_Line
6。处理搬运单 inv_pick_release_pub.Pick_Release
7。确认挑库inv_pick_wave_pick_confirm_pub.Pick_Confirm
8。确认交货wsh_deliveries_pub.delivery_action


*************

1. 出现错误

2.执行时间过长


本文题目:ship_confirmAPIofmytestscript
网站路径:http://dzwzjz.com/article/ppedep.html
在线咨询
服务热线
服务热线:028-86922220
TOP