EBS开发_创建BOM

这篇博客介绍了如何在Oracle E-Business Suite(EBS)中通过PL/SQL脚本创建物料清单(BOM)。脚本详细定义了BOM头记录和组件记录,并调用了bom_bo_pub过程来处理BOM,同时包含了错误处理和回滚逻辑。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

--以下脚本于20180114在Tony环境实现
DECLARE


  l_bom_header_rec         bom_bo_pub.bom_head_rec_type;
  l_bom_component_tbl      bom_bo_pub.bom_comps_tbl_type;
  x_bom_header_rec         bom_bo_pub.bom_head_rec_type;
  x_bom_revision_tbl       bom_bo_pub.bom_revision_tbl_type;
  x_bom_component_tbl      bom_bo_pub.bom_comps_tbl_type;
  x_bom_ref_designator_tbl bom_bo_pub.bom_ref_designator_tbl_type;
  x_bom_sub_component_tbl  bom_bo_pub.bom_sub_component_tbl_type;
  x_bom_comp_ops_tbl       bom_bo_pub.bom_comp_ops_tbl_type;


  x_return_status VARCHAR2(1);
  x_msg_count     NUMBER;
  x_message_list  error_handler.error_tbl_type;


  l_index NUMBER := 1;
  l_index1 NUMBER := 2;


  l_user_id          NUMBER := 1110; --User ID, Sysadmin here
  l_cur_mfg_org_code VARCHAR2(240) := 'XIU';


BEGIN


  -- Initialize first, or create_by will be -1
  fnd_global.apps_initialize(user_id      => 1110,
                             resp_id      => 50597,
                             resp_appl_id => 20003);
  -- BOM
  l_bom_header_rec.transaction_type        := 'CREATE';
  l_bom_header_rec.organization_code      
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值