BOM_IMP | Oracle Database | Sql

BOM OPEN INTERFACES

An Oracle White Paper by Daniel Strempke

BOM OPEN INTERFACES This paper covers creating, updating, and deleting Bills of Material and Routings using the BOM open interfaces. The following information represents the requirements for release 11. Additional information can be inserted by adding the column name and value to the second and third lines, respectively, in the sql scripts at the end of this paper. You can use the Bill and Routing Interface program to create, update, or delete Manufacturing and Engineering bills of material and product families. When you import a bill of material, the BOM Item Type attribute of the parent item determines the type of bill created, including planning, model, option class, and standard bills. For example, if you import a model item and then import its bill, the Bill and Routing Interface program creates the bill as a model bill of material. The Bill and Routing Interface validates your data the same way Oracle Bills of Material and Oracle Engineering verifies bills of material and product families entered manually. The Bill and Routing Interface program derives or defaults the columns using the same logic as the Bills of Material window. When you populate a column in the interface table, the program imports the row with the data you include and will not default a value. However, if you do not enter data in a derived or defaulted column, the program automatically imports the row with the derived or defaulted value. If you enter a value for the ITEM_NUMBER or COMMON_ITEM_NUMBER column, you must insert the system item flexfield separator between each segment of your item number. When the Bill and Routing Interface program derives the segment values for an item, it searches for this separator to indicate the end of one segment value and the start of the next segment value. If you import a manufacturing bill of material, the bill is visible to both Oracle Bills of Material and Oracle Engineering. However, if you import an engineering bill of material, it is only accessible through Oracle Engineering. You should import primary bills of materials before importing alternate bills. If the program tries to validate an alternate bill before validating the primary bill, the record fails. All products (items) and components, need to be set up and assigned to the proper organizations in the Inventory Application before beginning the BOM import process. Although you can import bills and routings simultaneously, all routing operations must exist before you can assign a component to an operation. If the routing does not exist, you cannot assign an operation sequence to a component on a bill of material. Note: the OPERATION_SEQ_NUM must be set to 1 if no routing has been defined. Resources must be defined in BOM application and assigned to departments before they can be assigned to an operation. Departments must be defined in the BOM application before you can add an operation using the BOM_OP_SEQUENCE_INTERFACE. Standard operations must be defined in Oracle Bill of Materials before they can be assigned to a Manufacturing or Engineering routing.

.Import Succeeded You can use the following sql scripts to check for errors which will be located in the MTL_INTERFACE_ERRORS table to help resolve problems. (xxxx is the concurrent request id) or select table_name. Since you launch and manage the Bill and Routing Interface program through the concurrent manager. (xxxx is the transaction id) At the end of this paper are numerous sql scripts that you can use to find the information required for the import process. you must insure that the concurrent manage is running before you can import any bills. Possible values for the column include: 1 . message_name.Assigned Succeeded 3 . you can run the Bill and Routing Interface program. message_name.Assign/Validation Failed 4 .You cannot dynamically create locations for your subinventories using the interface tables. The column. select table_name. organization_id. column_name. indicates the current state of processing for a row in the interface table. organization_id.Pending 2 . If you specify a value for the COMPLETION_LOCATOR_ID column. the location must already exist in Oracle Inventory. error_message from mtl_interface_errors where transaction_id = xxxx. PROCESS_FLAG. error_message from mtl_interface_errors where request_id = xxxx. Also included are sample scripts to enter all of the required information into each of the interface tables.Validation Succeeded 7 . column_name. After populating the interface tables.

COMMON_ORGANIZATION_ID. . If you are creating an alternate bill of material you must also enter a value in the ALTERNATE_BOM_DESIGNATOR column. AND ALTERNATE_BOM_DESIGNATOR. and ORGANIZATION_ID or ORGANIZATION_CODE TRANSACTION_TYPE The PROCESS_FLAG needs to be 1 for pending. Oracle Bills of Materials will insert a record into MTL_ITEM_REVISIONS. The ASSEMBLY_TYPE of the BOM. The TRANSACTION_TYPE needs to be 'update'. The Bill and Routing Interface program derives the COMMON_BILL_SEQUENCE_ID from the COMMON_ITEM_ID. is 1 for manufacturing. ALTERNATE_BOM_DESIGNATOR. If the bill you import references a common bill of material. The required fields to update a Bill using the BOM_BILL_OF_MTLS_INTERFACE table are: PROCESS_FLAG BILL_SEQUENCE_ID or ASSEMBLY_ITEM_ID or ITEM_NUMBER. Each row in this table represents a unique Manufacturing or Engineering bill and is identified by the BILL_SEQUENCE_ID.BOM_BILL_OF_MTLS_INTERFACE TABLE This table temporarily stores bills of material header information. If you enter something into REVISION. and 2 for engineering. The TRANSACTION_TYPE needs to be 'create'. you must enter a value in the COMMON_ORGANIZATION_ID and COMMON_ASSEMBLY_ITEM_ID columns or you can enter a value in the COMMON_BILL_SEQUENCE_ID column. The required fields to create a Bill in the BOM_BILL_OF_MTLS_INTERFACE table are: PROCESS_FLAG ORGANIZATION_ID ASSEMBLY_ITEM_ID ASSEMBLY_TYPE TRANSACTION TYPE The PROCESS_FLAG needs to be 1 for pending.

and ORGANIZATION_ID or ORGANIZATION_CODE TRANSACTION_TYPE The PROCESS_FLAG needs to be 1 for pending. You must specify a value in the ALTERNATE_BOM_DESIGNATOR column if you assign components to an alternate bill of material and have not entered a value for the BILL_SEQUENCE_ID column. BOM_REFERENCE_DESIGNATORS and BOM_SUBSTITUTE_COMPONENTS. In order to delete a Bill using the interface table.The required fields to delete a Bill using the BOM_BILL_OF_MTLS_INTERFACE table are: PROCESS_FLAG BILL_SEQUENCE_ID or ALTERNATE_BOM_DESIGNATOR. Oracle Bills of Materials will insert these records into the tables. The TRANSACTION_TYPE needs to be 'delete'. You can enter one reference designator and one substitute component for each component you enter. Oracle Bill of Material. You cannot dynamically create locations for your subinventories using the interface tables. the location must already exist in Oracle Inventory. respectively. ASSEMBLY_ITEM_ID or ITEM_MUMBER. you must also insert a record into the BOM_INTERFACE_DELETE_GROUPS table with the following values: ENTITY_NAME (Must be BOM_BILL_OF MTLS_INTERFACE) DELETE_GROUP_NAME (A new name or name of an existing Delete Group for bills) DESCRIPTION (Description of the delete group) BOM_INVENTORY_COMPS_INTERFACE This table temporarily stores information about bill of material components and is shared by the Bills of Material and the Engineering Change Order open interfaces. . enforces that only one row for a component in an operation is effective at a given time. If you specify a value for the LOCATION_ID column. The Engineering Change Order open interface will be available at a future date.

then you must fill in the NEW_OPERATION_SEQ_NUM or NEW_EFFECTIVITY_DATE column. The TRANSACTION_TYPE needs to be 'update' for updating a component. and EFFECTIVITY_DATE or ASSEMBLY_ITEM_ID or ASSEMBLY_ITEM_NUMBER. COMPONENT_ITEM_ID or COMPONENT_ITEM_NUMBER. Note: the OPERATION_SEQ_NUM must be set to 1 if no routing has been defined. ORGANIZATION_ID or ORGANIZATION_CODE. The required fields for updating components using the BOM_INVENTORY_COMPS_INTERFACE are: COMPONENT_SEQUENCE_ID or BILL_SEQUENCE_ID. and EFFECTIVITY_DATE You also need to enter: PROCESS_FLAG TRANSACTION_TYPE If the component is unimplemented. COMPONENT_ITEM_ID or COMPONENT_ITEM_NUMBER. . ALTERNATE_BOM_DESIGNATOR. If you want to update the OPERATION_SEQ_NUM or EFFECTIVITY_DATE. The PROCESS_FLAG needs to be 1 for pending.The required fields for creating components using the BOM_INVENTORY_COMPS_INTERFACE are: PROCESS_FLAG COMPONENT_ITEM_ID COMPONENT_SEQUENCE_ID .user should not be populating the component sequence id as it gets generated during the import OPERATION_SEQ_NUM EFFECTIVITY_DATE BILL_SEQUENCE_ID TRANSACTION_TYPE The PROCESS_FLAG needs to be 1 for pending. OPERATION_SEQ_NUM. The TRANSACTION_TYPE needs to be 'create' for creating a component. you cannot update the record. OPERATION_SEQ_NUM.

ALTERNATE_BOM_DESIGNATOR. This table is shared with bills of material and engineering change order open interfaces. COMPONENT_ITEM_ID or COMPONENT_ITEM_NUMBER. COMPONENT_ITEM_ID or COMPONENT_ITEM_NUMBER. and EFFECTIVITY_DATE or ASSEMBLY_ITEM_ID or ASSEMBLY_ITEM_NUMBER. OPERATION_SEQ_NUM. The engineering change order open interface will be available at a future date. The required fields for creating substitute components using the BOM_SUB_COMPS_INTERFACE are: PROCESS_FLAG SUBSTITUTE_COMPONENT_ID SUBSTITUTE_ITEM_QUANTITY COMPONENT_SEQUENCE_ID TRANSACTION_TYPE . and EFFECTIVITY_DATE You also need to enter: PROCESS_FLAG TRANSACTION_TYPE If the component is unimplemented. OPERATION_SEQ_NUM.The required fields for deleting components using the BOM_INVENTORY_COMPS_INTERFACE are: COMPONENT_SEQUENCE_ID or BILL_SEQUENCE_ID. You can only import data into the BOM_SUB_COMPS_INTERFACE table for standard components assigned to standard. you cannot delete the record. The TRANSACTION_TYPE needs to be 'delete'. model. and option class bills of material. The PROCESS_FLAG needs to be 1 for pending. In order to delete a component using the interface table. ORGANIZATION_ID or ORGANIZATION_CODE. you must also insert a record into the BOM_INTERFACE_DELETE_GROUPS table with the following values: ENTITY_NAME (Must be BOM_INVENTORY_COMPS_INTERFACE) DELETE_GROUP_NAME (A new name or name of an existing Delete Group for bills) DESCRIPTION (Description of the delete group) BOM_SUB_COMPS_INTERFACE This table temporarily stores information about the substitute components associated with a bill of material component.

the Bill and Routing interface program defaults the value of the ROUTING_SEQUENCE_ID for the COMMON_ROUTING_SEQUENCE_ID. If you enter PROCESS_REVISION. The TRANSACTION_TYPE needs to be 'create' for creating a substitute. If the routing you import references a common routing you must enter a value in the COMMON_ASSEMBLY_ITEM_ID or the COMMON_ROUTING_SEQUENCE_ID columns. . The required fields for updating substitute components using the BOM_SUB_COMPS_INTERFACE are: PROCESS_FLAG COMPONENT_SEQUENCE_ID SUBSTITUTE_COMP_NUMBER or SUBSTITUTE_COMPONENT_ID TRANSACTION_TYPE The PROCESS_FLAG needs to be 1 for pending. The TRANSACTION_TYPE needs to be 'delete'. You cannot delete an unimplemented record. Routing can only reference common routings that belong to the same organization. If the routing does not reference a common routing.The PROCESS_FLAG needs to be 1 for pending. If you are creating an alternate routing you must also enter a value in the ALTERNATE_ROUTING_DESIGNATOR column. BOM_OP_ROUTING_INTERFACE This table temporarily stores information about manufacturing and engineering routings. Oracle Bill of Material will insert a record into MTL_RTG_ITEM_REVISIONS. The TRANSACTION_TYPE needs to be 'update' The required fields for deleting substitute components using the BOM_SUB_COMPS_INTERFACE are: PROCESS_FLAG COMPONENT_SEQUENCE_ID SUBSTITUTE_COMP_NUMBER or SUBSTITUTE_COMPONENT_ID TRANSACTION_TYPE The PROCESS_FLAG needs to be 1 for pending.

You can specify in the ROUTING_TYPE column whether the routing is a manufacturing routing or an engineering routing. The ROUTING_TYPE is 1 for manufacturing and 2 for engineering. The TRANSACTION_TYPE needs to be 'update' The Bill and Routing Interface program does not derive or default data when updating a routing. The TRANSACTION_TYPE needs to be 'delete' .The required fields for creating routings using the BOM_OP_ROUTING_INTERFACE are: PROCESS_FLAG ASSEMBLY_ITEM_ID ORGANIZATION_ID ROUTING_TYPE TRANSACTION_TYPE The PROCESS_FLAG needs to be 1 for pending. If you do not include a value for this column. The required fields for deleting routings using the BOM_OP_ROUTING_INTERFACE are: PROCESS_FLAG ROUTING_SEQUENCE_ID or ASSEMBLY_ITEM_ID ORGANIZATION_ID ALTERNATE_ROUTING_DESIGNATOR TRANSACTION_TYPE The PROCESS_FLAG needs to be 1 for pending. The required fields for updating routings using the BOM_OP_ROUTING_INTERFACE are: PROCESS_FLAG ROUTING_SEQUENCE_ID or ASSEMBLY_ITEM_ID ORGANIZATION_ID ALTERNATE_ROUTING_DESIGNATOR TRANSACTION_TYPE The PROCESS_FLAG needs to be 1 for pending. The TRANSACTION_TYPE needs to be 'insert'. it is defaulted to a 1 for manufacturing.

EFFECTIVITY_DATE. EFFECTIVITY_DATE. BOM_OPERATION_RESOURCES and BOM_OPERATION_INSTRUCTIONS. You may define multiple operations for a routing. The TRANSACTION_TYPE needs to be 'delete'. OPERATION_TYPE . ALTERNATE_ROUTING_DESIGNATOR. You cannot have overlapping effective dates for the same operation. The TRANSACTION_TYPE needs to be 'insert'. Resources and attachments are also defaulted if you insert a value in the STANDARD_OPERATION_ID column. You can enter three resources and three instructions for each operation sequence. OPERATION_SEQ_NUM. BOM_OP_SEQUENCES_INTERFACE This table temporarily stores information about routing operations. The fields required for updating an operation using the BOM_OP_SEQUENCES_INTERFACE are: OPERATION_SEQUENCE_ID or ROUTING_SEQUENCE_ID. To assign standard operations. The fields required for creating an operation using the BOM_OP_SEQUENCES_INTERFACE are: PROCESS_FLAG ROUTING_SEQUENCE_ID OPERATION_SEQ_NUM DEPARTMENT_ID EFFECTIVITY_DATE TRANSACTION_TYPE The PROCESS_FLAG needs to be 1 for pending. You must specify the department in which every operation will occur. respectively. You must specify a value in the ALTERNATE_ROUTING_DESIGNATOR column if you assign operations to an alternate routing and have not entered a value for the ROUTING_SEQUENCE_ID column. you must have previously defined them in the Define Standard Operations form in Oracle Bills of Material.The Bill and Routing Interface program does not derive or default data when deleting a routing. OPERATION_TYPE or ASSEMBLY_ITEM_ID or ASSEMBLY_ITEM_NUMBER. ORGANIZATION_ID or ORGANIZATION_CODE. Oracle Bills of Material will insert these records into the tables. Resources must also be predefined in Oracle Bills of Material. OPERATION_SEQ_NUM.

You may assign multiple resources or assign the same resource multiple times at any operation. To update the OPERATION_SEQ_NUM or EFFECTIVITY_DATE. EFFECTIVITY_DATE. The fields required for deleting an operation using the BOM_OP_SEQUENCES_INTERFACE are: OPERATION_SEQUENCE_ID or ROUTING_SEQUENCE_ID. The TRANSACTION_TYPE needs to be 'update'. . BOM_OP_RESOURCES_INTERFACE This table temporarily stores information about resources that you require to complete operations on routings. ALTERNATE_ROUTING_DESIGNATOR. The TRANSACTION_TYPE needs to be 'delete'. OPERATION_TYPE You also need to enter: PROCESS_FLAG TRANSACTION_TYPE The PROCESS_FLAG needs to be 1 for pending. before you can import the resources. There is no optional data.You also need to enter: PROCESS_FLAG TRANSACTION_TYPE The PROCESS_FLAG needs to be 1 for pending. you must enter a value in the NEW_OP_SEQ_NUM and NEW_EFFECTIVITY_DATE columns. OPERATION_SEQ_NUM. NOTE: The resource must be set up and assigned to a department in Oracle Bill of Materials first. Once the operation is identified. OPERATION_SEQ_NUM. You must specify a value in ALTERNATE_ROUTING_DESIGNATOR column if you assign resources to an alternate routing and have not entered a value for the ROUTING_SEQUENCE_ID or the OPERATION_SEQUENCE_ID column. ORGANIZATION_ID or ORGANIZATION_CODE. the entire record will be placed in a delete group. EFFECTIVITY_DATE. OPERATION_TYPE or ASSEMBLY_ITEM_ID or ASSEMBLY_ITEM_NUMBER.

EFFECTIVITY_DATE. The fields required for deleting a resource using the BOM_OP_RESOURCES_INTERFACE are one of the following: OPERATION_SEQUENCE_ID. The RESOURCE_SEQ_NUM column is used to determine which record will be updated. The required fields to update a resource using the BOM_OP_RESOURCES_INTERFACE are one of the following: OPERATION_SEQUENCE_ID. The TRANSACTION_TYPE needs to be 'insert'. OPERATION_SEQ_NUM. RESOURCE_SEQ_NUM or ROUTING_SEQUENCE_ID. RESOURCE_SEQ_NUM or ASSEMBLY_ITEM_ID or ASSEMBLY_ITEM_NUMBER. RESOURCE_SEQ_NUM You also need to enter: PROCESS_FLAG TRANSACTION_TYPE The PROCESS_FLAG needs to be 1 for pending. EFFECTIVITY_DATE. OPERATION_SEQ_NUM. The TRANSACTION_TYPE needs to be 'update'. RESOURCE_SEQ_NUM or . To update the RESOURCE_SEQ_NUM you must enter a value in the NEW_RESOURCE_SEQ_NUM column. ORGANIZATION_ID or ORGANIZATION_CODE. ALTERNATE_ROUTING_DESIGNATOR.The required fields to create a resource using the BOM_OP_RESOURCES_INTERFACE are: PROCESS_FLAG RESOURCE_SEQ_NUM RESOURCE_ID OPERATION_SEQUENCE_ID TRANSACTION_TYPE The PROCESS_FLAG needs to be 1 for pending.

EFFECTIVITY_DATE. The TRANSACTION_TYPE needs to be 'delete'. . EFFECTIVITY_DATE. OPERATION_SEQ_NUM.ROUTING_SEQUENCE_ID. ORGANIZATION_ID or ORGANIZATION_CODE. RESOURCE_SEQ_NUM or ASSEMBLY_ITEM_ID or ASSEMBLY_ITEM_NUMBER. OPERATION_SEQ_NUM. The Bill and Routing Interface program does not derive or default data when deleting a routing. RESOURCE_SEQ_NUM You also need to enter: PROCESS_FLAG TRANSACTION_TYPE The PROCESS_FLAG needs to be 1 for pending. ALTERNATE_ROUTING_DESIGNATOR.

It is the same number as the BILL_SEQUENCE_ID in the BOM_INVENTORY_COMPS_INTERFACE table. . The ROUTING_SEQUENCE_ID in the BOM_OP_ROUTINGS_INTERFACE table is the same in the BOM_OP_RESOURCES_INTERFACE and the BOM_OP_SEQUENCES_INTERFACE tables. The open interfaces will fill in the corresponding COMPONENT_SEQUENCE_ID. The ASSEMBLY_ITEM_ID in the BOM_BILL_OF_MTLS_INTERFACE table is the same number as the ASSEMBLY_ITEM_ID in the BOM_INVENTORY_COMPS_INTERFACE. the BOM_OP_RESOURCES_INTERFACE. The OPERATION_SEQUENCE_ID in the BOM_OP_SEQUENCES_INTERFACE table is the same in the BOM_OP_RESOURCES_INTERFACE table. Oracle Bills of Materials will fill in the corresponding ASSEMBLY_ITEM_ID. It is the same number as the ASSEMBLY_ITEM_ID in the BOM_BILL_OF_MTLS_INTERFACE the COMPONENT_ITEM_ID in the BOM_INVENTORY_COMPS_INTERFACE table and the SUBSTITUTE_COMPONENT_ID in the BOM_SUB_COMPS_INTERFACE. The BILL_SEQUENCE_ID in the BOM_BILL_OF_MTLS_INTERFACE table is system generated.SQL SCRIPTS The INVENTORY_ITEM_ID in the MTL_SYSTEM_ITEMS table is system generated. The open interfaces will fill in the corresponding BILL_SEQUENCE_ID. and EFFECTIVITY_DATE instead of COMPONENT_SEQUENCE_ID. If you enter the SUBSTITUTE_COMP_NUMBER . Oracle Bills of Materials will fill in the corresponding COMPONENT_ITEM_ID. If you enter the COMPONENT_ITEM_NUMBER. ORGANIZATION_ID. Oracle Bills of Materials will fill in the corresponding SUBSTITUTE_COMP_ID. the BOM_OP_SEQUENCES_INTERFACE. and ALTERNATE_BOM_DESIGNATOR instead of BILL_SEQUENCE_ID. Oracle Bills of Materials will fill in the corresponding SUPPLY_LOCATOR_ID If you enter the ASSEMBLY_ITEM_NUMBER. COMPONENT_ITEM_ID. You can enter ASSEMBLY_ITEM_ID. OPERATION_SEQ_NUM. The COMPONENT_SEQUENCE_ID in the BOM_INVENTORY_COMPS table is system generated. Oracle Bills of Materials will fill in the corresponding ORGANIZATION_ID. You can enter the BILL_SEQUENCE_ID. If you enter the ORGANIZATION_CODE. Oracle Bills of Materials will fill in the corresponding ASSEMBLY_ITEM_ID. If you enter the ITEM_NUMBER. and the BOM_OP_ROUTINGS_INTERFACE tables. If you enter the LOCATION_NAME .

(xxxx = name of item) 888888888888888888888888888888888888888888888888888888888888888888888888 TO FIND THE BILL_SEQUENCE_ID select bill_sequence_id. and EFFECTIVITY_DATE instead of OPERATION_SEQUENCE_ID. OPERATION_SEQ_NUM. You can enter ROUTING_SEQUENCE_ID.You can enter ASSEMBLY_ITEM_ID. Oracle Bills of Material will fill in the corresponding ROUTING_SEQUENCE_ID. segment1 from mtl_system_items where segment1 = 'xxxx'. 888888888888888888888888888888888888888888888888888888888888888888888888 . AND ALTERNATE_ROUTING_DESIGNATOR instead of ROUTING_SEQUENCE_ID. 888888888888888888888888888888888888888888888888888888888888888888888888 TO LOOK AT BOM COMPONENT INFO select component_sequence_id. bill_sequence_id. 888888888888888888888888888888888888888888888888888888888888888888888888 TO FIND THE ALTERNATE_BOM_DESIGNATOR select alternate_bom_designator from bom_bill_of_materials where assembly_item_id = &inv_item_id and organization_id = &organization_id. 888888888888888888888888888888888888888888888888888888888888888888888888 TO FIND THE ASSEMBLY_ITEM_ID (INVENTORY_ITEM_ID) OF AN ITEM select organization_id. Oracle Bills of Materials will fill in the corresponding OPERATION_SEQUENCE_ID. assembly_item_id from bom_bill_of_materials where assembly_item_id = &inv_item_id and organization_id = &orgid . ORGANIZATION_ID. component_quantity from bom_inventory_components where bill_sequence_id = &bill_sequence_id. inventory_item_id.

888888888888888888888888888888888888888888888888888888888888888888888888 TO FIND THE COMPONENT_ITEM_ID (INVENTORY_ITEM_ID) OF AN ITEM select organization_id. organization_id.888888888888888888888888888888888888888888888888888888888888888888888888 TO CHECK ITEMS IN BOM COMPONENTS INTERFACE TABLE select operation_seq_num. QUANTITY. bill_sequence_id from bom_bill_of _materials where assembly_item_id = &assembly_item_id. alternate_bom_designator. 888888888888888888888888888888888888888888888888888888888888888888888888 TO LOOK AT BOM SUBSTITUE COMPONENT ID. substitute_item_quantity. component_sequence_id. process_flag from bom_sub_comps_interface. acd_type from bom_substitute_components where component_sequence_id = &component_sequence_id. component_sequence_id. 888888888888888888888888888888888888888888888888888888888888888888888888 TO LOOK AT BOM HEADER INFO select assembly_item_id. substitute_item_quantity. component_item_id. segment1 from mtl_system_items where segment1 = 'xxxx'. assembly_type. component_quantity. inventory_item_id. 888888888888888888888888888888888888888888888888888888888888888888888888 TO CHECK ITEMS IN THE BOM_SUB_COMPS_INTERFACE TABLE select substitute_component_id. (xxxx = name of item) 888888888888888888888888888888888888888888888888888888888888888888888888 . effectivity_date. process_flag from bom_inventory_comps_interface. AND OTHER INFORMATION select substitute_component_id. bill_sequence_id.

effectivity_date.assembly_item_id from bom_inventory_components i. b.compontent_sequence_id. component_sequence_id from bom_inventory_components where bill_sequence_id = &bill_sequence_id.bill_sequence_id and b. i.assembly_item_id = &assembly_item_id and i.bill_sequence_id and b. department_code from bom_departments where department_code = &department_code.bill_sequence_id. 8888888888888888888888888888888888888888888888888888888888888888888888888888 TO FIND THE COMPONENT_SEQUENCE_ID OF AN ITEM select i. bill_sequence_id.bill_sequence_id = b. 888888888888888888888888888888888888888888888888888888888888888888888888 . 888888888888888888888888888888888888888888888888888888888888888888888888 TO FIND THE EFFECTIVITY_DATE OF A COMPONENT select i.assembly_item_id from bom_inventory_components i. bom_bills of materials b where b.assembly_item_id = &assembly_item_id and i. 888888888888888888888888888888888888888888888888888888888888888888888888 TO FIND THE DEPARTMENT ID select department_id. organization_id. b.bill_sequence_id = b.organization_id = &orgid .organization_id = &orgid .bill_sequence_id. bom_bills of materials b where b.888888888888888888888888888888888888888888888888888888888888888888888888 TO FIND THE COMPONENT_ITEM_SEQUENCE_ID select component_item_id. b.

resource_id. 888888888888888888888888888888888888888888888888888888888888888888888888 . organization_id.888888888888888888888888888888888888888888888888888888888888888888888888 TO FIND ERROR MESSAGES IN THE MTL_INTERFACE_ERRORS TABLE select table_name. 88888888888888888888888888888888888888888888888888888888888888888888888 TO GET OPERATION RESOURCE DATA select operation_sequence_id. or select table_name. operation_seq_num. message_name. usage_rate_or_amount from bom_operation_resources where operation_sequence_id = &operation_sequence_id. error_message from mtl_interface_errors where request_id = &request_id. organization_id. routing_sequence_id. column_name. 888888888888888888888888888888888888888888888888888888888888888888888888 TO GET OPERATION SEQUENCE DATA select * from bom_operation_sequences where operation_sequence_id = &operation_sequence_id. error_message from mtl_interface_errors where transaction_id = &transaction_id. department_id from bom_operation_sequences where routing_sequence_id = &routing_sequence_id. 888888888888888888888888888888888888888888888888888888888888888888888888 TO FIND THE OPERATION SEQUENCE ID select operation_sequence_id. column_name. resource_seq_num. message_name.

b. bom_bills of materials b where b. department_id from bom_operation_sequences where routing_sequence_id = &routing_sequence_id. organization_id from bom_resources where resource_code = &resource_code. routing_sequence_id.assembly_item_id = &assembly_item_id and i. organization_code from org_organization_definitions.bill_sequence_id = b. organization_name. organization_id from bom_operational_routings where assembly_item_id = &assembly_item_id. 888888888888888888888888888888888888888888888888888888888888888888888888 TO FIND ROUTING SEQUENCE ID select routing_sequence_id. 888888888888888888888888888888888888888888888888888888888888888888888888 . b. operation_seq_num.bill_sequence_id. 888888888888888888888888888888888888888888888888888888888888888888888888 TO FIND THE ORGANIZATION ID AND ORGANIZATION CODE select organization_id. 888888888888888888888888888888888888888888888888888888888888888888888888 TO FIND THE RESOURCE ID select resource_id.assembly_item_id from bom_inventory_components i.888888888888888888888888888888888888888888888888888888888888888888888888 TO FIND THE OPERATION_SEQ_NUM OF A COMPONET select i. 888888888888888888888888888888888888888888888888888888888888888888888888 TO GET ROUTING OPERATION INFO select operation_sequence_id. resource_code.bill_sequence_id.operation_seq_num. assembly_item_id.

888888888888888888888888888888888888888888888888888888888888888888888888 TO INSERT A RECORD INTO THE BOM_BILL_OF_MTLS_INTERFACE insert into bom_ bill_of_mtls_interface (assembly_item_id. cccc. process_flag. dddd. bill_sequence_id. * eeee = 'create' to enter a new bom 888888888888888888888888888888888888888888888888888888888888888888888888 TO INSERT A RECORD INTO THE BOM_INVENTORY_COMPS_INTERFACE insert into bom_inventory_comps_interface (component_item_id. * dddd = the bill sequence id of the BOM you want to add the component to. You can enter sysdate. 1 = manufacturing. eeee. cccc. * cccc = the operation sequence number you want the component added to. effectivity_date) values (aaaa. * eeee = 'create' to add a new component. commit. process_flag. eeee). commit. Note: operation_seq_num must be set to 1 if no routing has been defined. dddd. transaction_type. * bbbb = the organization id you want the BOM in. 2 = engineering. * ffff = date component is effective. 888888888888888888888888888888888888888888888888888888888888888888888888 . organization_id. operation_seq_num. assembly_type. * dddd = the process flag must = 1 to be picked up by the import. ffff ). * aaaa = the component id (inventory_item_id) of the item you want to add to a BOM. * cccc = the assembly type of the BOM. bbbb. * aaaa = the assembly id (inventory_item_id) of the item you want to set up a BOM for. bbbb. transaction_type) values (aaaa. * bbbb = the process flag must = 1 to be picked up by the import.

routing_sequence_id. *dddd = the department_id from bom_departments *eeee = the date you want the operation effective. bbbb. organization_id. cccc. bbbb. department_id. component_sequence_id. commit. *cccc = the operation sequence number you want. cccc. 888888888888888888888888888888888888888888888888888888888888888888888888 TO INSERT A RECORD INTO THE BOM_OP_ROUTINGS_INTERFACE insert into bom_op_routings_interface (process_flag. transaction_type) values (aaaa. transaction_type) values ( aaaa. commit. eeee). * dddd = manufacturing = 1. *dddd = the component sequence id for the item that is being substituted. cccc. eeee). substitute_item_quantity. * bbbb = the assembly id (inventory_item_id) of the item you want to set up a routing for. operation_seq_num. * cccc = id of the organization you wish to set up the routing in. substitute_component_id. transaction_type) values ( aaaa. * aaaa =. 888888888888888888888888888888888888888888888888888888888888888888888888 TO INSERT A RECORD INTO THE BOM_OP_SEQUENCES_INTERFACE insert into bom_op_sequences_interface (process_flag. routing_type. *bbbb = the substitue_component_id from the bom_substitute_components table for the item you want to use. dddd. *bbbb = the routing_sequence_id from bom_operational_routings. *cccc = the quantity for the substitute item. *eeee = 'insert' to create a new substitute component. the process flag must = 1 to be picked up by the import. you can use sysdate here. commit. *aaaa =. eeee. bbbb. the process flag must = 1 to be picked up by the import. assembly_item_id. dddd.888888888888888888888888888888888888888888888888888888888888888888888888 TO INSERT A RECORD INTO THE BOM_SUB_COMPS_INTERFACE insert into bom_sub_comps_interface (process_flag. NOTE: The department must be set up in Oracle Bill of Materials before you can import the op sequence. *ffff = 'insert' to create a new op sequence. engineering = 2. *aaaa =. the process flag must = 1 to be picked up by the import. effectivity_date. * eeee = 'insert' to add a new component. ffff ). dddd. .

before you can import the resources. . organization_id) values (&assembly_item_id. 1. process_flag. cccc. transaction_type. 1. organization_id. commit. &assembly_type. bbbb. *dddd = the operation_sequence_id from bom_operation_sequences that you wish to resource to. commit. dddd. &effectivity_date. resource_seq_num. insert into bom_inventory_comps_interface (assembly_item_id. &organization_id. transaction_type) values (&assembly_item_id. operation_seq_nem. BOM_INVENTORY_COMPS_INTERFACE. attach the NOTE: The resource must be set up and assigned to a department in Oracle Bill of Materials first. BOM_OP_ROUTING_INTERFACE. transaction_type) values ( aaaa. eeee). effectivity_date. 888888888888888888888888888888888888888888888888888888888888888888888888 TO INSERT RECORDS INTO THE BOM_BILL_OF_MTLS_INTERFACE. and BOM_OP_RESOURCES_INTERFACE SO THAT THEY CAN BE IMPORTED ALL AT THE SAME TIME Insert in bom_bill_of_mtls_interface (assembly_item_id. *eeee = 'insert' to create a new op sequence.'create'). operation_sequence_id. &component_item_id. process_flag. the process flag must = 1 to be picked up by the import. resource_id. *aaaa =. assembly_type.'create'. &organization_id). *bbbb = the resource sequence number you want to use. component_item_id. BOM_OP_SEQUENCES_INTERFACE.1. *cccc = the resource_id from bom_resources.888888888888888888888888888888888888888888888888888888888888888888888888 TO INSERT A RECORD INTO THE BOM_OP_RESOURCES_INTERFACE insert into bom_op_resources_interface (process_flag. commit.

&effectivity_date. transaction_type) values (1. resource_id. &department_id. organization_id. effectivity_date. transaction_type) values (1. &organization_id. operation_seq_num. &operation_seq_num. effectivity_date.'insert'). organization_id. NOTE: THE OPERATION_SEQ_NUM MUST BE 1 IF NO ROUTING HAS BEEN DEFINED. THE COMPONENT_ITEM_ID IS THE ID OF THE COMPONENT BEING ATTACHED TO THE BILL. &assembly_item_id. &resource_id. &operation_seq_num. commit. assembly_item_id.NOTE: THE ASSEMBLY_ITEM_ID IS THE ID OF THE ASSEMBLY THE COMPONENT IS BEING ATTACHED TO. &assembly_item_id. 'insert'). commit. resource_seq_num. insert into bom_op_sequences_interface (process_flag. &effectivity_date. transaction_type) values (1. 'insert'). organization_id.1. &organization_id. insert into bom_op_resources_interface (process_flag. operation_seq_num. assembly_item_id. department_id. &organization_id. commit. insert into bom_op_routing_interface (process_flag. .&resource_seq_num.&inventory_item_id. routing_type. assembly_item_id.

Sign up to vote on this title
UsefulNot useful