OM: Generate Cost of Goods Sold Account problem?

Hi,
I have a requirement to set override segment4 of COGS which logic come from Customer Sales Channel lookup values DFF (in this case = 611) if sales channel = "MASS".
What i did is after Get CCID from the Order Type Id, i created a new function that set the hidden attribute FND_FLEX_SEGMENT4 with the lookup values mention above to override the segment4. Then after that call Validate Code Combination.
But after debugging the code using cogs_11i.sql from Metalink, segment4 was not get override as shown below :
New Segment 4 : 611 => come from debug output message
Return CCID : 151814
Concat Segments : 3101.3203.02I.212.74010001.000.0000
May i know how to overcome this problem? Appreciate your help.
Thanks & Regards,
Fendy

Hi,
Standard workflow "OM : Generate Cost of Goods Sold Account" has following steps:
1/ Start generating Code Combination
2/ Get CCID for a line
3/ Copy Values from Code Combination
4/ Validate Code Combination
5/ End generating Code Combination
If I want to modify the segment4, the custom function to set the attribute FND_FLEX_SEGMENT4 need to be inserted just after the step "Copy Values from Code Combination" (NOT just after "Get CCID for a line").
Is it what you have done?
J.

Similar Messages

  • OM: Generate Cost of Goods Sold Account (OECOGS) workflow

    Hi all
    I am new to apps and workflow, Can any one tell
    1) when OM: Generate Cost of Goods Sold Account (OECOGS) workflow will run after the "workflow backgroud process" request (or) at the time "workflow backgroud process" request? ( when we transfer the data from OM to AR we will run this "workflow backgroud" concurrent Request. But i dont know when this (OECOGS) will run)
    2) Can any one help to find out which exact package trasfering the data from OM to RA_interface_lines_all

    For 1):
    When a workflow is launched (create and start) from anywhere in the application a form or batch program, the workflow will continue to process all activities until it finds an error or it is explicitly defined to deferred the current activity. In that case the activity will be put in a workflow queue, so that later on the worfklow background process resumes such activity till the workflow is completed or again an error is hit or the activity is explicitly defined to be deferred.
    So basically when a worfklow is launched, it will process as much as it can till it is completed. The background process will progress a workflow when it did not complete in the original kick off; otherwise it is not needed to run the background process to complete a WF.
    Yes, the status monitor is a good tool to tell what stage a workflow process is at.
    For second question you might need to open a forum thread on the involved functional groups.

  • Wanted flow of this OM: Generate Cost of Goods Sold Account (OECOGS)"–

    Hi All
    I want to customize standard Workflow "OM: Generate Cost of Goods Sold Account (OECOGS)"– generates COGS account when interfacing invoices to AR. Scenario is like this
    Standard Oracle Entries generated at sales
    COGS Dr 110.00
    To Inventory A/c Cr 110.00
    Based on some %age we need to break the entries as below.
    Customization required:
    Materials Dr 50.00
    Labour Dr 40.00
    Over Head Dr 20.00
    to Inventory A/c Cr. 110.00
    Is this Possible in Customization? If possible can you give the idea.
    This workflow will run when interfacing invoices to AR, I want to know name of pl/sql procedure which is transfering the date form OM to AR Interface table???
    Please look into this

    Hi;
    Please check below which could be helpful for your issue:
    COGS WORKFLOW FAILING DURING INTERFACE TRIP STOP - 'OECOGS/#SYNCH' [ID 1072959.1]
    Common Errors and Solutions when Using Workflow in Order Management [ID 429462.1]
    Also see:
    Workflow customization
    Re: Workflow Customization
    Regard
    Helios

  • Using OM: Generate Cost of Goods Sold Account with RFFU1 (segment6)

    We have a new requirement to change our COGS account which is generated on sales order issues. Currently we use the COGS generator workflow to 1st derive the default COGS account ccid based on line type (OE_FLEX_COGS_PUB.GET_ORDER_TYPE_DERIVED), then we derive the "STORE" segment (from ccid generated from OE_FLEX_COGS_PUB.GET_SALESREP_REV_DERIVED).
    We now additionally have to use "item category", whose value will be stored in segment6 (RFFU1) of the Accounting Flexfield. Since this is a "future use" segment, I understandably don't see any function in OE_FLEX_COGS_PUB that would be able to do this. My question is, I believe I could write some custom functions that could assign the ccid based on the category (RFFU1) segment and add them to the workflow, but would that be considered a best practice? Is this something that businesses do ?
    Thanks for any information!
    Mike

    For 1):
    When a workflow is launched (create and start) from anywhere in the application a form or batch program, the workflow will continue to process all activities until it finds an error or it is explicitly defined to deferred the current activity. In that case the activity will be put in a workflow queue, so that later on the worfklow background process resumes such activity till the workflow is completed or again an error is hit or the activity is explicitly defined to be deferred.
    So basically when a worfklow is launched, it will process as much as it can till it is completed. The background process will progress a workflow when it did not complete in the original kick off; otherwise it is not needed to run the background process to complete a WF.
    Yes, the status monitor is a good tool to tell what stage a workflow process is at.
    For second question you might need to open a forum thread on the involved functional groups.

  • Receiving Error Message : Cost Of Goods Sold Account Generation Failed

    Hi All,
    We need some assistance with this issue...for a given item when the Customer RMA order Line is being received into a given organization/sub inventory/locator we are getting this error message in the Receiving Transactions Interface ( RTI ) as mentioned below.
    Cost Of Goods Sold Account Generation Failed with error :RVTII-030: Subroutine rvtiicreate() returned error
    Cause: Subroutine rvtiicreate() returned an internal error.
    We checked for this item in the organization the Cost of Goods Sold Account has been defined in the Costing Tab in the Item-Org Assignment and this GL account is also enabled on the GL side and is Active.
    The scenario is like this :
    1. Firstly this item is shipped out on an Outbound order line to the customer location and we checked for the valid Sales Order Issue transaction against this item for this order. We checked for its Inventory Distributions as well.. these look to be valid.
    It shows : Inventory valuation account is decremented while the Deferred Cogs of Goods Sold account is incremented.
    2. Then this item is being entered on Return order line and after booking the order line . It goes to Awaiting Return status. Next the user tries to attempt the Receipt for the Customer RMA order line for this item we are getting the error mentioned below in the RTI tables :
    Cost Of Goods Sold Account Generation Failed with error :RVTII-030: Subroutine rvtiicreate() returned error
    Cause: Subroutine rvtiicreate() returned an internal error.
    Coudl someone please assist us with this issue as this is happening in Production instance ..that would be very helpfull of you..
    This is an urgent issue
    thanks

    Hi,
    Standard workflow "OM : Generate Cost of Goods Sold Account" has following steps:
    1/ Start generating Code Combination
    2/ Get CCID for a line
    3/ Copy Values from Code Combination
    4/ Validate Code Combination
    5/ End generating Code Combination
    If I want to modify the segment4, the custom function to set the attribute FND_FLEX_SEGMENT4 need to be inserted just after the step "Copy Values from Code Combination" (NOT just after "Get CCID for a line").
    Is it what you have done?
    J.

  • Query about Inventory Cost of Goods Sold Account Generator WF Customization

    Hi
    We are trying to Customize the 'Inventory Cost of Goods Sold Account Generator' workflow for our client in Oracle Applications 11.5.10 instance.
    We have successfully uploaded the modified workflow and changed the GL Account Generator Process to point to the Custom Workflow.
    Database is bounced after this change, but the changes are not taking effect.
    Any help in this matter would be greatly appreciated.
    Thanks and Regards

    Hi,
    You shouldn't need to bounce the database for any changes to take affect (although if you were experiencing the "existing state of the packages has been discarded" error then it would clear that).
    Switch on debugging so that the workflow is persisted rather than being run in forced synchronous mode, and then see what route the process is taking. If you open the workflow from the database via workflow builder, are you seeing the correct version?
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Compare with my cost of goods sold account to my sales revenue account

    Hi,
    i want to compare with my cost of goods sold account to my sales revenue account.
    After PGI my COGS a/c will be debited INVENTORY a/c will be credited so after sales my SALES a/c credit & customer a/c debit . I want to see what is the difference value of COGS a/c with respective billing Sales A/C
    No doudt we can see in Profit of margin in billing doc. It is quite impossible to see all document in respective wise. Please give a solution for which i can know what is profit of margin with comparing values in both of Account.
    Thank's
    Abhay

    Hi,
    This is possible through CO-PA report. You can get the result per sales order.
    Also the same can be achieved in FI as follows:
    Outbound delivery document thr" VL01N is captured in "Reference field" of FI doc (BKPF-XBLNR) generated through delivery.
    If the settings are done by SD person to capture the outbound delivery no. in "Reference field" of FI doc generated through Billing document (VF01), then there will be a common field to compare the documents in both accounts.
    In transaction FAGLL03, select the account COGS & Sales revenue account. Once the report displays, sort or take sub total on this common field "Reference".
    This will give you difference between COGS & Sales revenue per document.
    Hope this resolves your query.
    Regards,
    Ashutosh

  • Cost of good sold  account not updated

    Hi all,
    Could you please advise me on the below issue
    Through sales process billing was completed on fin year 2007.
    In the material master standard price maintained u201C 0u201D because of this reason cost of good sold  account did not updated in FI.
    But the billing document was generated as per billing conditions.
    Physically the inventory has been reduced from the warehouse stock and valued appropriately.
    The financial year already closed, please advise how should rectify this.
    KSR

    Hi all,
    Please advise how to coreect this in finacial year 2008.
    KSR

  • Cost of Goods Sold Accounts by Region

    Hi Friends,
    While doiing the GL settings base on Item Groups, there is an option to set the Revenue Account based on Domestic.EU.Foreign.
    Bu why is there no Cost of Goods of Sold accounts based on that.
    Is Cost of Goods Sold account use for calculating gross profit. If so it makes sense to have a single Cost of Goods Sold.
    Can anyone correct me if ia m wrong and please explain to me why  Cost of Goods Sold account is not divided in to Domestic, EU, Foreign.
    Further what is the Expenses Account, in GL settings according to Item Groups, mean.
    Thanks & Regards
    Shiva

    Hey Julie,
    We also need to use a different GL account for inter-company and I am wondering where do you setup GL account by warehouse?
    Can you please provide the menu path or transaction code?
    Thanks,
    Kundan

  • Trying to pull in Cost of Goods Sold Account from Master Items.

    Running Oracle EBS 11.5.10.2 on 10.2.0.4 database. I have written item master code and I am now trying to pull in the Cost of Goods Sold Account from the Costing Tab in the Master Items Screen. I was able to join MTL_SYSTEM_ITEMS to GL_CODE_COMBINATIONS. Some of the accounting segments are correct but others are not, which leads me to believe I may not be joining to the correct tables. Any suggestions or hints are appreciated.
    Thank you,
    SELECT MSI.INVENTORY_ITEM_ID                INVENTORY_ITEM_ID    
    , msi.segment1                              ITEM             
    , MSI.DESCRIPTION                           DESCRIPTION
    , msi.inventory_item_status_code            INVENTORY_ITEM_STATUS_CODE
    , msi.item_type                             ITEM_TYPE
    , max (mirb.revision)                       REVISION
    , MSI.PRIMARY_UOM_CODE                      PRIMARY_UOM_CODE
    , msi.shippable_item_flag                   SHIPPABLE_ITEM_FLAG
    , NVL (CIC.ORGANIZATION_ID, '0')            ORGANIZATION_ID
    , NVL (CIC.ITEM_COST, '0')                  ITEM_COST
    , NVL (CIC.MATERIAL_COST, '0')              MATERIAL_COST
    , cct.cost_type                             COST_TYPE
    , MCB.SEGMENT1
                        ,GCC.segment1
                        ,GCC.segment2
                        ,GCC.segment3
                        ,GCC.segment4
                        ,GCC.segment5
                        ,GCC.code_combination_id
    FROM CST_ITEM_COSTS CIC
    , CST_COST_TYPES CCT
    , CST_COST_TYPES CCT2
    , MTL_SYSTEM_ITEMS MSI
    , MTL_ITEM_CATEGORIES MIC
                ,gl_code_combinations GCC
    ,MTL_CATEGORIES_B MCB
    , MTL_DEFAULT_CATEGORY_SETS MDC
    , MFG_LOOKUPS LU1
    , mtl_item_revisions_b mirb
    WHERE CCT.COST_TYPE_ID(+) = CIC.COST_TYPE_ID
    AND CCT2.COST_TYPE_ID(+) = CCT.DEFAULT_COST_TYPE_ID
    AND MSI.INVENTORY_ITEM_ID = CIC.INVENTORY_ITEM_ID(+)
    AND MSI.ORGANIZATION_ID = CIC.ORGANIZATION_ID (+)
    AND MSI.COSTING_ENABLED_FLAG = 'Y'
    AND MIC.INVENTORY_ITEM_ID (+) = CIC.INVENTORY_ITEM_ID
    AND MIC.ORGANIZATION_ID (+) = CIC.ORGANIZATION_ID
    AND MIC.CATEGORY_ID = MCB.CATEGORY_ID (+)
    AND MCB.ENABLED_FLAG = 'Y'
    AND MIC.CATEGORY_SET_ID = 1
                        AND MSI.SALES_ACCOUNT(+) = GCC.CODE_COMBINATION_ID
    AND msi.inventory_item_id = mirb.inventory_item_id
    AND msi.organization_id = mirb.organization_id
    AND LU1.LOOKUP_CODE(+) = MSI.PLANNING_MAKE_BUY_CODE
    /* the outside join below, speeds up query, not sure why */
    AND LU1.LOOKUP_TYPE(+) = 'MTL_PLANNING_MAKE_BUY'
    and cct.cost_type = 'ACTUAL'
    AND msi.organization_id = 4
    group by CIC.ROWID, MSI.INVENTORY_ITEM_ID, MSI.SEGMENT1, MSI.DESCRIPTION, MSI.INVENTORY_ITEM_STATUS_CODE,
    MSI.PRIMARY_UOM_CODE, MSI.SHIPPABLE_ITEM_FLAG, CIC.ORGANIZATION_ID, MSI.ITEM_TYPE, CIC.ITEM_COST, CIC.MATERIAL_COST,
    cct.cost_type, MCB.SEGMENT1, GCC.segment1, GCC.segment2, GCC.segment3 , GCC.segment4, GCC.segment5, GCC.code_combination_id

    Hi,
    You need to replace the join MSI.SALES_ACCOUNT(+) = GCC.CODE_COMBINATION_ID with msi.cost_of_sales_account(+) = GCC.CODE_COMBINATION_ID to get the COGS account. Currently you are getting sales account not COGS.
    Thanks
    Vishalaksha

  • HOW the cost of good sold account is l liked with GL code_combination_id

    Can any one pass the query how the cost of good sold account is l liked with GL code_combination_id

    Like any other GL code, i.e.:-
    select code_combination_id
    from gl_code_combinations
    where segment1 = ’01’
    and segment2 = ’540’
    and segment3 = ’5360’
    and segment4 = ’0000’
    and segment5 = ’000’
    -- etc. according to how your COA is structured
    and chart_of_accounts_id = +{ your COA id }+;
    Regards,
    Jon

  • Cost of Goods sold value problem

    Dear all,
    In a Make To Stock, material use "Moving average" case.
    For example
    1-Sep: Moving avg = $30
    15-Sep: Sales & PGI (A)
    30-Sep: Moving avg = $70
    30-Sep: Sales & PGI (B)
    First of all, I expect the Cost of goods sold for Sales & PGI (A) should be $30, and $70 for (B).
    Is that correct?
    However, now I have all the Sales & PGI entries created on 30-Sep,
    And the posting date is controlled by the Actual GI Date in the Delivery.
    And I found that both PGI value became $70!!!
    Could anyone explain that to me??? Or could anyone provide me a solution to this?
    Many Thanks!
    Best regards,
    Chris

    PLease check this SAP note. I think this will solve your problem
    The following example should demonstrate how such prices can come about. The main cause of the steep rise in the price is that a posting, the value of which is externally predefined, results in a stock quantity which is close to zero. Furthermore, goods receipts exist which are valuated with the current moving average price since no external amount is specified.
    Example:
    Overview:
                                      Quantity        Value    MAP
    (1) Initial stock:                0 items        0.00 $   200.00 $
    (2) GR for 1st purchase order: +1500 items +300,000.00 $
        Stock after (2)            1500 items  300,000.00 $   200.00 $
    (3) GR for 2nd purchase order: +1500 items +330,000.00 $
        Stock after (3)            3000 items  630,000.00 $   210.00 $
    (4) GI for the delivery:       -2849 items -598,290.00 $
        Stock after (4)              151 items   31,710.00 $   210.00 $
    (5) Reversl of 150 itms from (1)-150 items  -30,000.00 $
        Stock after (5)                1 item    1,710.00 $1,710.00 $
    (6) Inventory difference        +150 items +256,500.00 $
        Stock after (6)              151 items +258,210.00 $ 1,710.00 $
    (7) Reversl of 150 itms from (1)-150 items  -30,000.00 $
        Stock after (7)                1 item  +228,210.00 $ 228,210.00 $
    Detail:
    1. In the following, say for material X price control 'V', the moving average price is 200.00 $ and the current entire valuated stock is 0 items.
    Assume you have a purchase order of 1500 items at 200.00 $ each. Moreover, 10 partial goods receipts are now posted for each of 150 items for this purchase order, so that material X then has a total stock of 1500 items with a value of 300,000.00 $.
    2. Another purchase order now exists of 1500 items at 220.00 $ each. Here also, 10 partial goods receipts are posted for each of 150 items goods receipt. As a consequence, material X now has a total stock of 3000 items with a value of 630,000.00 $. The moving average price is thus 210.00 $.
    3. Now let's look at a delivery of 2849 items. This is valuated as follows using the logic of the quantity to be posted * total value / total stock. This leads to a total stock of 150 items with a value of 31,710.00 $. This does not affect the moving average price, and thus remains 210.00 $ also after the posting.
    Now consider the following postings:
    4. You reverse the first goods receipt under 1. This reversal would valuate the goods receipt of 150 items with a value of 30,000.00 $. As a result Material X after posting has a total stock of 1 item with a value of 1,710.00 $. The moving average price would thus already be 1,710.00 $.
    5. There is now an inventory difference of 150 items without entering an external amount. This posting is valuated with the moving average price and leads to a stock quantity of 151 items with a stock value of 258,210.00 $.
    6. You now enter another reversal for one of the partial goods receipts cited under 1. This then is valuated again with a price of 200.00 $. This results in the material having a stock of 1 item with a value of 228,210.00 $.
    If you now repeat transactions/events 6 and 7, you can imagine that the moving average price grows rather quickly.
    Solution
    This effect is both from a business and accounting point of view the logical result if there are a lot of goods receipts which have to be valuated with the moving average price and goods issues which in contrast to this are posted with an externally predefined amount.
    You can determine tolerance limits for the moving average price variances in Customizing (Transaction: OMC0). Further information can also be found in the R3 guide:  MM - Invoice verification and material valuation.

  • Cost of Goods Sold account determination by customer type (inter-company)

    We have a business need to separate the the cost of goods sold be customer type.  Specifically separating the inter-company cost of goods sold from the 3rd party cost of goods sold. 
    The standard COGS account determination in GBB/VAX only allows for differentiating between material valuation class. 
    Has anyone attempted this before and what method worked?

    For those who may need an answer to this, our solution was the following: 
    1)       Created new types for SO, SO Item, Sched. Line, Delivery, Delivery Item, Billing type  
    2)       Created new Pricing procedure
    3)       Created new movement type Y61/Y62 modeled after 601/602
    4)       Mapped Y61/Y62 to account modifier ZAX.
    5)       Mapped GBB/ZAX to the new account.
    Benefits, they now have better view of the orders going inter-company.  It is flexible enough to adjusting prices for intercompany separate from standard orders, even though for now it is a straight copy of cost.  They are able to remove the sales/use tax, from the calculations. They are able to plan with these orders separated out.  Plus, this will standardize their process for inter-company. 
    Hope this helps someone. 
    Cheers!
    Rick

  • Separate Cost of Goods Sold accounts

    Hi,
    How can I have separate Cost of Goods Sold GL accounts to track my Export and Domestic Sales ?
    Regards,
    Manoj

    Hi,
    You can maintain two account assignment group for customers(01 exports & 02 Domestics) and set the account determination with the access sequence involving account assignment group.Assign two different GL accounts in VKOA determination for the respective account assignment group
    Reward points if helpful
    Regards,
    Amrish Purohit
    Message was edited by:
            AMRISH PUROHIT

  • Substituting Cost of Goods Sold Account Profit Center

    Hi
    I am using Sales Order substitution to change the Profit Center according to Sales Org + Product Hierarchy + Customer Group + Acct Asst Grp.  This perfectly replace the Profit Center in Sales Order.  The Profit Center from Sales Order is perfectly flowing to Outbound Delivery.
    While doing PGI, in accounting document, Cost of Goods Sold line item is not getting the profit center from outbound delivery.  It post COGS line item with Material Master profit center.  We want profit center of Cost of Goods Sold line item is same as Sales order / Outbound Delivery.
    I checked SCN, everyone provided the solution of using FI Substitution to change the Profit Center of COGS line item.
    Is it any other way it can be achieved?  if FI Substitution is only the way, can anyone provide the sample code, so that it can be developed fast.
    Thanks
    Venkat Ramachandran

    For those who may need an answer to this, our solution was the following: 
    1)       Created new types for SO, SO Item, Sched. Line, Delivery, Delivery Item, Billing type  
    2)       Created new Pricing procedure
    3)       Created new movement type Y61/Y62 modeled after 601/602
    4)       Mapped Y61/Y62 to account modifier ZAX.
    5)       Mapped GBB/ZAX to the new account.
    Benefits, they now have better view of the orders going inter-company.  It is flexible enough to adjusting prices for intercompany separate from standard orders, even though for now it is a straight copy of cost.  They are able to remove the sales/use tax, from the calculations. They are able to plan with these orders separated out.  Plus, this will standardize their process for inter-company. 
    Hope this helps someone. 
    Cheers!
    Rick

Maybe you are looking for

  • Creating new 'category/index' for apple loops in logic

    As well as the standard apple loops, I currently have an additional apple loops jampack & a number of self-made apple loops. These have been indexed automatically, & can be referenced via the drop-down on the top right of the loop browser as 'jampack

  • How to view the key mapping when viewing Hierarchy in Data Manager

    Hi! I previously posted a question on doing value mapping using the hierarchy code rather than the name. I have got that working now using concept of remote key. When I first loaded the hierarchy with remote key and check in Data Manager, I can see t

  • Some sample applications plz?

    Hello, I'm developing application, but i want to actually see how others build applcations, how the true functionality of hte application would be on flex, can you plz pass me any sample application. You can send me private message.. Thanks for your

  • RFC enabled function module and BAPI?

    What is the difference between RFC enabled function module and BAPI?  I have requirement to develop a new BAPI which will update a custom table and read the same table in SAP from an external application. Do we need define a port or RFC destination f

  • Getting the best possible DVD encodes out of Compressor

    Is there a decent guide somewhere about how best to set Compressor DVD encode projects up? I take it using the standard two-pass encode settings probably isn't ideal and some tweaks would possible yield better results. I just read this on another sit