142: RAISE FND_API.G_EXC_ERROR;
143: END;
144:
145: /* commented the selection of COA using LE - OU link which is obsoleted in R12
146: and replaced the code with selection of COAs using the API - INV_GLOBALS.GET_LEDGER_INFO
147: Bug No - 4336479
148: begin
149: SELECT to_number(LEI.org_information1)
150: INTO l_sob_id
189: END;
190: */
191:
192: BEGIN
193: Inv_globals.get_ledger_info(
194: x_return_status => lreturn_status,
195: x_msg_data => lmsg_data ,
196: p_context_type => 'Operating Unit Information',
197: p_org_id => l_selling_org_id,
1029: l_progress := 50;
1030: --Bug 5103108: Added this condition so that other transaction
1031: -- source types doesnt get into the default logic
1032: ELSIF (l_transaction_source_type_id =
1033: inv_globals.G_SOURCETYPE_PURCHASEORDER AND
1034: (l_transaction_action_id = G_ACTION_LOGICALRECEIPT OR
1035: l_transaction_action_id = G_ACTION_LOGICALDELADJ)) THEN
1036: -- it's a Logical PO receipt
1037: IF (l_debug = 1) THEN