Sie sind auf Seite 1von 46

1

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Oracle Advisor Webcast Program

Current schedule Archived recordings Doc ID 740966.1

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Future Advisor Webcasts


Upcoming live webcasts and recent recordings: VOICE STREAMING ENABLED Teleconference Access: US & Canada: 866- 627-3315 Toll Number: +1-706-758-7972 Global Toll-Free: 1148600.1 Password: Oracle OM OM Webcast Calendar/Archive Doc ID 1288737.1 All Webcast Calendar/Archive Doc ID 740966.1
What advisor webcast topics do YOU want to see presented? Visit the Order Management My Oracle Support Community today to let us know.

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Safe Harbor Statement


The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decision. The development, release, and timing of any features or functionality described for Oracles products remains at the sole discretion of Oracle.

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Oracle Advisor Webcast


Configuring and Troubleshooting COGS workflow in Oracle Order Management

Anuradha Parthasarathy Devaraju Holenarasipur

Objectives
Understand and Configure COGS workflow Able to customize and implement COGS workflow Troubleshoot COGS related issues

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

What is Cost Of Goods Sold?


Cost of Goods Sold in short COGS indicates how much amount

has been spent to make the Finished Good.


The Cost of Goods Sold Account is used to determine the profit realized

from selling a product.

Revenue - COGS = Profit

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Account Generator Workflow


Oracle EBS uses the Account Generator workflow (a synchronous workflow process) to derive the Cost Of Goods Account . This is usually derived based on specific attributes such as Item, Organization, Order Type, Sales Representative and many more The rules for COGS account generation are not always the same across companies, and depend on the business rules.

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Some facts about the seeded COGS workflow


Workflow item type:

OM: Generate Cost of Goods Sold Account


Seeded Process:

Generate Default Account


Seeded function:

Get CCID for a line

10

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

functions to generate CCID. - GET_COST_SALE_ITEM_DERIVED - GET_ORDER_TYPE_DERIVED - GET_SALESREP_REV_DERIVED - GET_INVITM_ORG_DERIVED - GET_MODEL_DERIVED

11

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

COGS Workflow Assignment


(N)Setup>Financials> Flexfields > Key > Accounts

12

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Which is the prevailing Accounting flexfield structure?


Inventory(N)>Setup>Organizations>Organizations>Inventory Organization>Accounting Information

General Ledger(N)>Setup>Financials>Accounting Setup Manager> Accounting Setup


13 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

COGS Generation
COGS (Cost of Goods Sold Account) is generated during Inventory

Interface.

14

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

What is Deferred COGS (New to R12)

Order Booking

Ship Confirm

Revenue Recognition

Cogs Recognition

Ship Confirm(SO Issue)

COGS Recognition

Debit
Deferred COGS account

Credit
Inventory Valuation account

Debit

Credit

COGS account

Deferred COGS account

15

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Default COGS Account Generation


Item Setup Screen Material Distributions screen

16

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Steps to Customize the COGS workflow


1. Open the COGS workflow in the workflow builder tool 2. Save the workflow definition to a local machine 3. Modify the workflow 4. Save changes to the database 5. Map the new process to the item type in the prevailing accounting structure. 6. Test
17 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Open COGS workflow in workflow builder tool

18

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Create a new Custom Process

19

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Modify the workflow process


Before Customization After Customization

20

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Save the changes to the database


Three Ways 1. Workflow Builder: File-> Save as>Save to database 2. WFLOAD command
WFLOAD <apps user name> /<apps pwd> 0 Y UPLOAD oexwfcog.wft

3. Concurrent Program Workflow Definitions Loader

21

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Re link the new process to the prevailing structure

22

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Test the customization


Order Type Setup Material Distributions

23

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Troubleshooting & Diagnostics

24

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Troubleshooting & Diagnostics tips


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

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

The Workflow Status Script (wfstat.sql)


When?

How?

28

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Diagnostic Test
Applications Diagnostics: (N) Diagnose > Select Application > Order Management > OM COGS Validation > Select COGS Debug > Execute

29

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Common Setup Issues


Issue 1: Customized workflow is uploaded to the database , but the COGS account is not generated as per this workflow Cause : The modified workflow process is not attached to the OECOGS Item Type , or the setup is done for an incorrect Accounting Flexfield Structure Resolution : Ensure the modified COGS workflow is attached to the OECOGS Item Type for the correct Flexfield structure (N) Setup > Flexfields > Key > Accounts
30 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

( Includes link to a white paper on COGS generator )


Doc ID 414314.1 -- How to Generate the COGS Account from the

Order Type

35

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

Questions & Answers

36

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Top Articles and Community Links


Order Management (OM) Information Center [ID 1395754.2]. Order Management Advisor Webcast Schedule [ID 1455888.1]. Continue the Discussion on the Order Management My Oracle Support Community. Advisor Webcast Survey at the end of this webcast.

37

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Advisor Webcast Program


Register for upcoming live advisor webcasts. Access past webcast recordings and presentation material. Continue the discussion on a specific webcast topic. Let us know what topics you would like presented in the communities Provide feedback in the post webcast survey

38

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

Questions & Answers

40

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

THANK YOU

41

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

file:///D|/...ts/Order_Management/2013/2013_1015_Parthasarathy_Holenarasipur/Mfg_OM_Advisor_Webcast_2013_1014_Output_1.html[10/15/2013 10:04:41 AM]

**** 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 VARCHAR2

NUMBER NUMBER NUMBER NUMBER VARCHAR2 VARCHAR2 NUMBER NUMBER NUMBER NUMBER VARCHAR2

554531 CODE_COMBINATION_ID

ITEMATTR

554531 REPLACE_CURRENT_VALUE

CONSTANT

file:///D|/...ts/Order_Management/2013/2013_1015_Parthasarathy_Holenarasipur/Mfg_OM_Advisor_Webcast_2013_1014_Output_1.html[10/15/2013 10:04:41 AM]

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

Database Information [Top]


Server = celalnx40.us.oracle.com Version = Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production Name/SID = VISOM04 Language = AMERICAN Character Set = AL32UTF8

Application Information [Top]


Release = 12.1.3 Application = Order Management (660) with status of INSTALLED Responsibility = Order Management Super User, Vision Operations (USA) (21623) Security Group = Standard MultiOrg Flag = Y

Oracle Diagnostics Information [Top]


Patch OD for R12.1.3 (8919495) is installed Patch Oracle E-Business Suite Diagnostics, R12.IZU.B.DELTA.3 (9239092) is installed

Product Installation Status and Patchset Level [Top]


Application Short Name Id Installation Status Patch Level Advanced Pricing QP 661 Installed R12.QP.B.3 Order Management ONT 660 Installed R12.ONT.B.3 Shipping Execution WSH 665 Installed R12.WSH.B.3
3 rows retrieved

Parameters[Top]
Username = OPERATIONS Responsibility = Order Management Super User, Vision Operations (USA) (Id = 21623) Order Id = 4938659

file:///D|/...ts/Order_Management/2013/2013_1015_Parthasarathy_Holenarasipur/Mfg_OM_Advisor_Webcast_2013_1014_Output_2.html[10/15/2013 10:04:51 AM]

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

file:///D|/...ts/Order_Management/2013/2013_1015_Parthasarathy_Holenarasipur/Mfg_OM_Advisor_Webcast_2013_1014_Output_2.html[10/15/2013 10:04:51 AM]

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.

file:///D|/...ts/Order_Management/2013/2013_1015_Parthasarathy_Holenarasipur/Mfg_OM_Advisor_Webcast_2013_1014_Output_2.html[10/15/2013 10:04:51 AM]

Das könnte Ihnen auch gefallen