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

Similar Messages

  • 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

  • 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.

  • 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.

  • 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

  • Posting of Commission Exp to calculate the Cost of Goods Sold

    Hi Team,
    I do work in an automobile manufacturing organization and is new to SAP FI module. I have a business requirement which I need to fulfill; I would appreciate if all you gurus help me with finding the solution.
    Business Scenario:  at present, we are posting the following entries to record the commission we paid to dealers for selling vehicles.
    Commission Exp (DR)
         Customer (CR)
    Customer (DR)
         Dealer (CR)
    With these entries we are not been able to track the commission based on vehicle variants i.e. Toyota GLI, XLI etc.
    New Requirement:
    To calculate the Cost of Goods Sold for a variant, I need to track the commission expense based on vehicleu2019s variants. Please help me in finding the solution.
    Thanks

    Thanks for quick response.
    Let me give little more details of type of commission entries we have
    1) Normal Commission - Fixed commission variant wise and is derived from SD.
    2) Additional Commission - No predefined formula, this is totally based on top management discretion. Management decides how much would be paid to a particular dealer.
    3) Sliding Commission deduction - Deduction of certain amount from commission on late payments.
    4) Additional Sliding Commission - Payment of additional commission based on early payment terms.
    Currently, FI department is calculating all these figures on Excel sheets and then post a JV for each type of above mentioned commission.
    How can I configure the system to calculate these amounts automatically without involving Excel Sheet help?
    and how to post these amounts variant wise along with dealers and customers.

  • 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

  • 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

  • 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.

  • 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

  • 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

  • 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

  • Book revenue on this month but the cost of goods sold need to get from last month

    Hi experts,
    I have a question about cost and revenue. We have a standing service repair order and a contract to customer. Because the revenue is calculated by flight cycle so maybe when we get the flight cycle information for this month should be the midle of next month. Due to the monthly end close schedule I need to book the revenue on this month but the cost of the revenue we need the get the cost occur last month. For example, current month is May, 2014 and I book the revenue and posting date is May, 31, 2014. But the cost I just want the amount occurred in customer service order(IW31) on Apr, 2014. And the cost occured in May, 2014 should become WIP. Is it possible? Please advise.
    Thanks and Best Regards,

    Hi experts,
    I have a question about cost and revenue. We have a standing service repair order and a contract to customer. Because the revenue is calculated by flight cycle so maybe when we get the flight cycle information for this month should be the midle of next month. Due to the monthly end close schedule I need to book the revenue on this month but the cost of the revenue we need the get the cost occur last month. For example, current month is May, 2014 and I book the revenue and posting date is May, 31, 2014. But the cost I just want the amount occurred in customer service order(IW31) on Apr, 2014. And the cost occured in May, 2014 should become WIP. Is it possible? Please advise.
    Thanks and Best Regards,

Maybe you are looking for