Accounting documents qestion from VF03 customer billing

Hi
I am from SD back ground. Please some one can guide us how the accouting documents are creating automatically from customer invoice -
>list of document in accouting -?
1) accouting document
2)profit center doc
3)controlling doc
4)profitability analysys doc
5)special purpose ledger doc.
i know first one accounting doc from accout determination while posting to G/L account.But some one with sales/AR back groung experts give me complete details.
Please  try to answer the question only and any links or any documentation.
Thanks
Kris

When you post any Billing document and customer invoice in SD the GL account assigned in SD for Sales and Cost of sales and Customer and Stocks are posted according to the Billing document and Sale order calculations
now as soon as a FI document ( accounting Document) is posted there are some documents known as
Controlling document , Profit center document and COPA document and Profit center accounting document
are automatically created based on the configuration done by the FI consultant
so it flows from the GL posting to Profitability and special purpose ledger posting automatically once a billing document and invoice is posted
Regards

Similar Messages

  • How to get Accounting document number from billing document number

    Hi,
    How to get Accounting document number from billing document number i.e. from VBAK- VBELN.
    Cheta Pant

    Hi,
    VBAK is the Sale Order header table, Billing document table is VBRK.
    Sales tables (VBAK,VBAP,VBRP,VBRK) do not store accounting document numbers.
    You do other way around. Just go to SE16 and enter the Billing document number in field Billing document VBELN in BSEG or BSID or BSAD table and execute, you will find the accounting document number.
    If you just want collect this information once then you can use table BSEG, but if you think to develope a report then use table BSID and BSAD.
    Regards,
    Chintan Joshi

  • How to fetch accounting document number from known material document number

    Hi,
    Using MIGO transaction, by giving mblnr(material document number) as input, I get accounting document number by clicking FI document.I have to add this accounting document number in my report for corresponding known mblnr(material document number) values.
    My question is how to fetch the accounting document number present in MIGO to add in my report program.
    I used the xblnr(Reference Document Number) which is present both in mkpf and bkpf tables to fetch values.
    I extracted xblnr values with known mblnr values from mkpf (Header: Material Document table).
    and then extracted belnr(accounting document number) from bkpf (Accounting Document Header table) by using xblnr values.
    But the query is running for a long time.
    Is there any other method  to extract the values in a simpler way.
    Kindly advise.
    Thanks and Regards,
    Sanjeev

    I had the values of xblnr and some other fields such as mblnr, budat etc in wi_item table.
    I created a new internal table i_xblnr and got down those values.
    And then created a new internal table i_belnr and tried to get values of belnr in it.
    The code I wrote is given below:
    IF not wi_item[] is initial.
    loop at wi_item.
       at new xblnr.
        ws_xblnr-xblnr = wi_item-xblnr.
         append ws_xblnr to i_xblnr.
       endat.
    endloop.
      select belnr xblnr from bkpf into table i_belnr for all entries in i_xblnr where xblnr = i_xblnr-xblnr.
    ENDIF.
    Kindly look after it.Thank you.
    Regards,
    Sanjeev

  • Accounting document number from billing data

    hi
    i have billing document with multiple items. I need to find out the accounting document number corresponding to each of the billing document item. which tables i need to refer for this.give me the field names.
    thanks

    Hi,
    You can read the FI document with the function module AC_DOCUMENT_RECORD
      call function 'AC_DOCUMENT_RECORD'
        exporting
          i_awtyp      = 'VBRK'
          i_awref      = awref
          i_aworg      = aworg
          i_awsys      = awsys
          i_awtyp_incl = 'BKPF'
          i_valutyp    = '0'
          x_dialog     = ' '
        tables
          t_documents  = docs_fi
        exceptions
          no_reference = 1
          no_document  = 2
          others       = 3.
    where docs_fi is as the table ACC_DOC. Read the records where awtyp = 'BKPF' in itab docs_fi. Search AWREF, AWORG and AWSYS in equivalent fields in table VBRK.
    I hope this helps you
    Regards,
    Eduardo
    Edited by: Eduardo Hinojosa on Jun 14, 2010 3:35 PM

  • How to get an accounting document number from an Invoice number

    Dear All,
    I have a requirement where I need to know which accounting document is created against a  particular invoice. As we know that in the document flow of invoice we can see the Accounting document also. But to develop the report I need to pick the accounting document by the invoice document. Please suggest me a table where this value is getting stored. I already tried VBFA and VBKD but nowhere I am getting such information from which I can pick a accounting document number for a particular invoice.
    Please give me your suggestions.
    Regards,
    Sanju

    Dear,
    For Billing document create no. range by Tcode-VN01 and assign it to in Tcode-VOFA
    For Accounting document create no. range by Tcode-FBN1 and activate the External Field and assing it to in Tcode- OBA7
    but Assign the same no. range to both Document types for exp 1000000 to 1999999.
    Regards
    AJIT K SINGH
    HAPPY TO HELP U

  • Link to find Accounting document number from Material document number / PO

    Hi
    We are working on a custom report, in which we need to print purchasing details (from EKPO, EKKO & EKBE) as well as accounting details (from BSEG & BKPF). We need to hit BKPF/BSEG with the accounting document number, since it is the only key field (though PO number is there in BKPF, we can not use this because it is not a key field)
    My question from which table we get the accounting document number ? We need to provide a link between purchasing & accounting through accounting document number, but how to find the accounting document number. ?
    Thanks
    Venkat.

    Venkat,
      I guess you are trying to fetch Accouting Documents for goods receipt against PO.
      To do this, you need to look at the PO History table (EKBE) and find out the Corresponding material document (VGABE = 1 for good receipt).
      Get the value of BELNR and GJAHR.
      Concatenate BELNR and GJAHR into your refernce key (like BKPF-AWKEY).
      Then use this key to read table BKPF with the following key
       AWTYP = 'MKPF' for Material document
       AWKEY = reference key generated above.
       AWSYS = the value of the logical system (if used) or blanks
    This will get you quicker access as compared to what you've described below. In this case, the system uses a standard SAP Index "Index by application type and key" to fetch the relevant records.
    Hope this helps.

  • Accounting document cleared upon cancellation of billing document

    Hi Guru,
    When I cancel a billing document,  the corresponding accounting document in AR should be cleared automatically.
    I have some cases that when I cancel the billing document,  the system responds with msg. " Automatic clearing of the billing document and cancellation is not possible because line item updating has been deactivated, for example"
    Where do I find this setting to activate??
    Thanks
    Linda

    Hi, Linda,
    I've just send a message to SAP on issue related with yours.
    And now I've received SAP's answer as following:
    As of Release 4.6, there is a new cancellation function in R/3, by meansof which the system automatically clears (among other things) the     
    accounting documents for the original document and the cancellation     
    document in FI. If the new procedure does not work, the system uses the     
    old cancellation as a default, automatic clearing is not carried out.     
    In such cases, please clear the accounting document manually.     
    In your cases, I think the new cancellation procedure sometimes cannot     
    be performed somehow.     
    Here are some known reasons from SD side:     
    1. the cancellation is an item cancellation (see note 400000).     
    2. the billing document has one or more items relevant for revenue     
    recognition (field VBRP-RRREL not blank)     
    3. the billing document is a down payment request     
    4. the field RULE_NEW_CANCEL is set to 'A' (see note 339928).     
    If at least one these conditions occurs, the system performs the old     
    cancellation procedure (in this case it does not give message VF208 as     
    the new cancellation procedure will not be tried at all).     
    Besides, the note 309208 contains a list of other possible causes from     
    FI/CO side.     
    Please check the notes for detailed information, I hope they     
    may help you.     
    Hope it may help you.

  • No accounting document generated from SD

    Dear Friends,
    When I am creating Billing document from SD using VF01 tranacstion, I am getting error message that "Document 90000028 saved (no accounting document generated)", but I had activated all config between IS-U FI-CA and SD.
    I hope the billing document is getting generated, but it's not posting and creating the accounting document in FICA side.

    Hi ,
    There might be 2 reasons why the SD document doesnt post to FICA .
    1. Maintainence of relevant configuration under the node - SPRO - Financial accounting New - Contract accounting receivable and payable - Integration - Sales and distribution .
    Hope you have maintained all the relevant configs. under the node ( 3 in no's ) .
    2. Secondly if there is an error while determining the accounts for posting the billing documents , you can view the same through document details , where in you can view the documents that are being generated for the same .
    Kindly check the 2 areas and revert back if the problem still persists .
    Cheers ,
    Dewang

  • 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

  • Accounting Rule query from the Pricing/Billing tab in Service Contracts

    Running Oracle Apps. 11.5.10.2. I have the query listed below which returns both header and live level data for service contracts. I am trying to add the Accounting Rule from the Pricing/Billing tab within service contracts, but I am not having luck finding a suitable join. I have tried joining ra_customer_trx_lines_all to okc_k_lines_b using the following join from etrm rctla.contract_line_id(+) = oklb.cle_id, but it does not return any records for accounting_rule_id. Once I can get records to return for accounting_rule_id, I can pull in the rule name from ra_rules.
    SELECT OKHB.CONTRACT_NUMBER                                         CONTRACT_NUMBER,
           NVL(OKHB.CONTRACT_NUMBER_MODIFIER, '-')                      CONTRACT_NUMBER_MODIFIER,
           OKHB.STS_CODE                                                STATUS,
           OKHB.START_DATE                                              START_DATE,
           OKHB.END_DATE                                                END_DATE,
           to_date(oklbs.attribute1, 'YYYY/MM/DD HH24:MI:SS')           WARRANTY_START_DATE,
           to_date(oklbs.attribute2, 'YYYY/MM/DD HH24:MI:SS')           WARRANTY_END_DATE,
           rctta.name                                                   PRODUCT_GROUP,
                           rctla.accounting_rule_id,
           P.PARTY_NUMBER                                               PARTY_NUMBER,
           P.PARTY_NAME                                                 PARTY_NAME,
           to_char(oklb.line_number)||'.'||to_char(oklbs.line_number)   SUBLINE_NUMBER,
           to_char(okcis.number_of_items, '9,999,999,999')              QTY,
           msib.segment1                                                ITEM_NUMBER,
           msib.description                                                      DESCRIPTION,
           to_char(oklbs.price_unit, '9,999,999,990.99')                UNIT_PRICE,
           to_char(oklbs.price_negotiated, '9,999,999,990.99')          EXTENDED_PRICE
      FROM OKC_K_HEADERS_B      OKHB,
           OKC_K_PARTY_ROLES_B  OKPRB,
           HZ_PARTIES           P,
           HZ_PARTIES           HP,
           OKX_CUST_SITE_USES_V C_BILL_TO,
           OKX_CUST_SITE_USES_V C_SHIP_TO,
           OKC_CONTACTS OC,
           OKC_CONTACTS OCS,
           OKX_RESOURCES_V ORV,
           OKC_K_LINES_B oklb,
           MTL_SYSTEM_ITEMS_B MSIB,
           OKC_K_ITEMS OKCI,
           OKC_K_ITEMS OKCIS,
           OKC_K_LINES_B OKLBS,
           OKX_SALESREPS_V OSV,
           RA_CUST_TRX_TYPES_ALL RCTTA,
                    ra_customer_trx_lines_all rctla
    WHERE OKHB.ID = OKPRB.CHR_ID
        AND OKPRB.JTOT_OBJECT1_CODE = 'OKX_PARTY'
        AND OKPRB.OBJECT1_ID1 = P.PARTY_ID
        AND C_SHIP_TO.PARTY_ID = HP.PARTY_ID
        AND OKHB.ID = OC.dnz_chr_id(+)
        AND okhb.id = ocs.dnz_chr_id(+)
        AND oc.jtot_object1_code (+) = 'OKX_RESOURCE'
        AND oc.OBJECT1_ID1 = orv.ID1(+)
        AND ocs.jtot_object1_code = 'OKX_SALEPERS'
        AND ocs.object1_id1 = osv.id1
        AND C_BILL_TO.SITE_USE_CODE(+) = 'BILL_TO'
        AND OKHB.SHIP_TO_SITE_USE_ID = C_SHIP_TO.ID1(+)
        AND OKHB.BILL_TO_SITE_USE_ID = C_BILL_TO.ID1(+)
        AND C_SHIP_TO.SITE_USE_CODE(+) = 'SHIP_TO'
        AND okhb.id = oklb.chr_id
        AND msib.inventory_item_id = okci.object1_id1
        AND msib.organization_id = 3
        AND okcis.cle_id           = oklbs.id
        AND okci.cle_id           = oklb.id
        AND oklbs.lse_id     <> '2'
        and oklbs.cle_id     = oklb.id
        AND rctta.cust_trx_type_id(+) = oklbs.attribute8
                 and rctla.contract_line_id(+) = oklb.cle_id

    Sorry for the late reply, but this solution worked great.
    and OKS_K_HEADERS_B.ACCT_RULE_ID = RA_RULES.RULE_ID
    and OKC_K_HEADERS_B.ID = OKS_K_HEADERS_B.CHR_ID

  • No accounting document generated despite value in Billing document

    An accounting document is not required for this billing document
    Message no. VF076
    Diagnosis
    The billing document has the net value '0' and does not create an accounting document. Despite this, the posting status 'C' (Posting document has been created) is set internally for this billing document.

    Go through Note 77419 - VF076 for billing docs. w. net value unequal zero
    thanks
    G. Lakshmipathi

  • Accounting document not created for the  billing document in CIN

    Hi Experts,
    I have made conditon records for BED, CESS, Edu Cess and VAT. I hve defined the accounts in both excise transactions and VKOA Settings even then the accounting document is not getting created. I am getting the following error.
    No account is specified in item 0000001003
    Message no. F5670
    Help to solve the above
    Thanks in Advance

    Open the document in VF02 / VF03, go to Environment -> Acct. Determination Analysis -> Revenue Accounts.  (You can also press CtrlShiftF12).  There check for the item no. 1003.  You'll find no account has been determined for this item through any procedure. 
    In the right pane, it will also give other details like CoA, Sales Org etc (as per your access sequence) which it tried to find the account for.  Assign an account for that combination in VKOA and then try to release the doc for accounting.  It should work if you have assigned correctly.
    Ravi.

  • Accounting Document number from Purchasing Document Number

    Hi Gurus,
    My Requirement is that i have a Purchasing Document number (EBELN) and i need Accounting Document Number( BELNR_D)  so that i can get the Amount in Document Currency (WRBTR) for that document .

    Hi,
    Check table EKBE.

  • Accounting Document not updated after Vf01(billing)

    Hi Gurus,
    After creating invoice in vf01 when i m looking at accounting document, then my value is updated but the quantity is not updated in fb02.
    when i see table BSEG then the value of MENGE is not updated there.
    It is always coming ZERO.
    Thanks in advance

    Hi
    Please check whether FI doculments summarisation is active for this field under procedure VBRK.
    Regards

  • Accounting document created but the reference billing doc does not exist

    Hi All,
    We run a custom to program that generate a list accounting docs for clearing.
    Now our problem is that the reference billing doc of the accounting docs does not exist.
    It wasn't also archived.
    The accountings docs are very recent so it is really impossible that it was deleted from the system.
    We suspect that the accounting doc was created into the database while the billing doc wasn't.
    Plus the issue is intermittent.
    Please advise how we could fix this issue.
    Any suggestion will really be appreciated.
    Tnx.

    Hi Prashant,
    It sounds strange that same inspection lot has been made UD twice. Possibly he might have done for different Inspection Lots. While checking tables if you are querying by Inspection lot, do not do that.
    Another thing to understand is when UD made successfully for 105 Qty, why this is not appearing in UnRestricted stock. Some communication gap is there.
    As a last resort, you may need to cancel the UD by using program RQEVAC50  through SE38. And cancel the documents through MBST
    Jogeswara Rao K

Maybe you are looking for