Account generator for COGS

Hi All
A New requriement is given by my boss Like this "the analysis to be done is can the account generator be modified in such a way that when a cogs transaction happens;
Instead of hitting cogs.. it hit three different account based on % of cogs?
OM: generate cost of goods sold account(OECOGS)
Inventory cost of good sold account(INVFLxwf)
I am not yet work on workflow and not aware on Account Generator, Can any one help me how to start this ? He given less time to analys,
I open the function start_generator which is used in the workflow but, I not able to understand the parameter that they refers to( itemkey,actid,funcmode) ????? how the values
pass to workflow???
start_generation(itemtype IN VARCHAR2,
               itemkey IN VARCHAR2,
               actid IN NUMBER,
               funcmode IN VARCHAR2,
               result OUT nocopy VARCHAR2)
IS
BEGIN
IF (funcmode = 'RUN') THEN
-- Debug
IF (g_debug_fnd_flex_workflow_apis) THEN
     debug('START FND_FLEX_WORKFLOW_APIS.START_GENERATION');
END IF;
result := complete_no_result;
RETURN;
ELSIF (funcmode = 'CANCEL') THEN
result := complete;
RETURN;
ELSE
result := '';

Hi out there,
does anyone know how to change BSEG-HKONT via a subsitution ? It seems to be blocked for that purpose.
If there is not possibility does anyone know a customer exit to change the account determination for GBB VBR when posting a goods issue ? It is needed for special postings and I want to program it either in a substituiton or exit.
Thanks a lot for your help.
Sebastian

Similar Messages

  • Account Generator for Projects

    I need to customize Account Generator for Documents (PO,REQ & Invoice) which are linked to Projects.
    So we zeroed in on below Workflows
    1. PO Account Generator
    2. PO Requisition Account Generator
    3. Project Supplier Invoice Account Generation
    For 1, PO Account Generator, we found the node under Process "Generate Default Charge Account" where it's checking for Destination Type, & if it's Expense then it's checking if PO is Project Based. Now my question is
    Q1.1 --> Can PO be of Inventory or Shop floor & still have Project associated with it. If yes, then how can we do the customization of Charge account for PO's based on Project.
    For 2,we found the node "Build Expense Project Charge Account" under Process "Build Expense Charge Account".
    Q2.1 --> Is it where we need to Put the customization for Project related requisitions. Again this process is for Destination Type of Expense. So again same question under 1.1 will answer the second part of question for PO Requisition Account Generator
    For 3, as of now I am very much confused on this workflow where to put the customization for Project related Invoices.
    Any help is appreciated.
    Thanks Much
    Sachin

    We were able to finally confirm that we are doing the customization on right node.
    Now we are stuck as we are being asked that we only need to call standard packages for customization, now if Account is setup as Lookup Set on Oracle Projects, then we have found that by calling PA_ACC_GEN_WF_PKG.PA_SEG_LOOKUP_SET_VALUE we'll be able to derive the value for the segment. But what will happen to Rules & Functions defined in Oracle Projects. How they can play the role for customizing Account Generator.
    Any help. Let me know if I can explain in more detail.
    Thanks

  • Account determination for COGS account by customer

    Dear gurus
    I’d like to get advice about account determination for COGS account.
    I have requirement to determine COGS account based on “Customer”.
    If the customer is outside the group, we want to charge to
    “Sales: Third-party” and “COGS: Third-party” accounts.
    And if the customer is in the group, we want to charge to
    “Sales: Intercompan” and “COGS: Intercompany” account.
    However, since COGS account is determined from Valuation class in
    Material master (OBYC), it cannot be determined from “Customer”.
    (Because same material can be sold to third-party and intercompany too)
    Do you know any solution for it?
    Yoshi

    Hi
    The only other way I could think of is to do an enhancement at the time of delivery to read the customer and substitute the GL Account for COGS based on Customer recon Account.
    The sales can easily be seggregated based on Customer Account Assignment Group in the customer Sales Area. Assuming the material account assignment group is 01 and customer account assignment group are as under:
    External Customer 01
    Group Customer    03
    Now in VKOA you can seggregate the revenue account determination for Group and external customer based on different customer account assignment group.
    The only issue is for COGS GL for which you might want to look at Enhancement or Split Valuation that I talked about earlier.
    Thanks & Regards
    Sanil Bhandari

  • Customize workflow for project in  po account generator workflow

    hi,
    i customize workflow for project of PO account generator.
    the project is not working for PO account generator.
    for that customize PO account generator.
    it is working for one user.it is populating charge account.
    but it is not working for new user.
    i checked why it is working for PO account generator.
    i put one custom package.
    I'm  taking project_id .
    it is not reading it.
    why it is not working for other user.
    can you check and conform me.
    reg
    sasi

    Hi Asif,
    Thanks for the reply.
    I referred the links mentioned by you, but couldn't find anything relevant to re-triggering of Account Generator workflow.
    The customizations I did are working fine and is triggering the workflow. But my Question is, what are the circumstances that re-trigger the Account Generator for a given Purchase Order.
    To elaborate, say for instance I have created a PO for PO category 'Electrical Equipments' furnishing all other details and charge account is generated for this category, and the PO is saved. Now I come back and change the PO category to 'Medical Equipments' for the same PO, retaining all the other info same.
    So here, will the Account generator be re-triggered to generate different charge account?
    Kindly suggest.
    Thanks,
    Nivedana

  • Help Required in : PO Account generator workflow customization.

    Hi All,
    I am new to workflow, I want to customize PO account generator workflow in 11i. I need to build the logic to populate charge-account on PO.
    I have identified the process in PO Account generator workflow but I am not sure whether I should pick the same process for modification or create new process.
    As I don't want if any upgrade patch applied , it will overwrite modified standard process. I have read articles on preserving customizations but couldn't get much from it, they are very confusing.
    Please help.
    Thanks in Advance.

    Hi Asif,
    Thanks for the reply.
    I referred the links mentioned by you, but couldn't find anything relevant to re-triggering of Account Generator workflow.
    The customizations I did are working fine and is triggering the workflow. But my Question is, what are the circumstances that re-trigger the Account Generator for a given Purchase Order.
    To elaborate, say for instance I have created a PO for PO category 'Electrical Equipments' furnishing all other details and charge account is generated for this category, and the PO is saved. Now I come back and change the PO category to 'Medical Equipments' for the same PO, retaining all the other info same.
    So here, will the Account generator be re-triggered to generate different charge account?
    Kindly suggest.
    Thanks,
    Nivedana

  • Customization of PO account generator workflow

    Hi everyone,
    I want to customize AG workflow for PO and PR, the requirement is that the user want to enter charge account manually at the time of PO or PR creation for an inventory expense item.
    Is it possible to do so and if anyone can guide me to do so, i will be more than thankful.
    Thanks in Advance,
    Israr

    Hi Asif,
    Thanks for the reply.
    I referred the links mentioned by you, but couldn't find anything relevant to re-triggering of Account Generator workflow.
    The customizations I did are working fine and is triggering the workflow. But my Question is, what are the circumstances that re-trigger the Account Generator for a given Purchase Order.
    To elaborate, say for instance I have created a PO for PO category 'Electrical Equipments' furnishing all other details and charge account is generated for this category, and the PO is saved. Now I come back and change the PO category to 'Medical Equipments' for the same PO, retaining all the other info same.
    So here, will the Account generator be re-triggered to generate different charge account?
    Kindly suggest.
    Thanks,
    Nivedana

  • PO Account Generator Workflow

    We are customizing following account generator workflows:
    1. PO Requisition Account Generator(POWFRQAG)
    2. PO Account Generator(POWFPOAG)
    Requirement: When user enters charge account manually for requisition/purchase order, SEGMENT4 value has to be updated based on business rules. Based on new SEGMENT4 value, charge account should be updated accordingly. User will be entering the charge account manually.
    Problem: We have included required customization in these workflows. 'CODE_COMBINATION_ID ' attribute(charge account id) is updated with new CCID value. However this value is not getting reflected in the form.
    Example: Charge account ID which is entered manually in the form is 14049. As per business rules, new charge account id will be 14052. However this value when passed to the form is not getting updated. When we see workflow attribute values from 'Status Monitor', charge account id is having the value 14052.
    So the main question is whenever charge account is entered manually, requisition/purchase order form allows updating charge account through workflow? Generally, if project related information is entered, charge account can be overwritten with workflow. However in our case, we are not having any project related information. Based on charge account which is entered manually, we will be updating SEGMENT4 & then generate a new CCID. Any suggestions or pointers will really help.
    Thanks /Santanu

    Hi Asif,
    Thanks for the reply.
    I referred the links mentioned by you, but couldn't find anything relevant to re-triggering of Account Generator workflow.
    The customizations I did are working fine and is triggering the workflow. But my Question is, what are the circumstances that re-trigger the Account Generator for a given Purchase Order.
    To elaborate, say for instance I have created a PO for PO category 'Electrical Equipments' furnishing all other details and charge account is generated for this category, and the PO is saved. Now I come back and change the PO category to 'Medical Equipments' for the same PO, retaining all the other info same.
    So here, will the Account generator be re-triggered to generate different charge account?
    Kindly suggest.
    Thanks,
    Nivedana

  • WorkFlow Customization for COGS Account

    Hello All,
    I am curious to know if any one has created custom functions for
    OM: General Cost of Goods Sold Account.
    Scenario: Make a sale on OM and tr transactions to GL and review the journals.
    CR: 40 (Raw Material)
    CR: 15(Labor)
    CR: 10(OH)
    DB: 65(COGS)
    The default workflow is crediting all cost to COGS account defined at the item level but we want to break it down to individual raw material expense accounts. For this, I believe we need to get cost elements from the cost tables based on item id from the sales order line. And, hard code the accounts for each cost elements. That is supposed to be done as function in workflow and modify the flow with new attributes.
    Sounds simple but we are completely new to workflow and trying to understand where to start.
    I would appreciate if any one could share their knowledge on such custom functions in workflow.
    Thanks a bunch in advance.
    Anant

    Hi,
    I have implemented changes in generating cogs account using workflow to have only one code combination id.
    I don’t if it’s possible to customize cogs workflow in order to split cogs into two or more accounts. To do that, we implemented a custom in gl interface that generates this split, creating a credit in the account combination defined by the workflow and as many debits as our expenses accounts are.
    Regards,
    Ketter Ohnes

  • Generate accounting document for cancel of credit memo

    Hii Guy,
    Need your help to solve this problem.
    My user have perform VK11 to cancel of credit memo. in the sales order document flow, the status is OPEN.
    my user cannot perform creating of accounting document for this cance of credit memo. what are the tcode to generate accounting document ?

    Nizamkz wrote:Hi,
    >
    > Hii Guy,
    >
    > Need your help to solve this problem.
    >
    > My user have perform VK11 to cancel of credit memo. in the sales order document flow, the status is OPEN.
    Are you sure its VK11???? I guess for the cancellation if billing document its VF11......
    Try to do the manual release to accounitng....by going to VF02 and pressing the Green Flag button after entering the cancellation document number. Or Else Try to reverse the posting with FB08.
    Thanks,
    Raja

  • Excise Accounting document not generated for Imported Asset GR

    Dear all,
    Excise accounting document is not generated for imported asset goods receipt(MIGO)
    but "C" Register part 2 no. is generated,usual accounting document is generated for GR,
    Asset is Dr to GR/IR
    Process is
    1. Create asset purchase order with acct. assignment "A",
    2. Customs miro based on p.o.
    3. Do GR with excise
    4. Post invoice for orginal vendor.
    What will be cause of this problem ?
    How to solve this issue ?

    The above issue may be due to Accout assignmnet -A . Check your accout assignment  in spro -mm-purchasing -accout assignment - Asset A - GR Non valuated has Ticked on . If it is ticked on - No Fi entry will happen at the Time of GR .
    The reason being , if an FI entry happen for the first time , asset is capitalised . To avoid this GR is made in ur config as this .
    rewdzzzz is full if correct
    Edited by: manu m on Apr 24, 2010 11:11 AM

  • Accounting document not generating for excise invoice.

    Dear all ,
    my issue is
    accounting document not generating for excise invoice
    we are creating accounting document in J1iin
    with refferance to billing document but the accounting docuemnt is not generating
    the accounting document for billing document is generated
    so why the accounting document for excise invoice is not genrating its showing the correct amount in BED ,cee and HE Secc.
    please help
    regards
    Subrat

    IMG -> In Logistics u2013 General -> Tax on Goods Movement -> India ->  Account Determination -> Specify Excise Accounts per Excise Transaction
    Check if the following is maintained or not
    DLFC       CR Credit      PLAAED PLA AED account
    DLFC       CR Credit      PLAAT1 PLA AT1 Account
    DLFC       CR Credit      PLABED PLA BED account
    DLFC       CR Credit      PLACESS PLA cess account
    DLFC       CR Credit      PLAECS PLA ECS Account
    DLFC       CR Credit      PLASED PLA SED account
    DLFC       CR Credit      RG23AED RG 23 AED account
    DLFC       CR Credit      RG23AT1 RG 23 AT1 Account
    DLFC       CR Credit      RG23BED RG 23 BED account
    DLFC       CR Credit      RG23ECS RG 23 ECS Account
    DLFC       CR Credit      RG23SED RG 23 SED account
    DLFC       DR Debit       MSUSP CENVAT suspense account
    Also IMG -> In Logistics u2013 General -> Tax on Goods Movement -> India ->  Account Determination -> Specify G/L Accounts per Excise Transaction
    Check if for all Excise group u2013 DLFC u2013 Company Code combination GLs are maintained or not (especially in production client)

  • Accounting document not generating for excise invoice-please help

    Dear all ,
    my issue is
    accounting document not generating for excise invoice
    we are creating accounting document in J1iin
    with refferance to billing document but the accounting docuemnt is not generating
    the accounting document for billing document is generated
    so why the accounting document for excise invoice is not genrating its showing the correct amount in BED ,cee and HE Secc.
    please help

    Dear G. Lakshmipathi,
    As uknow i am getting problem when i am creating the debit memo
    so is there any specific ETT for debit memo is there .because we are not maintaining delivery type to billing type here in CIN setting
    so its not goods removal through sales . so what will be transaction type for this.
    how to check the error that why the accounting document is not generated as no error log is also comming.
    so please help me in this regards.
    Thanks with Regards
    Subrat

  • No Accounting Document generated for goods issue in case of MTO scenario

    Hi all,
    I have MTO scenario & the industry is trading. So I have all trading goods. In SPRO - Sales & Distribution - Availability Check and Transfer of Requirements - Transfer of Requirements - Determination Of Requirement Types Using Transaction I have determined requirement type as KE.
    In material master I have used strategy group as 20 for Make to order scenario. In the settings "Determination Of Requirement Types Using Transaction" I have determined the requirement type as "KE".
    The requirement type "KE" determines a requirement class "040 - MkToOrdNoValW/o cons". Here the account assignment category is "E-Ind. cust. w. KD-CO".
    Now I created a sales order, the system determined the requirement type as "KE". I saved the sales order, assigned the stock to the sales order  & created a delivery.
    I did the PGI also. But when I check in the document flow, for the material document the system has not generated any FI document where we see the accounting document for the "cost of goods sold" & "inventory" G/L accounts. The system gives a message "Material document 4900000023 does not include an accounting document".
    Note:
    1. When I create the sales order with normal MTS scenario, the system creates an accounting document for the material document at the time of goods issue.
    2. The valuation class in the material is 3100 for trading goods.
    3. The following settings have been made in OBYC.
    for GBB, the G/L accounts have been assigned for general modifier "BSA", "VAX", "VAY" & "VKA".
    Please suggest me as to where i am missing any settings.
    With best regards,
    Niyaz Sayyed.

    Dear Niyaz Sayyed
    You need to check in the following areas:-
    -  check whether the material is defined as non-valuated stock
    -  go to OME9, select your Account Assignment and see whether you have checked the box "GR non-valuated".   It should not  have been checked
    thanks
    G. Lakshmipathi

  • Accounting Document Not Generated  for SD Billing

    Hello SAP Champs,
    Please let me know if you have any thoughts or solution for the below issue.
    Background:
    We have company code 3000 that was created three years back. In the month of November, 2007, we have activated Controlling in this company code. Now business is trying to cancel an Invoice that was posted prior to Controlling activation (for company code 3000).
    The transaction used is VF11.  The result is a cancellation document has been created in the  system but no accounting document was generated.  The error message is "Account XXXXX requires assignemnt to CO object".
    However there is no issue with the account determination or account assignment setup. In fact all other Invoices(that were generated after controlling is made active), account assignment works just fine.
    We are trying to see if there is any standard procedure or mechanism to resolve this issue.
    Question -  Can we manually create the accounting document for the cancelled invoice? I tried creating one(using FB01) but it was not recognized by the invoice and I'm not seeing it in the document flow. We have the same document number for Invoice and Accounting document.   Please let me know if I'm missing anythiing here or is there a better way to resolve this.
    Thank you in advance for your help. Points rewarded for sure.

    You can map Sales Order number to either 'Assignment' or 'Reference' fields in accounting document using Copy control function in SD. Please use transaction VTFA, this needs to be maintained for combinations of billing type and sales document type. Please ensure these fields are not currently used in your system for other information.
    Following fields can be mapped to 'Assignment' or 'Reference'.
    A Purchase order number
    B Sales order number
    C Delivery number
    D External delivery number
    E Current billing document number
    F External delivery no. if available, otherwise delivery no.
    If you currently use 'Assignment' or 'Reference' fields for other details, you can use user exit EXIT_SAPLV60B_008.
    Thanks
    Venkata Ganesh Perumalla
    Edited by: Venkata Ganesh Perumalla on Oct 4, 2010 11:52 AM

  • How to configure to generate two accounting documents for Mvt 645

    Dear Experts,
    I read all documents related to STO one-step procedure (mvt 645). They said that the system generate two accounting documents for 2 company codes (receing and issuing company codes) after goods issue reference to DO.
    However, after configuration one step procedure and test my system, the system only generated one accounting document for receiving company code, not for issuing company code. In Material document, I saw 2 Mvt 645 and 101. In the lines having Mvt 645, I saw G/L account of cost-of-goods-sold.
    Could you please to show me how to generate two accounting documnets automatically after goods issue referent to DO with Mvt 645?
    Thank you so much,
    Best regards,
    Anh Duong

    My configuration steps are:
    Step 1: preparation:
          create customer and vendor master
          extend sales & purchasing views for material master
    Step 2: Assign customer number and the organizational units (sales organization, distribution channel, and division) to the Supplying plant and Receiving plant
    IMG --> Materials Management --> Purchasing --> Purchase Order --> Set up Stock Transport Order --> Define Shipping Data for Plants
    Step 3: tick on column "One step" for the line of supplying, receiving plant, and PO type cross transport order
    IMG --> Materials Management --> Purchasing --> Purchase Order --> Set up Stock Transport Order --> Assign Document Type, One-Step Procudure, Underdelivery Tolerance
    Step 4: assign delivery type NLCC for PO type cross transport order
    IMG --> Materials Management --> Purchasing --> Purchase Order --> Set up Stock Transport Order --> Assign Delivery Type and Checking Rule
    These above steps are in MM module.
    Please help me,
    Thank you,
    Anh Duong

Maybe you are looking for