Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

/* The following is a basic example of how to load the Oracle eBS Bill of

Materials Interface Tables


This is validated for R12
After tables are loaded - run the "Import Bills And Routings" from the bill
of materials superuser responsiblity
*/

INSERT INTO bom_bill_of_mtls_interface (


bill_sequence_id,
assembly_item_id,
process_flag,
item_number,
last_update_login,
last_update_date,
last_updated_by,
creation_date,
created_by,
organization_id,
transaction_type
) VALUES (
bom.bom_inventory_components_s.nextval,
2445119, --Assembly Item
Inventory Item ID from MTL_SYSTEM_ITEMS
1,
'JATR10', --This is the assembly
item number
1,
sysdate,
42940,
sysdate,
42940,
256, --Organization ID in
which the BOM is to be created
'CREATE'
);

INSERT INTO bom_inventory_comps_interface (


bill_sequence_id,
assembly_item_id,
component_item_id,
effectivity_date,
organization_code,
organization_id,
bom_item_type,
last_update_login,
last_update_date,
last_updated_by,
creation_date,
created_by,
operation_seq_num,
component_quantity,
component_yield_factor,
process_flag,
transaction_type,
include_in_cost_rollup,
wip_supply_type,
supply_subinventory,
item_num
) VALUES (
bom.bom_inventory_components_s.currval, -- bill_sequence_id,
2445119, -- assembly_item_id,
--Again the assembly item ID value same as inserted in earlier statement
2445120, -- component_item_id,
--Inventory Item ID of the Component Item which comprises the BOM for the
assembly
sysdate, -- effectivity_date,

'xxx', -- organization_code,
--Organization code in which BOM is to be created
256, -- organization_id,
--Organization ID in which BOM is to be created
4, -- bom_item_type,
--You can take this value from BOM_ITEM_TYPE in MTL_SYSTEM_ITEMS for the
Component Item
1, --
last_update_login,
sysdate, -- last_update_date,
42940, -- last_updated_by,
sysdate, -- creation_date,
42940, -- created_by,
1, --
operation_seq_num,
1, --
component_quantity,
1, --
component_yield_factor,
1, -- process_flag,
'CREATE', -- transaction_type,
1, --
include_in_cost_rollup,
NULL, -- wip_supply_type,
'B1', -- supply_subinventory,
1 -- item_num
--Item Num value determines the sequence of the component items - this is the
first item
);

INSERT INTO bom_inventory_comps_interface (


bill_sequence_id,
assembly_item_id,
component_item_id,
effectivity_date,
organization_code,
organization_id,
bom_item_type,
last_update_login,
last_update_date,
last_updated_by,
creation_date,
created_by,
operation_seq_num,
component_quantity,
component_yield_factor,
process_flag,
transaction_type,
include_in_cost_rollup,
wip_supply_type,
supply_subinventory,
item_num
) VALUES (
bom.bom_inventory_components_s.currval, -- bill_sequence_id,
2445119, -- assembly_item_id,

2445121, -- component_item_id,

sysdate, -- effectivity_date,

'BEL', -- organization_code,

256, -- organization_id,

4, -- bom_item_type,

1, --
last_update_login,
sysdate, -- last_update_date,
42940, -- last_updated_by,
sysdate, -- creation_date,
42940, -- created_by,
1, --
operation_seq_num,
3, --
component_quantity,
1, --
component_yield_factor,
1, -- process_flag,
'CREATE', -- transaction_type,
1, --
include_in_cost_rollup,
NULL, -- wip_supply_type,
'B1', -- supply_subinventory,
2 -- item_num
--Item Num value determines the sequence of the component items - this is the
first item
);

You might also like