EBS销售订单挑库发放处理程序

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

EBS销售订单挑库发放处理程序
在ebs实施中,经常遇到从外部传进来一个销售订单,需要回传到ebs中,通过程序进行销售订单的挑库发放
下面是对so挑库发放的实现步骤的详细实现:1.对销售订单的有效性验证
1)检查销售订单的行与否被全然传到客户化表2)检验销售订单的关键字段
3)检查子库存是否启用了货位控制,如果启用了货位控制,没有生成货位,则调用api生成货位
4)调用api检查子库存中的某一个物料的现用量和可以用量2.销售订单派发
调用api进行销售订单发放
派发顺利:回到一个批号,这个批号做为挑库派发的参数3.销售订单挑库派发调用api展开挑库派发
发放前行状态:准备发放下一步:挑库发放判断依据:销售订单发放生成的批号作为挑库发放的参数发放成功行状态:已发放至仓库下一步:处理物料搬运单判断依据:返回一个批号,这个批号作为挑库发放的参数
派发失利行状态:已延交下一步:挑库派发推论依据:未顺利回到一个批号表明:订单派发就是按照整个订单派发的。

4.处置物料运送单
处理成功:行状态:发运下一步:判断依据:返回成功的处理状态
处置成失利行状
态:下一步:处理物料搬运单判断依据:未返回成功的处理状态5.得到销售订单的交货号(delivery_id)调用api查看是否产生发运号成功:返回发运号失败:未返回发运号6.发运确认
处置顺利订单状态为:停用
说明:如果发运确认已经成功,则会自动调用连接形成停靠站接口程序具体实现代码
1.对销售订单的有效性检验调用api检验货位的代码:
fnd_profile.put('mfg_organization_id',p_organization_id);l_locator_type:=
get_locator_type(p_sub_inv,p_organization_id);ifl_locator_type!=1thenl_locator :=p_sub_inv||'.'||
p_project||'.'||p_task;
inv_loc_wms_pub.create_locator(x_return_statusl_status,
=>l_msg_count,
=>l_msg_data,
ion_id=>l_locator_id,
=>l_locator_exists,
=>p_organization_id,
de=>p_organization_code,
gments=>l_locator,
=>null,
ion_type=>l_locator_type,
=>x_msg_countx_msg_datax_inventory_locatx_locator_existsp_organization_idp_org anization_cop_concatenated_sep_descriptionp_inventory_locatp_picking_order
=>null,
p_location_maximum_units=>null,
p_subinventory_code=>p_sub_inv,
p_location_weight_uom_code=>null,
=>null,
=>null,
=>null,
=>null,
=>null,
=>null,
on_id=>null,
=>null,
ode=>null,
=>null,
=>null,
=>null,
=>1,
=>null);
ifl_locator_idisnullthen
p_max_weightp_volume_uom_codep_max_cubic_areap_x_coordinatep_y_coordinatep_z_c oordinatep_physical_locatip_pick_uom_codep_dimension_uom_cp_lengthp_widthp_hei ghtp_status_idp_dropping_ordero_err_code:=g_error;
o_err_msg:='创建(获取)货位弹性域发生错误';else
o_locator_id:=l_locator_id;endif;
调用api验证库存现用量和可用量的代码:
inv_quantity_tree_pub.query_quantities(p_api_version_number=>1.0,eturn_status= >l_return_status,
sg_count=>l_msg_count,
sg_data=>l_msg_data,
rganization_id=>l_organization_id,
nventory_item_id=>rec_data.item_id,--itemid
ree_mode=>2,
s_revision_control=>false,
s_lot_control=>l_lot_control_flag,
ot_expiration_date=>rec_data.transaction_date,
s_serial_control=>false,
rade_code=>null,--invconvnotneedednowevision=>null,
ot_number=>null,
ubinventory_code=>rec_data.pick_from_subinventory,
x_rx_mx_mp_op_ip_tp_ip_ip_lp_ip_gp_rp_lp_sp_locator_id=>l_locator_id,
x_qoh=>l_qoh,
x_rqoh=>l_rqoh,
x_qr=>l_qr,
s=>l_qs,
tt=>l_att,
tr=>l_atr,
qoh=>l_sqoh,--
invconv
rqoh=>l_srqoh,--invconv
qr=>l_sqr,--invconv
qs=>l_sqs,--invconv
att=>l_satt,--invconv
atr=>l_satr);--invconvifnvl(l_atr,0)=0thengotoend_loop;endif;2.销售订单派发
调用api进行销售订单发放的代码:
fnd_profile.put('mfg_organization_id',l_organization_id);
wsh_picking_batches_pkg.insert_row(x_rowid=>l_row_id,
x_qx_ax_ax_sx_sx_sx_sx_sx_s。

相关文档
最新文档