Link between Material Document number & Accounting document number

Hi All,
For material document there is a corresponding accounting document number generated.However this is not the rule in all cases.
Where is the link between the two(Material Document & Accounting Document) ?
In other words i want to list those material documents only, for which accounting documents are generated.
Regards
Piyush Kothari

STEP 1
SAP query way to extract your information.
Create an infoset SQ02 with a single table MKPF. (include key fields in the field group)
Step 2
From Extras
Create an additional field called zawkey (like bkpf-belnr) which will concatenate the MM document number MKPF-MBLNR and MKPF_MJAHR. The sequencing shall be number 1.
You may use this code below and paste also (this needs authorization as well)
data: zzawkey like bkpf-awkey.
clear: zawkey, zzawkey.
concatenate mkpf-mblnr mkpf-mjahr into zzawkey.
zawkey = zzawkey.
Add another field called ACCDOCNO (accounting documnet number) with sequencing number 2 with following code.
data: zaccdocno like bkpf-belnr..
clear: zaccdocno, accdocno.
select belnr from bkpf into zaccdocno where
  bukrs = ccode and
  GJAHR = MKPF-MJAHR and
  awkey = zawkey.
endselect.
accdocno = zaccdocno.
Step 3
Include the additional fields  into the field group.
Step 4
Click on the selection tab and create a parameter called ccode with a description Company Code and  against
LIKE    BKPF-BUKRS 
Extras  OBLIGATORY 
Step 5
Click on the selection tab and create a seelction criteria pdate with a description Posting Date for the field MKPF-BUDAT
Extras  OBLIGATORY 
Step 6
Save, Generate and assign the infoset to a user group.
Step 6
Create a SQ01 query under the usergroup with all the fields in the infoset. and Execute. Enter a company code and one date of a working day where you expect material transactions.
The result will be all the material documents and their corresponding accounting documents, if available. If you want to see only those material document that do not have corrsponding accounting documnet, then while you are in the selection screen say accounting document number is not equal to blank.

Similar Messages

  • Sync of Material document and accounting document during MIGO

    Hi Friends,
    Can we synchronize the Document numbers between Material document (WE) for GR (101) and Accounting documents created for the MIGO transaction????
    We have 50 is assigned to WE. But, we have a gap in numbers of Material document number and Accounting document numbers??? though the document type WE is common for both.
    I have seen that "Buffer" is the culprit. But, not sure how to fix that.
    Appreciate your help in this regard.
    Dev.

    When the document type is same (WE) for both, how come the accounting doc has continuous numbers and Material doc has breaks ( from buffer)????
    document type WE is same for GR for material document and accounting docu but number range are stored diffrentely.
    OMBT is where u store the number range for material document
    and this number range is assigned to group of materia doc we wf wo ww
    OMBA is where u create diffrent number range for accounting document hear U assign WE to ur transaction code and in turn WE is assigned a number range what is created in OMBA, this number range is nothing to do with number range u have created in OMBT.
    when ever u post the docunemt in system
    SAp hav efixed the document type for GR that is WE
    it goes in OMBA in the group of Material documents for goods receipts
    check what is the year and number range assigned and current number so it assignes this number first
    than it go to OMBA  cheks what is the Tcode u are using and what is document type u have assigned to that tcode and it can be any WE or what ever u have assigned to that tcode
    taking that doc type it goes and see what Number range is assigned say 50 and then checks company code and year for this 50 and get the number for accounting doc
    so i think its is clear that material and account are 2 diffrent ranges
    skiping of numbers might be due to buffer
    also go throught following post it will be helpfull
    GR NO SEQUENCE - MISMATCH
    hope this helps

  • Link between outbound delivery and matriel documents of good receip

    HI,
    in which table we can find the link between outbound delivery and matriel documents of good receipt.
    thanks

    Hi!,
    If you have posted a goods receipt for an outbound delivery, you should find in the header table MKPF for the material document the field MKPF-XBLNR completed with the outbound delivery number.
    Then, if the document flow for the delivery has been updated correctly, in the table VBFA for the delivery (VBFA-VBELV), you should find the material document under VBFA-VBELN.
    I hope this helps you!
    Best regards,
    Esther.

  • Linking between Activity network with Billing Document

    Hi Gurus,
        I have a requirement that I need to link between Activity, network with Billing Document number. By standard we can link only WBS-Element and Billing Document Number. How can I link between Activity, Network with Billing Doc. I want to develope a report for this.
    Kindly help me regarding this. I need some clue regarding this.
    Thanks,
    Ravi

    revenue can only be posed to WBS
    networks are meant for cost capture and scheduling
    so as per std sap what you want is not possible

  • Material Document against Accounting Document Report

    Dear All ,
    Where can i get the Material documnet against Accounting Document
    Any Tcode is there, pl help me
    Regards,
    KSP

    Hi:
             Please put material document number in MB51 header data...input material document ..once report is executed please double click the document ...In new screen you will find FI document ..This will show you acc document..FB03 display of accounting document..in menu...environment...document environment...original document.  this will also show you the material document.
    Regards

  • Link between Material group and GL account

    Hi Friends ,
    Need your help in the following issue
    Where is the link between Material group and GL account. i.e. If material group is selected in PO then the GL account for the material should get picked up automatically in PO (for account assigned POs) ?
    What I know is
    1. In Account assignment category configuration we need to assign the value "VBR" in  Account Modification field.
    2. In Material group configuration we need to assign the vluation class for material group
    3. In Account determination(OBYC) for GBB transcation type for the combination of  general modifier "VBR" & Valuation class we need to assign the GL account .
    When PO is created with respective account assignment category the GL account is picked from the above setting.
    My question is ,  "Is there any other setting apart from the above which will decide the GL account in PO fro account assigned POs"?
    Thanks
    Deva

    Hi,
    From IMG> Material Management> Purchasing> Material Master> Entry Aids for Items Without a Material Master,
    With it you can define the G/L account assignment according to the relationship between material group and valuation class, from my point of view, you had better define some valuation class for non-produciton parts in advance.
    Good luck
    Tao

  • VF02 error in Release Billing document to Accounting document

    Hello SAP Folks,
    A sales order (VA01) and corresponding billing document has been posted (in VF01). When I try to release the billing document to Accounting, an error "Incorrect document no. XXXXXXXX.  Select the document number between yyyyyyyyy and zzzzzzzzzzzzzz " shows up. When I tried to find error through VFX3, it says, Release incomplete due to "FI/CO interface" Can anyone suggest the missing configuration.
    PS:  I checked the doc. type RV (Billing doc. transfer) and Billing type F2. They are in different number ranges. and RV is marked external. The number range settings are similar as that of another Company code (where we are able to release billing document to accounting document).
    Thanks in advance,
    Narayanan

    Hi,
    Thanks for your suggestions. The issue is resolved by changing the number range for RV document type (though it is still external). I guess this is made external since the Billing document number is passed to FI document number when it is released to Accounting documet.
    After the release, both Invoice and Accounting document have the same no.

  • Billing Document _ Accounting Document not created

    Dear SD Experts,
    While creating billing document, the accounting document was not created.  So, the debit entry in customer account was not made. But the Excise Invoice was created with reference to this billing document. Modvat was also utilized. The reason for not creating the Account document is error in VKOA. Now G/L account is assigned. When I tried to Release the accounting document in VF02, it not responding.   Pl let me know how to correct this.
    -K.Bharathi-

    Dear Bharathi
    If your concern is only about maintaining same number range, then it is quite possible.  You cancel the excise invoice in J1IH and b4 recreating the excise invoice, go to SNUM, input the object type and execute.  There you can see the last number of excise invoice generated.  There you have to maintain one number less from the number which you had cancelled above.
    Now create excise invoice so that the same number range will flow.  On the other hand, if you have any problem leading to FI implications, then you have to explain clearly.
    thanks
    G. Lakshmipathi

  • Link between Material code, Customer & Certificate Profile (Quality)

    Hi All
    I develop one smart form for quality certificate.
    But I am not able to find out the link between Material, Customer & Certificate profile.
    In which table these all data are storing.
    On the basis of above condition MIC will print on Quality certificate.
    Regards
    ARK

    It should be posted in QM forum, isn't it?  Anyway, try this.
    First you get the profile schema in table T683 (configuration of profile schema in Quality Management -> Quality certificates -> Certification Profile -> Profile determination -> Define schema for profile determination).  Standard one is QC0001.
    Then you use function call V61I_CERT_PROFILE_FINDING with parameter (standard routine for finding certificate profile.  Unless you have the user exit, this routine should work):
    I_APPLICATION = QC
    I_DATE = current date or whatever date (i.e., delivery date in outbound delivery)
    I_DIALOG = leave blank
    I_HEADER_COMMUNICATION => here you can put in your customer, material, plant ; depend on your access sequence
    I_SCHEME = value from table T683
    You will get the output in table E_KONDI which give you data of condition rec. no, certification type, profile and version.
    Then you can use certification type, profile and version to select the characteristics from QCVM.
    Hope it helps.

  • How to get Invoice Document from Accounting Document

    Hi Experts,
    How to get Invoice Document from Accounting Document. Can you suggest some tables.
    Regards,
    Mohan

    hi,
    in vf02 or vf03.
    go to document flow
    select an accounting document - double click it.
    GOTO header you will find reference field there & it is nothing but billing document.
    in FB03 also you can findout the same if you know an accounting document.
    tables which they store are BKPF & BSEG
    balajia

  • Link between billing document and accounting document number

    Hi Frnds,
    When i receive a partial receipt (of an invoice) from a customer using f-28, i am getting the link between invoice number and accounting document number from a table (BSEG), but when i am receiving the final settlement amount from the customer, i m not getting the link between the inv. no. and accounting document number. Can anyone tell me how can i get the same?
    I have tried table BSAD and BSID.

    Hi,
    I will give you two options.
    1)Goto FBL5n.Enter your customer number and company code.Select All items.
    Execute.
    Search for your billing document number using CTRL+F.Select that line.Click on display.
    Here you will find the reference number and clearing document number also.
    2)Goto VF02.
    Enter your billing document number.Enter.
    Press Shift+F4 or the path is:goto-->Accounting document.
    You will get the accounting document number here.
    3)Goto FB03.Key in the document number.Enter.
    Regards,
    Krishna.

  • Table containing link between material document and serial number.

    Hello.
    In connection with a goods receipt for purchase order in transaction MIGO a material that is serial number controlled is being recevied. The transaction allows the user to seach and use a serial number. The user then posts the goods receipt for the purchase order and a material document is created (entry in table MSEG).
    With this entry in MSEG as a starting point, I have to find the serial number that the user selected when posting the goods receipt. I have been looking in thse tables EKPO, RESB, RSDBS, AFPO, EBAN, RKPF, MSEG and MKPF, but none of them has the serial number used. Would anyone be of assistance.
    Thank you very much.

    Hi,
    2 options:
    1. Use tables: MSEG, SER03, OBJK.
    Links:
    - MSEG & SER03 to read the object number
    MSEG-MBLNR = SER03-MBLNR + MSEG-MJAHR = SER03-MJAHR + MSEG-ZEILE = SER03-ZEILE
    - SER03 & OBJK to read the serial number
    Read OBKNR from SER03 with the above link & pass the same to OBJK table here you can get the serial number (OBJK-SERNR)
    2. Use FM - GET_SERNOS_OF_DOCUMENT
    Regards,
    Vivek

  • Miro (invoiced document number & account documber number)

    dear mm experts,
    while doing miro, some users are getting
    invoiced document number along with account document number, pl let us why all not getting the same output after doing miro.
    pl let us know is there any user settings to be done or any integration between mm-fico.
    pl help
    thanks in advance
    srihari

    hi,
    FI-MM Integration
    Process Flow in MM
    Step 1 Generating purchase requisition( PP-MM involved)
    Step 2 Making inquiries (MM)
    Step 3 Raising purchase order (MM)
    Step 4 Release of purchase order ( MM)
    Step 5 Goods received from vendor ( MM and FI )
    Entry will be
    Raw Material Inventory a/c Dr.
    GR/IR clearing a/c Cr.
    Step 6 Invoice verification and quality assurance (FI and MM)
    Entry will be
    GR/IR clearing a/c Dr
    Vendor a/c Cr
    Step 7 Goods issued for consumption(MM, FI and PP)
    Entry will be
    Raw material consumption a/c Dr
    Raw material inventory account Cr
    Step 8 Production receipt( FI, MM & PP)
    Entry will be
    Finished goods inventory a/c Dr
    Change in stock Cr
    Step 9 Finished goods delivered to customer(MM, SD & FI)
    Entry will be
    Change in stock Dr
    Finished goods inventory a/c Cr
    Step 10 Raising invoice on customers( SD & FI)
    Customers a/c Dr
    Sales a/c Cr
    Step 11 Receipt of payment from customers( Same as SD-FI integration)
    CUSTOMIZATION STEPS
    Main screen of FI-MM integration is OBYC
    Here we have to link the MM movement types to FI G/L accounts
    Assign Following G/L accounts to movement type according to valuation class.
    BSX- Raw material Inventory account
    GBB- Raw material consumption account
    WRX- GR/IR clearing account
    thanks & Regards
    Swathi

  • How to pull the Sale order number(sales document) to Accounting document

    Hi Gurus,
    How to pull the sale order number to the accounting document.
    Is any configuration needed to this.
    When i run the FBL5N Repoprt ,Sale order number (Sales document) is not getting updated to accounting document.It is diplaying as blank field.
    Thanks you.

    Hi Shivaji,
    In order to display the Sales document in the customer line item report, you need to add it as a special field thorugh customizing settings.
    Path - SPRO - FA-GL Accounting - GL Accounts - Line Items - Define special fields for finding and sorting data and in that select the table BSEG-and field VBEL2 (Sales document) and save/
    This will work. hope this helsp
    regards,
    radhika

  • Doc.Number & Accounting Document number

    Dear All.
    In FBCJ, there is a column called "Doc.Number" & its technical info is "table name : ISCJ_E_POSTINGS" , "field name :D_POSTING_NUMB".
    This is the number which gets printed on the cash receipt.
    Now we need a report showing this doc.number as well as the accounting document number.
    Please advise.
    Thanks
    sunil.

    Hi, Did not fulfil the requirement, thanks for the suggestion, please advise any other option.

Maybe you are looking for