Debug Using Incair Logfile
Debug Using Incair Logfile
+---------------------------------------------------------------------------+
In inlico.lpc, inilppa()
Create Intercompany AR Invoices
Arguments
--------------------
Shipping/Procuring Operating Unit ... 229
Line Description ....................
( this the profile option INV: Intercompany Currency Conversion only form bug 8319818 only
Corporate is supported )
Results
CONCATENATED_SEGMENTS
---------------------
66767.Mixed.ORDER ENTRY
Now we can see the OMSE11I data or HTMOMSE12.sql )
In inlico.lpc, inilcoi()
In inlico.lpc, initializeGlobal()
shipOrgId = 229 global->shipOrgId = -1sellOrgId = 204 global->sellOrgId = -1
Shipping organization has changed; recache buffer
========================================================
IC-SHIP ORG/PROCURING ORG INFORMATION
In inlico.lpc, getOrgInfo()
Information not cached yet, allocate memory and cache now
Getting Org hierarchy
Getting SOB information
Getting currency information
In inlico.lpc, printOrgInfo()
...Returning success
Selling organization has changed; recache buffer
------------------------------------
IC-SELL ORG/RECEIVING ORG INFORMATION
Calling getorginfo from inilcoi
In inlico.lpc, getOrgInfo()
Information not cached yet, allocate memory and cache now
Getting Org hierarchy
Getting SOB information
Getting currency information
In inlico.lpc, printOrgInfo()
...Returning success
Start executing gettrxflow
In our instance the START_ORG_ID and END_ORG_ID use values we recognize is inventory
These are the Operating Unit ids if we look the 4th line down we see ORG_INFORMATION1 has value of OPERATING_UNIT
The START_DATE if this created after the First Intercompany in MTL_MATERIAL_TRANACTIONS it will cause error
(look for Ref A001 below to see the MMT transaction Date)
(APP-INV-05700: Warning: Mandatory Intercompany Relation or Transaction Flow
not defined between these two operating units)
If the NEW_ACCOUNTING_FLAG is “N” We are completing Shipping transaction and logical transaction are not Created .
To get an intercompany AP invoice for a Drop Shipments or To create Multimode procurement flows the NEW_ACCOUNTING_FLAG
Set to “Y” and run Create deferred logical transactions or have “Deferred Transaction” box check in organization parameter screen.)
freightTaxFlag ... 1
freightAsLine .... 0
freightItemId .... 0
frItemDesc .......
uom ..............
batchSource....... Intercompany
global->logicalTrxTypeCode is 878
Calling inarcil(global)
global->newAccountingFlag is 0
global->logicalTrxTypeCode is 878
Global->internalOrderFlag = 0
internalOrderFlag = ..0
Global->rae_flag = 0
rae_flag = 0
global->newAccountingFlag is 0, global->logicalTrxTypeCode = 0
global->trxFlowHeaderId = 878
batchSource = Intercompany
newAccountingFlag is 0, logicalTrxTypeCode = 0
trxFlowHeaderId = 878
INV: Use Model & Options for Configuration Pricing= 1
baseItemId = 0
Calling inargtp to get the transfer price
In inliar.lpc, inargtp()
... Establishing Transfer Price txnId is 24125999
invOrgId is 229
itemId is 225
shipOrgId is 229
sellOrgId is 204
priceListId is 1026
internalOrderFlag is 0
baseItemId is 0
tmpIncrCurr is 1
atoFlag is No
ordLineId:- 392826.000000
calling QP API...
returned from QP API...
calling static price...
trf_price_date = 2011/03/22
(2)
... Creating Invoice Line
DEB
Step1 ..
DEB
Else Part ..
DEB
Inside if new acc ..
Process sales credit record
DEB
sales credit ..
... Creating Sales Credit
Process ATO Item for old accounting
newAccountingFlag = 0 logicalTrxTypecode = 0
Going to process freight charge
In processFreight()
newAccountingFlag is 0 logicalTrxTypeCode is 0
pickLineId = 4142468
om stub.
OE headerId = 196003 lineId = 392826.000000 pickHeaderId = 4142468 pickLineId = 4142468
pickHeaderId = 4142468
( The OE headerId = 194078 the Sale order_id in OE_ORDER_HEADERS_ALL
SELECT ORDER_NUMBER
FROM OE_ORDER_HEADERS_ALL
WHERE header_id = &hdr_id;
ORDER_NUMBER
----------------------
66632
The lineId = 391067 the line is in the sale order
I choose values to show tie the header_id is linked to the line LINE_ID
freightAsLine = 0
checking for the interco flag
into_var = 1
freightAsLine = 0
... Processing freight charge, ID = 4142468
Assigned global->uom to uomCode
sobId is 162517880 press is 162517728 qp_value is 2
** pres = 2 mau = 0.010000
invCurrency is USD ordCurrency is USD effDate is 2011/03/22
Inside if ordCurrency != -1 and effDate_i != -1
tmpincrcurr = 0 convRate = 1.000000
Inserting record
....... Creating Dummy Parent Line
DEB
Step2 ..
Dummy Line inserted: 1
....... Creating Freight Line
DEB
Step3 ..
freightDesc is Freight uomCode =
fcnCurrency is SGD convType = Corporate
invCurrency is USD
lineDesc is frItemDesc =
batchSourceName is Intercompany dummyLineCount = -1
DEB
Completed Step3 ..
....... Creating Sales Credit for Freight Line
In inlico.lpc, inilcbk()
End Processing Transaction ID: 24125999
Transaction ID: 24125999 Status = SUCCESS
In inlico.lpc, inilfoc()
In inlico.lpc, getOrgInfo()
.Returning success
End of inilfoc().
Concurrent request completed successfully
+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
******** New Session:21373548****22-MAR-11:11.08.38 **********
[22-MAR-11 23:08:38] 9: Getting the transaction flow header Id and trxDate from MMT
[22-MAR-11 23:08:38] 9: After getting transaction flow header id from MMT
[22-MAR-11 23:08:38] 9: Transaction date, Transaction Source Id and Transaction Action Id are: 22-MAR-11, 2 and 1 (Ref A001)
[22-MAR-11 23:08:38] 9: Transaction flow header id : 878
[22-MAR-11 23:08:38] 9: shipOrgId : 229selling org :204
[22-MAR-11 23:08:38] 9: l_trxFlowHeaderId = 878
[22-MAR-11 23:08:38] 9: l_logicalTrxTypeCode = 0
[22-MAR-11 23:08:38] 9: l_new_accounting_flag = 0
[22-MAR-11 23:08:38] 9: l_inv_cur = 1
[22-MAR-11 23:08:38] 9: Assigning the local variables to the C local variables
[22-MAR-11 23:08:39] INV_TRANSACTION_FLOW_PUB: $Header: INVPICTB.pls 120.17.12010000.5 2009/09/01 12:11:05 gjyoti ship $
[22-MAR-11 23:08:39] GET_TRANSFER_PRICE_DATE: Inside get_transfer_price_date
[22-MAR-11 23:08:39] get_transfer_price_date: p_call = E
[22-MAR-11 23:08:39] GET_TRANSFER_PRICE_DATE: p_order_line_id = 392826
[22-MAR-11 23:08:39] GET_TRANSFER_PRICE_DATE: p_global_procurement_flag = N
[22-MAR-11 23:08:39] GET_TRANSFER_PRICE_DATE: p_transaction_id =
[22-MAR-11 23:08:39] GET_TRANSFER_PRICE_DATE: p_drop_ship_flag = N
[22-MAR-11 23:08:39] GET_TRANSFER_PRICE_DATE: INV: Intercompany Transfer Price Date -CURRENT DATE
[22-MAR-11 23:08:41] INV:inliar: $Header: INVITCIB.pls 120.4 2006/11/11 16:00:09 ankulkar noship $
[22-MAR-11 23:08:41] INV_INTER_INVOICE.update_invoice_flag: Parameters Passed
[22-MAR-11 23:08:41] INV_INTER_INVOICE.update_invoice_flag: p_header_id :196003
[22-MAR-11 23:08:41] INV_INTER_INVOICE.update_invoice_flag: p_line_id :392826
[22-MAR-11 23:08:41] INV_INTER_INVOICE.update_invoice_flag: Calling OE_INVOICE_UTIL.Update_Interco_Invoiced_Flag for
d_priceAdjustmentId :3872146
[22-MAR-11 23:08:41] INV_INTER_INVOICE.update_invoice_flag: Calling OE_INVOICE_UTIL.Update_Interco_Invoiced_Flag for
d_priceAdjustmentId :3872147
[22-MAR-11 23:08:41] INV_INTER_INVOICE.update_invoice_flag: Calling OE_INVOICE_UTIL.Update_Interco_Invoiced_Flag for
d_priceAdjustmentId :3872148
[22-MAR-11 23:08:41] INV_INTER_INVOICE.update_invoice_flag: Calling OE_INVOICE_UTIL.Update_Interco_Invoiced_Flag for
d_priceAdjustmentId :3872149
+---------------------------------------------------------------------------+
End of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
Executing request completion options...
+--------------------------------------+
+---------------------------------------------------------------------------+
Concurrent request completed successfully
Current system time is 22-MAR-2011 23:08:42
+---------------------------------------------------------------------------+