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

############################## Item cross references ##########################

Documents needed
1. TD
2. UTD
###############################################################################
1. Develop flat file format
Flat file format for customer items
-----------------
1 Customer Number
2 Customer Name
3 Customer Item Number
4 Commodity Code

Flat file format for customer cross reference


----------------
1 Customer Number
2 Customer Name
3 Rank
4 Item Number

2. Control files
3. Staging tables --
xxsinv.xxsinv_cust_item_stg

create table xxsinv.xxsinv_cust_item_stg


(cust_name varchar2(100)
,cust_num number
,cust_id number
,cust_item_num varchar2(1000)
,commodity_code_id number
,item_definition_level number
,creation_date date
,process_flag varchar2(1)
);

create table xxsinv.xxsinv_cust_item_xref_stg


(cust_name varchar2(100)
,cust_num number
,cust_id number
,cust_item_num varchar2(1000)
,RANK NUMBER
,item_id NUMBER
,item_num VARCHAR2(100)
,creation_date date
,process_flag varchar2(1)
);

GRANT ALL ON xxsinv_cust_item_import_prg TO apps


if the package is created in xxsinv schema

###############################################################################

Single Record script to load Customer Cross Reference

INSERT INTO mtl_ci_interface


(customer_id,
customer_item_number,
commodity_code,
item_definition_level,
process_flag,
process_mode,
inactive_flag,
transaction_type,
lock_flag,
last_updated_by,
created_by,
last_update_date,
creation_date
)
VALUES (1290,
'Test_customer_item2',
'Finished Good',
1,
1,
1,
'2',
'CREATE',
'N',
1007941,
1007941,
SYSDATE,
SYSDATE
);

commit;

---After inserting customer items into the interface table


---run the Import program Import Customer Items
---Navigation to run the program: Inventory--> Reports --> All.
---Parameters: Abort On Error=N, Delete Record =Y
---After running import program verify the base table MTL_CUSTOMER_ITEMS

INSERT INTO mtl_ci_xrefs_interface


(customer_id,
customer_item_number,
preference_number,
inventory_item,
master_organization_id,
item_definition_level,
process_flag,
process_mode,
inactive_flag,
transaction_type,
lock_flag,
last_updated_by,
created_by,
last_update_date,
creation_date
)
VALUES (1290,
'Test_customer_item2',
1,
'MC31324',
204,
1,
1,
1,
'2',
'CREATE',
'N',
1007941,
1007941,
SYSDATE,
SYSDATE
);

commit;

---After inserting customer items cross references into the interface table
---run the Import program, Import Customer Item Cross References
---Navigation to run the program: Inventory--> Reports --> All.
---Parameters: Abort On Error=N, Delete Record =Y
---After running import program verify the base table MTL_CUSTOMER_ITEM_XREFS

You might also like