Assign items to inventory organization


Raw materials will be used in production batches to produce FG/End-Products

Inorder to consume items first we have to assign it to inventory organization. It is a basic step.

Assign items to inventory organization

       ego_item_pub.assign_item_to_org(
                   p_api_version          => 1.0
                ,  p_init_msg_list        => fnd_api.g_false
                ,  p_commit               => fnd_api.g_false
                ,  p_inventory_item_id    => 100
                ,  p_organization_code    =>  l_array(i)
                ,  x_return_status        => x_return_status
                ,  x_msg_count            => x_msg_count );


How to split use comma separate value using PLSQL collection

If multiple organizations to be assigned to inventory item
Say., item = xxx, to be assigned to INV1, INV2

Then below code will split up INV1, INV2 into plsql array

list is varchar type, table length is numeric type, and table is of array type point to DBMS_UTILITY.lname_array

   DBMS_UTILITY.comma_to_table (list     => l_input,
                                tablen   => l_count,
                                tab      => l_array);

Comments

Popular posts from this blog

How to use lexical parameters in Data template (XML document) R12

Query to get FSG report details with row/column set

Sub Inventory Transfer API.