Beruflich Dokumente
Kultur Dokumente
Objectives
Understand and Configure COGS workflow Able to customize and implement COGS workflow Troubleshoot COGS related issues
Program Agenda
Introduction to COGS About Account Generator workflow Steps to Customize the seeded COGS Workflow Diagnose and Troubleshoot COGS issues Common COGS Issues and Resolutions References Q&A
10
facts continued
Workflow Definition location on the File System:
$ONT_TOP/patch/115/import/US/oexwfcog.wft
OE_FLEX_COGS_PUB package(OEXWCGSB.pls) contains below
11
12
COGS Generation
COGS (Cost of Goods Sold Account) is generated during Inventory
Interface.
14
Order Booking
Ship Confirm
Revenue Recognition
Cogs Recognition
COGS Recognition
Debit
Deferred COGS account
Credit
Inventory Valuation account
Debit
Credit
COGS account
15
16
18
19
20
21
22
23
24
Profile " Account Generator: Run in Debug Mode " to " Yes " Profile " Account Generator: Purge Runtime Data " to " No " Submit the failing Interface Trip Stop (ITS) program in debug mode Run $FND_TOP/sql/wfstat.sql for Item Type as OECOGS and Item Key = generated Item Key Execute Diagnostics Test OM COGS Validation : COGS Debug
25
ITS Log with profile Account Generator: Run in Debug Mode not set
Entering OE_Flex_Cogs_Pub.Start_process : 4023045 Chart Of accounts Id : 101 Item Key : #SYNCH Initilizing Workflow Item Attributes Calling FND_ELEX_WORKFLOW.GENERATE from START_PROCESS Entering OE_Flex_Cogs_Pub.GET_COST_SALE_ITEM_DERIVED Item Type : OECOGS Item Key : #SYNCH Activity Id : 554529 funcmode : RUN Input Paramerers : Line id :4023045 Organization id :207 Output : Generated CCID :12952 Exiting from OE_Flex_COGS_Pub.Get_Cost_Sale_Item_Derived Return CCID : 0 Concat Segments : 01-520-5110-0000-000
26
ITS Log with profile Account Generator: Run in Debug Mode set to Yes
Entering OE_Flex_Cogs_Pub.Start_process : 4023045 Chart Of accounts Id : 101 Item Key : 43129 Initilizing Workflow Item Attributes Calling FND_ELEX_WORKFLOW.GENERATE from START_PROCESS Entering OE_Flex_Cogs_Pub.GET_COST_SALE_ITEM_DERIVED Item Type : OECOGS Item Key : 43129 Activity Id : 554529 funcmode : RUN Input Paramerers : Line id :4023045 Organization id :207 Output : Generated CCID :12952 Exiting from OE_Flex_COGS_Pub.Get_Cost_Sale_Item_Derived Return CCID : 0 Concat Segments : 01-520-5110-0000-000
27
How?
28
Diagnostic Test
Applications Diagnostics: (N) Diagnose > Select Application > Order Management > OM COGS Validation > Select COGS Debug > Execute
29
Issues continued..
Issue 2 : ITS fails with Error Message : Value secured Cause : Flexfield security rule(s) is assigned to the responsibility using which the ITS has been run and this rule does not allow the responsibility to access the generated account Resolution : Re visit the security rules and verify if it is desired to disallow the account access to the responsibility (N) Setup > Financials > Descriptive > Security > Assign
31 Copyright 2013, Oracle and/or its affiliates. All rights reserved.
Issues continued..
Issue 3 : ITS fails with Error Message : This combination has expired Cause : Derived COGS account has been end dated Resolution : Ensure this Account is valid General Ledger (N) Setup > Accounts > Combinations
32
Other Errors
Error in the ITS log: Unable to get account for delivery detail id < nnnnn > or ORA-20002: 3136: Item 'OECOGS/< nnnnn >' cannot be accessed while synchronous process in progress. There could be numerous causes for this error. The debug log of the ITS should provide more information on the exact cause. If the error is due to workflow function/process , output of wfstat.sql is highly desirable.
33 Copyright 2013, Oracle and/or its affiliates. All rights reserved.
Summary
COGS stores the expense Synchronous Workflow Extensible/Customizable easily Diagnostics &Troubleshooting
34
References:
Doc ID 732134.1 R12.0.6+ : Oracle Order Management COGS Debug
Setup Test
Doc ID 113492.1 Oracle Order Management Suite White Papers
Order Type
35
To ask a question on the phone line, select *1 on your phone. To ask a question online, use the Q&A area at the top. Your question will be read aloud in the order received. Question can also be asked on the My Oracle Support Communities
36
37
38
Learn More
Available References and Resources to Get Proactive
About Oracle Support Best Practices www.oracle.com/goto/proactivesupport Get Proactive in My Oracle Support https://support. oracle.com | Doc ID: 432.1 Get Proactive Blog https://blogs.oracle.com/getproactive/ Ask the Get Proactive Team get-proactive_ww@oracle.com
39
To ask a question on the phone line, select *1 on your phone. To ask a question online, use the Q&A area at the top. Your question will be read aloud in the order received. Question can also be asked on the My Oracle Support Communities
40
THANK YOU
41
SQL> @$FND_TOP/sql/wfstat.sql Enter value for 1: OECOGS Enter value for 2: 43129 **** WorkFlow Item Item Type Item Key Parent Typ Parent Key Context Begin Date End Date Root Activity Vers ---------- --------------- ---------- --------------- --------------- ------------------ ----------------- ------------------------------ -----Owner Role -----------OECOGS 43129 01-OCT-13 08:23:22 01-OCT13 08:23:22 DEFAULT_ACCOUNT_GENERATION 10
**** Child processes no rows selected **** Activity Statuses Begin Date End Date Activity Status RESULT User NID Status Action ------------------ ------------------ --------------------------------------------- -------- -------------- ------------ -------- -------- ---------Performer -----------------------------01-OCT-13 08:23:22 01-OCT-13 08:23:22 ROOT/DEFAULT_ACCOUNT_GENERATION COMPLETE SUCCESS 01-OCT-13 08:23:22 01-OCT-13 08:23:22 DEFAULT_ACCOUNT_GENERATION/FND_FLEX_START_GEN COMPLETE #NULL ERATION 01-OCT-13 08:23:22 01-OCT-13 08:23:22 DEFAULT_ACCOUNT_GENERATION/GET_ITEM_DERIVED SUCCESS COMPLETE
01-OCT-13 08:23:22 01-OCT-13 08:23:22 DEFAULT_ACCOUNT_GENERATION/FND_FLEX_COPY_FROM COMPLETE #NULL _COMB-1 01-OCT-13 08:23:22 01-OCT-13 08:23:22 DEFAULT_ACCOUNT_GENERATION/FND_FLEX_VALIDATE_ COMPLETE #NULL COMBINATION 01-OCT-13 08:23:22 01-OCT-13 08:23:22 DEFAULT_ACCOUNT_GENERATION/FND_FLEX_END_GENER COMPLETE SUCCESS ATION
6 rows selected. **** Activity Statuses History no rows selected **** Notifications no rows selected **** Errored Activities no rows selected *** Error Process Activity Statuses no rows selected *** Error Process Activity Statuses History no rows selected **** Error Process Errored Activities no rows selected
**** Item Attribute Values Attribute Name ------------------------------------------------------#SCHEMA .ADMIN_KEY .MONITOR_KEY CHART_OF_ACCOUNTS_ID COMMITMENT_ID CUSTOMER_ID ERROR_MESSAGE FND_FLEX_APPLID FND_FLEX_APPLSNAME FND_FLEX_CCID FND_FLEX_CODE FND_FLEX_DATA FND_FLEX_DESCRIPTIONS FND_FLEX_INSERT FND_FLEX_MESSAGE security rule test FND_FLEX_NEW FND_FLEX_NSEGMENTS FND_FLEX_NUM FND_FLEX_SEGMENT1 FND_FLEX_SEGMENT2 FND_FLEX_SEGMENT3 FND_FLEX_SEGMENT4 FND_FLEX_SEGMENT5 FND_FLEX_SEGMENTS FND_FLEX_STATUS GENERATED_CCID HEADER_ID INVENTORY_ITEM_ID LINE_ID OPTION_FLAG ORDER_CATEGORY ORDER_TYPE_ID ORGANIZATION_ID ORG_ID SALESREP_ID TRX_TYPES_DERIVED 36 rows selected. **** Event Datatype Item Attribute Values **** Note: Some versions of SQLPlus cannot display complex Datatypes no rows selected **** Activity Attribute Values Activity Name Act Id Attribute Name Type -------------------- --------- ------------------------------ ---------Value -------------------------------------------------------------------------------Validate Code Combin 554527 DYNAMIC_INSERTS_ALLOWED CONSTANT ation TRUE Validate Code Combin ation GENERATE_CCID Copy Values from Cod e Combination GENERATED_CCID Copy Values from Cod e Combination FALSE 554527 VALIDATION_TYPE CONSTANT Type Value ---------- -----------------------------------------------------APPS 302781518461862973336325731825126995328 80577773874834441647854983515815879302 101 4086 101 SQLGL 0 GL# Y FND FLEX-USER DEFINED ERROR N MSG Value secured: N 5 101 01 520 5110 0000 000 01-520-5110-0000-000 INVALID 12952 4986661 8313 4023045 N MIXED 1437 207 204 1001
NUMBER NUMBER NUMBER NUMBER VARCHAR2 VARCHAR2 NUMBER NUMBER NUMBER NUMBER VARCHAR2
554531 CODE_COMBINATION_ID
ITEMATTR
554531 REPLACE_CURRENT_VALUE
CONSTANT
Execution Information Application Group Test Date Executed by Result Time Taken Test Class version Inputs Responsibility ID 21623 Operating Unit Id 204 Order Id 4938659 Line Id 3961041 Report
Oracle Diagnostics Information Product Installation Status and Patchset Level Parameters Debug Messages References
ONT OM COGS Validation oracle.apps.ont.diag.ONTCogsDebug 10-OCT-2013 09:50:04 OPERATIONS Success 1 sec 665 millisec 120.1
Parameters[Top]
Username = OPERATIONS Responsibility = Order Management Super User, Vision Operations (USA) (Id = 21623) Order Id = 4938659
Line Id = 3961041
Debug Messages[Top]
********** FND Debug Messages ********** START FND_FLEX_WORKFLOW.INITIALIZE APPLICATION_SHORT_NAME = SQLGL CODE = GL# NUM = 101 ITEMTYPE = OECOGS APPLICATION ID = 101 NUMBER OF SEGMENTS = 5 ITEMKEY = #SYNCH PROCESS = DEFAULT_ACCOUNT_GENERATION END FND_FLEX_WORKFLOW.INITIALIZE START FND_FLEX_WORKFLOW.GENERATE ITEMTYPE = OECOGS ITEMKEY = #SYNCH INSERT_IF_NEW = TRUE START FND_FLEX_WORKFLOW_APIS.START_GENERATION START FND_FLEX_WORKFLOW_APIS.COPY_FROM_COMBINATION Account Generator is running for: WF ITEM = OECOGS/#SYNCH APPLICATION = 101/SQLGL KEY FLEX = GL#/101/5 CCID = 12952 REPLACE_CURRENT_VALUE = FALSE VALUE ASSIGNED TO SEGMENT 1 IS 01 VALUE ASSIGNED TO SEGMENT 2 IS 520 VALUE ASSIGNED TO SEGMENT 3 IS 5110 VALUE ASSIGNED TO SEGMENT 4 IS 0000 VALUE ASSIGNED TO SEGMENT 5 IS 000 START FND_FLEX_WORKFLOW_APIS.VALIDATE_COMBINATION Account Generator is running for: WF ITEM = OECOGS/#SYNCH APPLICATION = 101/SQLGL KEY FLEX = GL#/101/5 INSERT IF NEW COMBINATION = TRUE DYNAMIC_INSERTS_ALLOWED = TRUE VALIDATION_TYPE = GENERATE_CCID CHECK EXPIRATION = Y VALIDATION DATE = 2013/10/10 09:50:05 FND_FLEX_SEGMENT1 IS 01 FND_FLEX_SEGMENT2 IS 520 FND_FLEX_SEGMENT3 IS 5110 FND_FLEX_SEGMENT4 IS 0000 FND_FLEX_SEGMENT5 IS 000 CONCATENATED SEGMENTS TO BE VALIDATED IS 01-520-5110-0000-000 VALIDATION FAILED START FND_FLEX_WORKFLOW_APIS.END_GENERATION PROCESS ACTID IS 145114 PROCESS STATUS IS COMPLETE PROCESS RESULT IS SUCCESS CCID IS 0 CONCATENATED SEGMENTS IS 01-520-5110-0000-000 CONCATENATED IDS IS CONCATENATED DESCRIPTIONS IS NEW COMBINATION IS FALSE VALIDATION_STATUS IS INVALID END FND_FLEX_WORKFLOW.GENERATE ********** ONT Debug Messages ********** ********** Function results ********** Result from COGS call is :E Resulting Error Messages: Cost Of Goods Sold Account Generation Failed with error : Value secured: security rule test Resulting Error Count: 1
References[Top]
Note Note Note Note 91798.1 : Order Management Suite Product Documentation 113492.1 : Order Management Suite White Papers 130114.1 : Order Management Suite Self Service Tool Kits 123456.1 : R11i Manufacturing and Distribution recommended patch list
If you are experiencing any issues regarding this diagnostic test, please use Metalink to log an iTAR (Service Request) for product "Support Diagnostics Project" (ID=1332). If you have any question related to support diagnostic tools (installation, execution, usage or availability), you can ask us using the Support Diagnostics Project forum on Metalink. We would also appreciate your feedback regarding the usefulness of this test, however, there will be no replies to feedback emails.