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

Similar Messages

  • How to find the message_ID/Reference_ID from a IDOC number

    hi
    can some one tell me how to find the message_ID/Reference_ID from a IDOC number
    regards
    Buddhike

    hi,
    check the t.code IDX5 .
    also check the below link for reference
    Monitoring the IDOC Adapter in XI/PI using IDX5                         
    Monitoring the IDOC Adapter in XI/PI using IDX5                         
    regards
    kummari
    Edited by: kummari on Jul 28, 2008 9:20 AM

  • How to find the Purchase Orders from Sales Order number

    Hi ...
    Is there a way to write a query to find the Purchase orders
    from the Sales Order number ....
    I have notice the table POR9 (Purchase Order - base Document)
    but it seems to be empty.
    Could you please help me to figure this out,
    Thank you very much
    Kind Regards
    Sanjaya

    hi,
                 u did mistake in selecting the table
    SELECT T0.DocNum FROM ORDR T0                 for  sales order
    SELECT T0.DocNum FROM OPOR T0                 for purchase order
    how to find the table in SAP B1.
    go to above menu view => system information. tick it(or select it)
    then below status bar u can see the table and field name.
    open the required form and just keep the  mouse cursor  on any field.
    you can see the table and field name below.
    hope now u can able to track the table name.
    regards
    sandip

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

    how to find the invoice status in ap

    Hi,
    Please elaborate your question, what Invoice are your referring? AR, AP...
    Invoice status can be found from both Front end application or from the backend using SQL query. Also provide your enviornment details to better assist you.
    Thanks &
    Best Regards,

  • How to find the data loaded from r/3 to bw

    hi
    how to find the data loaded from r/3 to bw is correct . i am not able to find which feild in the query is connected to which feild in the r/3 . where i am geting the data from r/3 . is there any process to find which feild  and table the data is comming from . plz help
    thanks in advance to u all

    Hi Veda ... the mapping between R/3 fields and BW InfoObjects should take place in Transfer Rules. Other transformation could take place in Update Rule.
    So you could proceed this way: look at InfoProvider Data Model and see if the Query does perform any calculation (even with Virtual keyfigures / chars). Than go back to Update Rules and search for other calculation / transformation. At least there are Tranfer Rule and eventually DataSource / Extraction Enhancements.
    As you can easily get there are many points where you have to look for ... it's a quite complex work but very usefull.
    Once you will have identified all mappings / transfromation see if BW data matchs R/3 (considering calculations ...)
    Good job
    GFV

  • How to find the form name  from VA02 T.code

    how to find the form name  from VA02 T.code

    Hi Rajyam,
    I guess you are looking out for the formname which prints sales related documents.
    If this is what you want,then go to the T-code NACE and select the option K1Sales activities and click on the Output Types button on the top.The new window has all the types of Output types listed.Select the most appropriate and double click on the Processing routines button in the left side screen.
    The new window lists the program names and the forms associated with that output type.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

  • May i ask how to find the history website from safari in the new Mavericks?

    may i ask how to find the history website from safari in the new Mavericks?

    Choose Show All History from the History menu.
    (93509)

  • How to find the dsn name from an *.rpd file provided?

    How to find the dsn name from an *.rpd file provided? All the ODBC details which would require to run your dashboard.

    Hi
    DSN name is not a part of .rpd file. So There is no information about DSN name in .rpd file.
    Thanks
    Siddhartha P

  • How to find the Invoice available for Purchase orders

    Hi friends,
    How to find the Invoice available for PO. Please give me the tcodes also.
    Is one PO can have multiple Invoice, then what is the relation between those PO and Invoices.
    Thanks,
    Veerendra.

    Hi,
    Goto ME23N and in the line item choose the PO History tab..
      There you can check if there is any invoice created for that PO..
      Yes one PO can have multiple invoices...
      Check the table RSEG where it has references to a PO and PO line items..
    THanks,
    Naren

  • How to find the group ids from which the mail has been sent

    Hi,
    We are able to see the list of mails have been sent to respective mail ids with the help of tcode SOST.
    Is there any way to find through which group ids the mails have been sent.
    Tehe details showing as the mail has been sent by Batchusr.
    Please suggest how to find the group id from where the the mails have been triggered.
    Regards,
    Jena.

    Hi
    This is not helpfull
    If you open any notification QM03, there you will get tab " Action Log"
    If you click on action log , there are two fileds
    Date and time for task release
    I want to fetch these fileds in one of Z report.
    I am unable to find table name for these two fileds
    Task release Date
    Task release Time
    Can we add 'QN CHANGE DATE' parameter in the selection screen (just like QN creation date) w/ range?  The user want to run the report by QN change date as well.

  • How to find the CPU utilization from the portal front end

    HI Guys,
      I want to find the CPU utilization from the portal front end browser screen.Can you please let me know how to find this and also the path to find it.
    And how to find the CPU utilization from the server.What is the command to find the CPU utilization at unix level.
    Regards,
    Krishnam.

    hi you can create transient field in view object indicate to visibility of row (boolean ) and create view criteria that show only rows that are able to be visible according to transient attribute and at the update process set the attribute to true inside entityImpl class

  • How to find the extra spaces from personal computer?

    I cannot update Adobe new items since the box window told me that there were no spaces from my computer. Who can teach me how to find the extra spaces from my computer? Besides, there are 1/3 spaces for IOS, 1/3 spaces for virtual computer and 1/3 spaces for Adobe in my computer. No any photos and movies  in my computer now.

    I do not understand the question... what do you mean by spaces?
    What size is your hard drive, and what does your system tell you about unused hard drive space?

  • 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

Maybe you are looking for

  • Photoshop CS3 opening files painfully slow on a Mac

    We're having an issue here at work where Photoshop CS3 is very slow in opening files of any size on our Macs. We're running 10.5.8 on 2x2.66 GHz Dual-Core Intel Xeon MacPros with 3 of them having 8 gigs of ram and my machine running 12 gigs. I've tri

  • Making a button go to a specific frame

    I'm having trouble with this.  I'm just practicing for the moment and not expert in flash code at all.  I have a button on frame #1.  On that frame, I used the following code I found on the web (which I tried using both AS2 and AS3): stop(); function

  • White screen after Apple charging screen, only loads OS X in Safe Boot

    Well, since yesterday, I have been annoyed because of a problem that my iMac has: On booting up the Mac, it does the chime and appears the Apple logo and its loading bar, and begins loading. Everything's ok, isn't it? Well, problem is about to happen

  • I NEED HELP BAD

    ok..i had a account on my laptop..but it got takein off..so i never pluged my ipod back in my laptop..well than i did..and i read the ipod name and stuff..but not the songs..i can only update it with new songs..,but how do i take whats on my ipod and

  • Part Payments Question

    Hi Experts, Scenario: I enter an invoice in January for £1000 and receive a part payment of £400 in February If I enter an incoing payment for £400 and match the payment against the invoice, the invoice is marked as fully paid and a payment on accoun