Standard Cost Adjustment is nothing but the difference between the Item
cost at the time of Sales order and Referenced RMA Receipt.
The COGS account defined in the Organization Parameters window will be
used for the Standard Cost Update Adjustment account.
2.Incase of Case - 6(Ship Only Orders), once the line is closed, it insert a line
in Cst_Revenue_recognition_lines(CRRL) table with
Potentially_unmatched_flag as U. Once the Generate COGS rec program is
run
Potentially_unmatched_flag becomes NULL and COGS transaction created
in Mtl_material_transactions (MMT) and Cst_cogs_events (CCE) tables.
2. COGSDIAG.sql:
The COGSDIAG.sql script is a collector script to gather detailed information
on COGS and COGS Recognition transactions for a specific Sales Order. It is
available in Data Collection Scripts for Cost Management (Doc ID 378348.1).
How to Interpret:
A. Check the Creation date and Transaction Date of Sales Order Issue,
Revenue Recognition, RMA Receipt and COGS transaction.
B. Check COGS_PERCENTAGE and PRIOR_COGS_PERCENTAGE columns in
CST_COGS_EVENTS table.
This is the Revenue Recognition date and can be checked from the
RA_CUST_TRX_LINE_GL_DIST_ALL table, column name GL_Date.
A value of 2 indicates that the Sales Order Issue is done in Release 12,
so DCOGS comes into picture.
Refer to:
Bug 13576673 - COGS RECOGNITION LINES NOT GENERATED AND DEFERRED
COGS BALANCE IN GL INCREASES
E. Event Types:
3. Standard Functionality:
A. Distribution is not created for COGS Recognition under the following
scenarios:
i. The Sales Order Issue quantity and RMA quantity are equal and are in
same or different period. [SO ISSUE > RMA > COGS]
ii. The Item costs is "ZERO" check the new cost
in CST_REVENUE_COGS_MATCH_LINES table. It will be "Null".
iii. Both the COGS % and Prior COGS % are same (0 or any value) in
CST_COGS_EVENTS table.
B. Manual AR invoices linked to a Sales Order are not considered for COGS
recognition:
Only invoices created through Auto Invoice program are getting considered
for COGS recognition.
This is not a bug, the matching between Receivables invoice (in AR) and
Sales Order shipment is controlled by Order Management (OM).
If the AR invoice is not from OM, the link between AR and Inventory (INV) is
not maintained.
Reference :
Bug 14823225 - MANUAL AR INVOICES LINKED TO SALES ORDER ARE NOT
CONSIDERED FOR COGS RECOGNITION
In the Intercompany invoicing scenario (Sales Order and RMA are created
in different organizations).
The RMA if referenced to the original sales order line, COGS account
derivation will be based on the original sales order line attributes and
not based on the RMA line attributes
For e.g. Order Type, Item, Warehouse et al.
With the Patch.14374856:R12.ONT.B (Order Management Patch), a new
System Parameter "Source Line for deriving COGS account
on referenced RMA is introduced.
System Parameter
Description
NULL or set to 'Referenced Sales Line Referenced Sales Order Line will be
to be used as Source'
used as source for COGS account
derivation.
B. Error message = FAILURE IN PROCEDURE
CST_REVENUECOGSMATCH_PVT.PROCESS_RMARECEIPT()
There are two causes for this error.
Case 1: RMA transaction date is earlier than the Sales Order Issue Date.
Please log a Service Request with Oracle Support and mention this
note number.
Reference:
BUG 13806719 - COGS RECOGNITION EVENTS QUANTITY ARE WRONG.
5. Recommended Patches:
It is recommended to apply the following Patches:
R12.0:
Patch.12779598:R12.BOM.A CSTRCMVB.pls 120.37.12000000.51
R12.1.X:
Patch.14180892:R12.BOM.C CSTRCMVB.pls 120.45.12010000.48
Patch.14656876:R12.BOM.C CSTRCMVB.pls 120.45.12010000.64
Important Note:*Patch 14656876:R12.BOM.C has some issue with Dependencies.
Hence, its recommended to first apply Patch 14180892:R12.BOM.C
and then apply 14656876:R12.BOM.C in order to upgrade CSTRCMVB.pls