Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inventory item id in interface table

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0

Hi,
I want to insert a new record in the MTL_SYSTEM_ITEMS_INTERFACE table with the inventory item id because I need the inventory item id later in my PL/SQL program to update other interface tables.
But if I insert a record with inventory item id, it fails when I try to import. Is there any way where I can get the inventory item id of a new item before running import so that I can use it for other purposes.

Appreciate any help....this is urgent....

Thanks in advance,
Manish.


 
Hi Manish,
Whenever you insert into tables,esp INTERFACE tables, sequences are used to generate the Primary Keys(item_id in this case). MTL_SYSTEM_ITEMS_INTERFACE_S should be sequence used for MTL_SYSTEM_ITEMS_INTERFACE (Please confirm this first). So now when you insert into MTL_SYSTEM_ITEMS_INTERFACE table, you can generate the item_id from the sequence first and use it any where you like.
But, when you import data from the Interface table into the Main Table, again some other sequence will be used for generating the item_id for the Main Table.

This is how Oracle Apps usually works.

Hope this helps you to figure out the solution for your problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top