BOM_创建更新物料清单脚本

以下是EBS创建和更新物料清单API案例,详细代码如下,仅供参考。--以下脚本为创建物料清单脚本 --transaction_type 为CREATE 时创建 UPDATE 时候更新--该脚本经过验证 --added 2019-10-11DECLARE -- API input variables l_bom_header_rec bom_bo_pub...
摘要由CSDN通过智能技术生成

以下是EBS创建和更新物料清单API案例,详细代码如下,仅供参考。


--以下脚本为创建物料清单脚本 
--transaction_type 为CREATE 时创建 UPDATE 时候更新
--该脚本经过验证 
--added 2019-10-11
DECLARE
    -- API input variables
    l_bom_header_rec         bom_bo_pub.bom_head_rec_type; --BOM Header Record
    l_bom_revision_tbl       bom_bo_pub.bom_revision_tbl_type; --BOM Revision Table
    l_bom_component_tbl      bom_bo_pub.bom_comps_tbl_type; --BOM Compinent table -for component records
    l_bom_ref_designator_tbl bom_bo_pub.bom_ref_designator_tbl_type; --BOM Reference Designator table -for reference designators
    l_bom_sub_component_tbl  bom_bo_pub.bom_sub_component_tbl_type; --BOM Substitute Components table -for substitute components

    -- API output variables
    x_bom_header_rec bom_bo_pub.bom_head_rec_type := bom_bo_pub.g_miss_bom_header_rec; --Output BOM Header Record
    --Other BOM output tables - Each of there records hold a return status value and orther IDs as returned by the API
    x_bom_revision_tbl       bom_bo_pub.bom_revision_tbl_type := bom_bo_pub.g_miss_bom_revision_tbl;
    x_bom_component_tbl      bom_bo_pub.bom_comps_tbl_type := bom_bo_pub.g_miss_bom_component_tbl;
    x_bom_ref_designator_tbl bom_bo_pub.bom_ref_designator_tbl_type := bom_bo_pub.g_miss_bom_ref_designator_tbl;
    x_bom_sub_component_tbl  bom_bo_pub.bom_sub_component_tbl_type := bom_bo_pub.g_miss_bom_sub_component_tbl;
    x_message_list           error_handler.error_tbl_type;

    l_error_table error_handler.error_tbl_type;

    l_debug          VARCHAR2(1) := 'N';
    l_output_dir     VARCHAR2(240); --'/usr/tmp';
    l_debug_filename VARCHAR2(60); -- 'bom_debug_07_16.dbg';

    l_return_status VARCHAR2(1);
    l_msg_count     NUMBER;

    l_component_cnt     NUMBER;
    l_sub_component_cnt NUMBER;
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值