0% found this document useful (0 votes)
19 views7 pages

Debug Using Incair Logfile

The document outlines the process for reading the INCIAR module related to shipping flow transactions, detailing how to extract table data and handle various transaction records. It includes specific highlights for data types, error messages, and steps for processing intercompany AR invoices. The document also emphasizes the importance of transaction flow headers and organization information in the context of invoice creation.

Uploaded by

Nizar Kraiem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views7 pages

Debug Using Incair Logfile

The document outlines the process for reading the INCIAR module related to shipping flow transactions, detailing how to extract table data and handle various transaction records. It includes specific highlights for data types, error messages, and steps for processing intercompany AR invoices. The document also emphasizes the importance of transaction flow headers and organization information in the context of invoice creation.

Uploaded by

Nizar Kraiem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

How to Read the INCIAR and pull Table data

The document will focus on shipping flow transactions.

Red Highlights are table data we can find


Green is data show the forms path or profile
Purple related error messages

$Header: inciar.opc 120.9.12010000.9 2009/06/29 13:44:24 gjyoti ship $


+---------------------------------------------------------------------------+
Inventory: Version : 12.0.0

Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.

INCIAR module: Create Intercompany AR Invoices


+---------------------------------------------------------------------------+

Current system time is 22-MAR-2011 23:08:36

+---------------------------------------------------------------------------+

In inlico.lpc, inilppa()
Create Intercompany AR Invoices

Arguments
--------------------
Shipping/Procuring Operating Unit ... 229
Line Description ....................

Getting The IC_CURRENCY_CONVERSION_TYPE profile


convType is Corporate

( this the profile option INV: Intercompany Currency Conversion only form bug 8319818 only
Corporate is supported )

Setting the MO Global.init


INV Debug Profile value ... 1
Current system time is 22-MAR-2011 23:08:36

Mark inelligible records in mmt


Current system time is 22-MAR-2011 23:08:37

Start Processing Transaction Records


txnId = 24125999
Inventory Organization: 229 < D1 >
Inventory Item ID: 225 < CM15140 >
global.uom is Ea

Start Processing Transaction ID : 24125999


( notes:
We can find the Sales order
SELECT TRANSACTION_TYPE_ID , TRANSACTION_ACTION_ID, TRANSACTION_SOURCE_TYPE_ID
FROM MTL_MATERIAL_TRANSACTIONS MMT
WHERE mmt.transaction_id = &trn_id ; -- from above 23912162
Results
TRANSACTION_TYPE_ID TRANSACTION_ACTION_ID TRANSACTION_SOURCE_TYPE_ID
---------------------- ---------------------- --------------------------
33 1 2
If look at the results TRANSACTION_ACTION_ID =1 AND TRANSACTION_SOURCE_TYPE_ID IN (2,8)
TRANSACTION_ACTION_ID =1 is issue transaction . TRANSACTION_SOURCE_TYPE_ID =2 is a sale order issue
TRANSACTION_SOURCE_TYPE_ID =8 is a internal sales order issue.

SELECT CONCATENATED_SEGMENTS FROM MTL_SALES_ORDERS_KFV


WHERE SALES_ORDER_ID = (select TRANSACTION_SOURCE_ID from
MTL_MATERIAL_TRANACTIONS
Where transaction_id = &trn_id); -- from above 24125999

Results
CONCATENATED_SEGMENTS
---------------------
66767.Mixed.ORDER ENTRY
Now we can see the OMSE11I data or HTMOMSE12.sql )

Getting Org Information

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()

organization_id ..... 229 < Singapore Distribution Center >


legal_entity_id ..... 229 < Singapore Distribution Center >
set_of_books_id ..... 21 < Vision Distribution (SNG) >
chart_of_accts_id ... 50195
currency_code ....... SGD

...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()

organization_id ..... 204 < Vision Operations >


legal_entity_id ..... 204 < Vision Operations >
set_of_books_id ..... 1 < Vision Operations (USA) >
chart_of_accts_id ... 101
currency_code ....... USD

...Returning success
Start executing gettrxflow

ItemId = 225 global->itemId = 225


txnId = 24125999 global->txnId = 24125999
global_invOrgId = 229
Getting the Process Org Flag
processOrgFlag = 0

Getting Transaction flow information


global->invInfo.ap.custTrxLnId = 0.000000
custTrxLnId = 0.000000
Discrete Org
After getting transaction flow header id
transaction flow header id is 878
logicalTrxTypeCode is 0
NewAccountingFlag is 0
invCur = 1
global->newAccountingFlag is 0
global->trxFlowHeaderId is 878
global->logicalTrxTypeCode is 0
global->incrCurr is 1

Calling function passed as parameter to this function

Inside inarcii Caching the AR Invoice Information


trxFlowHeaderId is 878
( In the from NAVIGATION -> Setup : Organizations : Intercompany Transaction Flows
SELECT HEADER_ID, START_ORG_ID ,END_ORG_ID ,START_DATE, NEW_ACCOUNTING_FLAG
FROM MTL_TRANSACTION_FLOW_HEADERS
WHERE HEADER_ID = &HDR_ID ; -- the trxFlowHeaderId is 878
HEADER_ID START_ORG_ID END_ORG_ID START_DATE NEW_ACCOUNTING_FLAG
---------------------- ---------------------- ---------------------- ------------------------- -------------------
878 229 204 23-DEC-10 N

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

select ORGANIZATION_ID ,ORG_INFORMATION1 , ORG_INFORMATION_CONTEXT, ORG_INFORMATION_ID


from hr.hr_organization_information
where ORGANIZATION_ID = &ORG_ID

ORGANIZATION_ID ORG_INFORMATION1 ORG_INFORMATION_CONTEXT ORG_INFORMATION_ID


---------------------- ------------------- ---------------------------------------- ----------------------
229 21 Accounting Information 774
229 HR_ORG CLASS 244
229 HR_LEGAL CLASS 487
229 OPERATING_UNIT CLASS 489
229 INV CLASS 772
229 97-876123 Employer Identification 488
229 21 Legal Entity Accounting 773
229 20005 Operating Unit Information 490
229 94 Work Schedule 2630

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.)

Getting customer/site defaults, price list and payment Term

batchSource = Intercompany salesCredit = 1


global->invInfo.ar.batchSource = Intercompany

Getting The ZX_ALLOW_TAX_CLASSIF_OVERRIDE profile


pvalue for ZX_ALLOW_TAX_CLASSIF_OVERRIDE is Y
pvalue for ZX_ALLOW_TAX_CLASSIF_OVERRIDE is Y
Getting system parameter OE_INVOICE_FREIGHT_AS_LINE.
pvalue of OE_INVOICE_FREIGHT_AS_LINE is N
For debugging purposes:
payTermId ........ 4
trxTypeId ........ 1128
crMemoTypeId ..... 1089
crMemoSign ....... -1
priceListId ...... 1026
( Note 784679.1 on how to find the item on a price list
Finding the Item in the AP price lists from the INCIAR log file: Adv Pricing Info
APP-INV-05706: Warning: Cannot retrieve transfer price for the item Monitor - 19"
Status_Text=Duplicate price list lines: Corporate, Internal (SNG).)

freightTaxFlag ... 1
freightAsLine .... 0
freightItemId .... 0
frItemDesc .......
uom ..............
batchSource....... Intercompany

Returned success in inilcoi()

After Getting Org Information


............
Processing shipment transaction, ID = 24125999
Calling inarums(global), global->newAccountingFlag is 0

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

returned from External API...

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

SELECT LINE_ID, HEADER_ID , ORDERED_ITEM


FROM oe_order_lines_all
Where line_id = &ln_id;
LINE_ID HEADER_ID ORDERED_ITEM

---------------------- ---------------------- -------------------------------

391067 194078 CM15140

You can see how the data ties of together

If you are looking other data use


SELECT *
FROM oe_order_lines_all
Where line_id = &ln_id;

I choose values to show tie the header_id is linked to the line LINE_ID

The pickHeaderId = 4083468 is reference used in AR and AP for Freight line


SELECT DELIVERY_DETAIL_ID , SOURCE_HEADER_ID, SOURCE_LINE_ID
FROM WSH_DELIVERY_DETAILS
Where DELIVERY_DETAIL_ID = &pickHeaderId;
Results
DELIVERY_DETAIL_ID SOURCE_HEADER_ID SOURCE_LINE_ID
---------------------- ---------------------- ----------------------
4083468 194078 391067
)
(in the Shipping transaction navigation Order Management -> Shipping -> Transactions
You will need to use the ORDER_NUMBER (66632 ) found above )

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

++++++++++++++++++++++++++++++++++ End of Transaction ++++++++++++++++++++++++++++++


Start Processing Transaction Records
===========================================================================

1 shipment transaction(s) selected.


1 shipment transaction(s) processed.
0 shipment transaction(s) rejected.

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...

+------------- 1) PRINT -------------+

Printing output file.


Request ID : 6409870
Number of copies : 0
Printer : noprint

+--------------------------------------+

Finished executing request completion options.

+---------------------------------------------------------------------------+
Concurrent request completed successfully
Current system time is 22-MAR-2011 23:08:42

+---------------------------------------------------------------------------+

You might also like