PurposeIn this Document: Goal Solution 1. COGS Data Flow 2. Diagnostics 3. Video Recording for the COGS Workflow References Troubleshooting Steps Goal Create a Sales Order, Schedule Revenue and Recognize the COGS. Understand the Dataflow and tables affected for better troubleshooting Use the diagnostics and understand the relevance of various columns and their values Solution 1. COGS Data flow (i) Cst_cogs_events. 2. We have assumed that the Cost Manager has picked up all uncosted Sales order issues and costed them (costed_flag in mtl_material_transactions should be NULL). In the above and below flow. which picks up these transactions and inserts rows in Cogs events and Cogs Revenue Matching Tables to enable remaining programs (Collect Revenue Recognition Information and Generate COGS Recognition) to complete.Mmt_Transaction_id will be the Transaction Id in Mtl_Material_Transactions Table for Sales Order Issue Transaction. If the Sales order issue transactions/ RMA Return transactions remain uncosted. 2. This process is not mandatory if the transactions are already costed. . Important columns affected: A. After Sales Order Issue: 1.Cst_cogs_events. then The Record Order Management Transactions concurrent program can be executed.Note: 1.COGS_Percentage = '0'. costed = Mtl_Material_Transactions.Event Type = '1'[Event Type '1' signifies Sales Order Issue]. Cst_cogs_events.Cst_cogs_events. In Mtl_material_transactions Table.Cst_revenue_recognition_lines. In Mtl_transaction_accounts Table.Sales order issue.Cst_cogs_events. Accounting Impact: A.costed_flag will be NULL when the sales order transaction is costed 3. After Generate COGS Recognition is run: 1. Deferred_COGS_Acct_id and COGS_Acct_id.After Sales Order Issue: 1. Cst_revenue_recognition_lines.Invoice_Interface_Status_Code = 'Yes'. 2.Cst_revenue_recognition_lines.Potentially_unmatched_flag = 'Null' . B. [ Account_Set_flag 'Y' signifies.(ii) Cst_cogs_events. C.Event Type = '3'[Event Type '3' signifies COGS Recognition].Account_Set_flag = 'N'.Revenue_recognition_percent = '1' [Revenue Recognition percentage of 1 signifies 100%] D. 2. In cst_revenue_cogs_match_lines Table. Sales Order issue:- . Revenue recognition is not performed and Account_Set_flag 'N' signifies that Revenue recognition is run]. 4. 3. After Collect Revenue Recognition Information is run: 1.Potentially_unmatched_flag = 'Y' 2. 4. Unit_cost and Original_shipped_Qty gets populated.Mmt_Transaction_id will be the Transaction Id in Mtl_Material_Transactions Table for COGS Recognition Transaction. the following is accounting impact: Accounting Entries:Staging transactions:Inventory Account (Destination) is debited and Inventory Account (Source) is credited. Note: Oe_order_lines_all.[Invoice_Interface_Status_Code 'Yes' signifies Standard Sales Order and Invoice_Interface_Status_Code 'Not_Eligible' signifies Ship Only Lines].Cst_cogs_events. three lines will be populated.COGS_Percentage = '1'[COGS Percentage '1' signifies 100%]. After Revenue Recognition and Revenue Accounting: RA_CUST_TRX_LINE_GL_DIST_ALL. staging (source) and Staging (Destination) respectively. AR. Execute COGSDIAG. 2. The SQL returns rows for all tables related to COGS Recognition from OM. the following is accounting impact: Accounting Entries:COGS Recognition: COGS Account is Debited and DCOGS Account is Credited.sql ---------------------------------------1. View a Sample Output here . Accounting Line Type '1' and '36' in mtl_transaction_accounts signifies 'Inventory Valuation' and 'DCOGS' respectively. In Mtl_transaction_accounts Table.sql How to Use COGSDIAG.After Generate COGS Recognition is run: 1.Sample Output .DCOGS Account is Debited and Inventory Account is Credited. 2. 3. 2.sql for any Sales Order you wish to troubleshoot using 'Run Script' command (or) run individual queries as per requirement. Inventory and Costing. In Mtl_material_transactions Table.one line will be populated for COGS Recognition. DIAGNOSTICS COGSDIAG. Accounting Line Type '35' signifies 'COGS' in table mtl_transaction_accounts. B.