Invoice number vs PO document number

Hi Experts,
Can any one explain me how to join the Invoice account number,PO document number and  dates of PO and invoice generated dates?
I want to merge all these fields in one single table. So need some joining condition to merge all these fields.
Thank you,
Vinay 

Hi,
   If you want all these data in a single table, you may define user defined LIS info structure as explained in the doc: How to Create an LIS info structure - Purchasing - Part 1 and then update the historical data to the table as explained in the doc: Update History Data to user defined LIS (Purchasing)
   If you just want to track the data, you may link the tables: EKPO, EKBE, RBKP, RSEG, BKPF and BSEG. You may pass the PO number & item to RSEG table and get the invoice number. Pass the invoice number with year to BKPF - AWKEY field and get the accounting document number. Pass the accounting doc number to BSEG table to get the item details.
Regards,
AKPT

Similar Messages

  • Link between invoice number and accounting document number

    Hi Frnds,
    When i receive a partial receipt (of an invoice) from a customer, 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?

    hi
    try these tcodes
    FBL5N
    FB02
    regards

  • Link between inv. number and accounting document number

    Hi Frnds,
    When i receive  a partial receipt (of an invoice) from a customer, 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?

    Hello,
    Try to prepare query based on tables BSIK, BSAK and BSEG. (Transaction code SQVI)
    Regards,
    Ravi

  • Relation accounting document number and clearing document number

    Hi everyone,
    What is the relation between accounting document number and clearing document number.

    For every accounting document when it is posted it should be available in BKPF Doc header table.. Once that document is closed or cleared..there is any entry made to BSAK for Vendors (Cleared Items) or BSAD for Customers (Cleared Items).
    Eg: When a invoice is generated for a PO it gets created and is still not cleared or is not closed , it makes an entry in BSIK. Once it is closed it is available in BSAK.
    Same is the case with Sales order..

  • MM06E003 Number range and document number

    hi
    Is the functionality of MM06E003 Number range and document number( user exit ) is same in ECC 6.0  and ECC 5.0
    Regards,
    vijay

    Hello,
    Yes, it is one and the same thing.
    Thanks!

  • MM Document number and FI document number is a single table

    Dear Friends,
    Could you please let me know the table where both MM document number and FI document number will be available. I checked in BKPF and it is only updating FI document number and not MM document number and in MKPF it is only updating MM doc number and not FI document number.
    Also let me know if there is any report/tcode/program available to view this at one place itself.
    Regards,
    Dwarak.

    hi
    i dont think you can view both table in one screen.
    in T-CODE:SE16N you can see one by one table.
    Regards
    ramana

  • 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 find the invoice number from accounting document number?

    Hi
    I am using the bapi BAPI_AP_ACC_GETSTATEMENT and trying to get the invoice numbers of all the payments.
    but i am unable to find the link between the accounting document number from the bapi and the vendor invoice number.
    i have tried the tables BSE_CLR, BSEG and BKPF. the field AWKEY in BKPF has the combination of BELNR & BUKRS & GJAHR when the document type is anything other than RE.
    How can i get the invoice numbers from the accounting doc. numbers?
    Regards
    Sujai

    I am unable to find the link between BKPF-BELNR and RBKP-BELNR from the bapi return values.
    XBLNR is blank when i check the table.
    the output of the bapi is something like this                                                                               
    COMP VENDOR   CLEAR_DATE CLR_DOC_NO ALLOC_NMBR   FISC   DOC_NO     ITE
                                                                                    1000    1100 ........ .........................................  20020123           2002 1900000202   002
    1000    1100 ........ .........................................20020123           2002 1900000203   002
    1000    1100........ .........................................20020123           2002 1900000204   002
    1000    1100........ .........................................20020123           2002 1900000205   002
    now i try passing the doc_no (1900000XXX) and the fiscal year (2002) and company code to BKPF
    the XBLNR field is blank. This document number sequence doesn't seem to be the accounting document number of the invoice coz that starts with 51XXXXXXXXX.
    If i try passing the number with sequence 51XXX... to BKPF i get the invoice number there in the AWKEY field.
    I am not sure what this sequence (19___) represents.
    Sujai
    Edited by: Sujai S on Nov 5, 2008 7:22 PM
    Edited by: Sujai S on Nov 5, 2008 7:22 PM

  • Link between Invoice verifycation number and Accounting Document number

    Dear All
                   I want the Link between invoice verifycation number (MIRO) an accounting document number the same MIRO. in which table the both two numbers avilable.
    How can identify. can any one tell me the table name for this
    Regards
    Kumar.

    Hi..
    What is the link or join condition for these two tables
    BKPF and RBKP. and RSEG and BSEG.
    In this i want to Accounting document number and invoice verifycation number in a single report.
    Regards
    Kumar

  • Shipment document number and cost document number for vendor invoice

    Hi,
    Given a Vendor invoice number ( MIRO) how to find out the shipment number and cost docuemnt number?
    Regards,
    Krishna prasad.

    Hi,
    Please try using SREL_GET_NEXT_RELATIONS. Please try to search on SDN and you should find an example fo this. The only thing you need to pass is the Business Object Name for Vendor Invoice number. Or if you have an alternal field like even PO that you can pass , that will be of great help as well.
    You may want to take a look at:
    SREL_DISPLAY_LIST_OF_NEIGHBORS
    SREL_GET_NEXT_RELATIONS
    Pls reward points if useful.
    Thanks
    Ganesh.S

  • Display of FI document numbe and material document number

    Hi,
    I want to display both the material document number ( RBKP ) and the acccounting document number ( BSET ) together while posting the Invoice using MIRO transaction.
    Pl provide with your valuable suggestions.
    Regards,
    R. Dillibabu.

    Hi Arif,
    We wanted to generate a number during invoice verification based upon the order type of the PO, As you know it is not possible to generate a order specific material document number but it is possible to generate a order specific accounting document number provided we can select RE or ZE while processing invoice verification.
    This accounting document number will be considered as a claim number for one of the customized business process ( Warranty Claim process ).
    The user has to record the claim number on a daily basis. Currently it is being done by passig the RBKP-BELNR to the BKPF to get the accounting document number ( BELNR ) which is quite tedious.
    Hope the business functionality is quite clear now.
    Regards,
    R. Dillibabu.

  • Material Document Number and FI document Number.

    Hi All,
    I am facing problem when I get FI document number that had appeared in BSEG table. Posting Key of 70 appeared in the table, but what is transparent table of Posting key 70's entries. I am getting DR and CR. amount from BSIS, BSAS and BSIK and BSAK tables. but these table have not 70's posting key. During the coding I have to relate BSEG table with other table. That is why I am asking for 70's posting key table which generated from miro.
    Regards,
    Syed Tayab Shah

    Hi Arif,
    We wanted to generate a number during invoice verification based upon the order type of the PO, As you know it is not possible to generate a order specific material document number but it is possible to generate a order specific accounting document number provided we can select RE or ZE while processing invoice verification.
    This accounting document number will be considered as a claim number for one of the customized business process ( Warranty Claim process ).
    The user has to record the claim number on a daily basis. Currently it is being done by passig the RBKP-BELNR to the BKPF to get the accounting document number ( BELNR ) which is quite tedious.
    Hope the business functionality is quite clear now.
    Regards,
    R. Dillibabu.

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

  • Check number on payment document number

    Hi,
    I made vendor payment through F-53. Document number generate: 1700000043 & 1700000044
    Now i printed check through FBZ5 and drew a manual check through FCH5 for each document mentioned above.
    Now i went to FB03 and view the above two documents. But i am unable to see the check number in 'assignment field' in payment document neither in print preview nor in entry view.
    Let me know in which field i can see check number in payment document. Also let me know if i want to do any change in layout of document or will it be developement ?

    HI Deepak,
    When you issue a check manually, then you have to update the check manually in the SAP System.
    Goto FCH5, give your clearing document number and then give the check number.
    Now the payment is lindked to a check in the SAP System.
    Now if you goto FB03 and display the clearing document,  From the menu select Environment==>Check Information, now you will be able to see the check number and other details.
    Hope this helps you....
    Regards,
    Sreekanth....

Maybe you are looking for

  • Is there a way to stop a deactivated iPhone from constantly looking for service (other than Airplane Mode)?

    I have an iPhone 4S that has been deactivated for another phone.  It's been acting as an extra iPod Touch for me, but after restarting it this morning, I am no longer connected to the cell towers from my old service.  Now I am getting a constant cycl

  • When is EXIT_SAPLMEREQ_002 triggered?

    Hi all xperts, I've seen on [this page|http://sapass.metro.client.jp/UserExit/MEREQ001.htm] many interesting userexits that in my system (46C) can't get to trigger. One of these is EXIT_SAPLMEREQ_002. I've seen that the INCLUDE contained, ZXM02U02, i

  • Datasource migration from 3.5 to 7

    Hi Expert, BI 7 was installed in the environment with datasource 3.5 actviated in source system. I am not sure do I need to migrate datasources from 3.5 to 7.0? Can experts please share with me on what are the features available in datasource 7.0? Wi

  • Re: Error Starting In Integrated WLS 11.1.1.3

    I was creating a pick list while some internal IDE Level appeared. I ignored & was doing my job but it started continuously to appear. I thought this as IntegratedWLS domain problem & removed the instance from local directory. But again Integrated WL

  • How to Delete Process Chain?

    How to Delete Process Chain?