BOM导入及更新
2012-05-08 10:08
288 查看
一、新增工艺路线
INSERT INTO bom_op_sequences_interface
(assembly_item_number,
operation_seq_num,
department_code,
transaction_type,
process_flag,
organization_code,
attribute14)
VALUES
(rec.assembly_item_number,
rec.,operation_seq_num
rec.department_code,
'CREATE',
1,
rec.organization_code,
gv_batch);
二、新增资源
INSERT INTO bom_op_resources_interface
(assembly_item_id,
organization_id,
operation_seq_num,
effectivity_date,
resource_seq_num,
resource_code,
basis_type,
usage_rate_or_amount,
schedule_flag,
standard_rate_flag,
transaction_type,
process_flag,
organization_code,
attribute14)
VALUES
(ln_assembly_item_id,
ln_organization_id,
rec.operation_seq_num,
SYSDATE,
rec.,resource_seq_num
rec.resource_code,
1,
rec.usage_rate_or_amount,
2, -- NO
2,
'Insert',
1,
rec.organization_code,
gv_batch);
三、更新BOMINSERT INTO bom_inventory_comps_interface
(component_sequence_id,
--component_item_id,
organization_id,
new_operation_seq_num,
wip_supply_type,
supply_subinventory,
supply_locator_id,
location_name,
transaction_type,
process_flag,
old_operation_seq_num,
attribute14)
VALUES
(rec_b.component_sequence_id,
--rec_b.component_item_id,
ln_organization_id,
rec_b.new_operation_seq_num,
lv_wip_supply_type,
rec.supply_subinventory,
NULL,
NULL,
'UPDATE',
1,
gv_batch);
四、注意:
1.implementation_date为空的记录不能被更改,要预先筛选掉,否则会报 BOM_COLUMN_NOT_UPDATABLE
2.需要修改子库存(supply_subinventory),而新的子库存是没有货位控制的,这时要预先清除 bom_inventory_components 表的supply_locator_id字段,否则会报BOM_LOCATOR_INVALID。 (ps:supply_locator_id设置为空,也无济于事。)
INSERT INTO bom_op_sequences_interface
(assembly_item_number,
operation_seq_num,
department_code,
transaction_type,
process_flag,
organization_code,
attribute14)
VALUES
(rec.assembly_item_number,
rec.,operation_seq_num
rec.department_code,
'CREATE',
1,
rec.organization_code,
gv_batch);
二、新增资源
INSERT INTO bom_op_resources_interface
(assembly_item_id,
organization_id,
operation_seq_num,
effectivity_date,
resource_seq_num,
resource_code,
basis_type,
usage_rate_or_amount,
schedule_flag,
standard_rate_flag,
transaction_type,
process_flag,
organization_code,
attribute14)
VALUES
(ln_assembly_item_id,
ln_organization_id,
rec.operation_seq_num,
SYSDATE,
rec.,resource_seq_num
rec.resource_code,
1,
rec.usage_rate_or_amount,
2, -- NO
2,
'Insert',
1,
rec.organization_code,
gv_batch);
三、更新BOMINSERT INTO bom_inventory_comps_interface
(component_sequence_id,
--component_item_id,
organization_id,
new_operation_seq_num,
wip_supply_type,
supply_subinventory,
supply_locator_id,
location_name,
transaction_type,
process_flag,
old_operation_seq_num,
attribute14)
VALUES
(rec_b.component_sequence_id,
--rec_b.component_item_id,
ln_organization_id,
rec_b.new_operation_seq_num,
lv_wip_supply_type,
rec.supply_subinventory,
NULL,
NULL,
'UPDATE',
1,
gv_batch);
四、注意:
1.implementation_date为空的记录不能被更改,要预先筛选掉,否则会报 BOM_COLUMN_NOT_UPDATABLE
2.需要修改子库存(supply_subinventory),而新的子库存是没有货位控制的,这时要预先清除 bom_inventory_components 表的supply_locator_id字段,否则会报BOM_LOCATOR_INVALID。 (ps:supply_locator_id设置为空,也无济于事。)
相关文章推荐
- Spring3.x 的命名空间导入 持续更新ing..
- android studio 安装或者导入项目过程中常见的问题(持续更新)
- SSIS处理导入数据时, 存在的更新, 不存在的插入(转载)
- [导入]在线作业系统v1.0stable20060218更新
- intellij idea svn使用一 导入、更新、提交、解决冲突
- 如何把批量数据导入到android 的 sqlite 数据库(更新中)
- as 导入项目时无需更新gradle
- intellij idea svn使用一 导入、更新、提交、解决冲突
- intellij idea svn使用一 导入、更新、提交、解决冲突
- [导入]本Blog可能要很久才能更新了.
- intellij idea svn使用之 导入、更新、提交、解决冲突
- Spring3.x 的命名空间导入 持续更新ing..
- maven导入及错误 cvs导入更新 myeclipse速度优化 myeclipse 右键菜单 add hibernate
- 更新SDK导入项目含有红色感叹号的解决方法
- 将项目导入myeclipse后 tortoise svn 右键项目不能更新和提交
- 把A库的表导入或更新到B库,database link方式
- intellij idea svn使用一 导入、更新、提交、解决冲突
- mysql导入CSV文件及JAVA读取CSV文件和MYSQL批量插入和更新及ibatis常用SQL语句
- SSIS处理导入数据时, 存在的更新, 不存在的插入
- eclipse 的导入的svn项目只显示版本号不显示作者和更新时间