How to get MM Invoice number from FI Accounting document number

Hi,
I am writing a query (OPEN ITEMS FOR ACCOUNT PAYABLE)through SQVI. We need to display MM Invoice number from FI Accounting document number . Please let me know the table name from where I can join FI document number and can retreive MM Invoice number.
Thanks
Rama

hi,
use this.
  SELECT belnr
           awkey
           INTO TABLE it_bkpf
           FROM bkpf
           FOR ALL ENTRIES IN it_mkpf
           WHERE awkey = it_mkpf-awkey.

Similar Messages

  • 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

  • How to get connected to OIPM from Oracle WebCenter Document Capture

    Hi,
    How we get connected from Oracle WebCenter Document Capture(ODC) to Oracle WebCenter Cintent:Imaging (OIPM). OIPM is 11g and ODC is 10g. Pls suggest any doc or link.
    Thanks and Warm Regards,
    RR.

    Reading your previous question once again, now I think you have actually asked a simpler question than I answered to. Is it that you just need to anyhow send data from ODC to IPM?
    If so, it is a standard functionality of ODC, called Commit Profile. I have never worked with IPM, but there is one to UCM and it works the way that you use administrator's login (such as sysadmin in 10g or weblogic in 11g) for authentication and then you map ODC user to a metadata field (in UCM there is a mandatory field called dDocAuthor and there should be value of an existing user; but you can you the administrator here as well, if ODC user info is not important for you). I believe IPM will behave similar.
    What you have to check, whether commit profiles are available for IPM 11g, but I believe they are.
    As for the documentation, the link I mentioned before contains both installation and configuration manual, so you should find all the info there.

  • Obtaining Material number from the CRM Document number

    Hi Gurus
    From which table can I get the material number if I know the CRM document number. Which are the tables that need to be linked to get this information?
    thank you very much

    Hi,
    Using doc number you can access CRMD_ORDERADM_H-OBJECT_ID = DOCNUM.
    CRMD_ORDERADM_I-HEADER = CRMD_ORDERADM_H--GUID.
    The material is in CRMD_ORDERADM_I.
    Hope this helps.
    Best regards,
    Caíque Escaler

  • 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

  • Retrieving Accounting Document number based on PO numbers

    Hey All,
            I have a list of PO numbers(EBELN) for which I am trying to get all Accounting information from BSIS. But before going to BSIS I am trying to determine the Accounting document number(BELNR) from some other table so that my select on BSIS will be efficient.
    What I have tried uptill now is to go to EKBE with the PO numbers and get the Material document numbers. For some cases the material document number is the accounting document number and for others I have to go to BKPF with this material document number to get the accounting document number.
    Is there any other easier and efficeint way of doing this?
    Any input is highly appreciated.
    Thanks

    I am retrieving Large amounts of data, around 1.5 million from BSIS.
    The code related to our discussion looks like this:
    "First I get all related PO's for the last three years and determine the no of packets.
    DO v_no_of_packets TIMES.
          IF v_end_indx GT v_total.
            v_end_indx = v_total.
          ENDIF.
          REFRESH i_ebeln_range[].
          APPEND LINES OF t_ebeln_range FROM v_start_indx TO v_end_indx TO i_ebeln_range.
          v_start_indx = v_end_indx + 1.
          v_end_indx   = v_end_indx + p_pkjsiz.
    IF NOT i_ebeln[] IS INITIAL.
      CLEAR l_bkpf.
      REFRESH l_bkpf[].
      SELECT ebeln ebelp zekkn vgabe gjahr belnr buzei FROM EKBE INTO TABLE t_belnr
                         WHERE ebeln IN i_ebeln_range
                          AND vgabe IN ('1' ,'2').
      IF sy-subrc EQ 0.
        LOOP AT t_belnr.
        l_awkey+0(10) = t_belnr-belnr.
        l_awkey+10(10) = t_belnr-gjahr.
        IF t_belnr-vgabe = '1'.
          l_awtyp = 'MKPF'.
        ELSE.
          l_awtyp = 'RMRP'.
        ENDIF.
        SELECT SINGLE bukrs belnr gjahr blart budat
          FROM bkpf INTO l_bkpf
            WHERE awtyp = l_awtyp
            AND   awkey = l_awkey.
          IF sy-subrc EQ 0.
             APPEND l_bkpf.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDIF.
    "Then
      SELECT zuonr hkont gjahr belnr buzei budat blart wrbtr shkzg xblnr
    waers bukrs
       INTO TABLE i_bsis
       FROM bsis
       FOR ALL ENTRIES IN l_bkpf
        WHERE bukrs = l_bkpf-bukrs
                          AND  hkont IN r_hkont   "Contains all Accounts
                          AND  budat = l_bkpf-budat
                          AND  augdt = 0
                          AND  augbl = space
                          AND  gjahr = l_bkpf-gjahr
                          AND  belnr = l_bkpf-belnr
                          AND  blart = l_bkpf-blart
                          AND  gsber = c_zrl1.
      SELECT zuonr hkont gjahr belnr buzei budat blart wrbtr shkzg xblnr
    waers bukrs
       APPENDING TABLE i_bsis
       FROM bsas
        FOR ALL ENTRIES IN l_bkpf
        WHERE bukrs = l_bkpf-bukrs
                          AND  hkont IN r_hkont
                          AND  budat = l_bkpf-budat
                          AND  augdt = 0
                          AND  augbl = space
                          AND  gjahr = l_bkpf-gjahr
                          AND  belnr = l_bkpf-belnr
                          AND  blart = l_bkpf-blart
                          AND  gsber = c_zrl1.
    "Then process this data

  • 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

  • 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 Invoice number linked to FI accounting document number ??

    Hello All,
    I have been looking around for all possible combinations to find the link between FI accounting document number (BSEG-BELNR) and Intercompany Invoice number (for which billing corr. to STOs' or POs' is done).
    The requirement is that during ERS posting, we have accounting document numbers (BSEG-BELNR) and associated STOs' for this (BSEG-EBELN), but we are unable to map the Intercompany Billing Invoice number(s) (where the billing corr. to STOs' obtained from BSEG-EBELN) to this accounting document number (BSEG-BELNR).
    Any pointers or detailed view solution would be of great help.
    Thanks,
    Ansh

    Hello DPM,
    Thank you for the descriptive help. But my requirement is to look for Intercomapny Billing number (VBRK-VBELN) linked to an accounting document number (BSEG-BELNR) and not Invoice Receipt Number.
    The steps that I am following are:
    From BSEG, found EBELN (Stock Transfer Order) and XREF3 (Reference Key, combination of fiscal yr., some ref. number, maybe GR no. and ref item no.), based on BELNR (Accounting document number).
    From EKBE, found XBLNR (Reference Delivery Number or Direct Intercompany Billing Number on which GR is done) based on
    EKBE - EBELN = BSEG - EBELN
    EKBE - BELNR = BSEG - XREF3 (only ref and item no., considering it to be a GR no.)
    EKBE - VGABE = '1' and EKBE - BEWTP = 'E'.
    From VBRP, found VBELN (Intercompany Billing No., which is a desired number) based on
    VBRP - AUBEL = EKBE -EBELN (Stock Transfer Order)
    VBRP - VGBEL = EKBE - XBLNR (Delivery number)
    Here, I am not sure about 2 things:
    Whether the reference no in BSEG-XREF3 will always be Goods Receipt number for Stock Transfer Order or not. If not, then what it can be and how I will have to proceed further then.
    Secondly, If in case for an accounting document number, I have 2 Stock Transfer orders (BSEG - EBELN) and same reference number (BSEG-XREF3), then from History table (EKBE) I get only single delivery based on which GR was doen for both STOs', then I shall be getting single Intercompany Billing Invoice from VBRP or different ?
    Kindly provide your inputs.
    Thanks,
    Ansh

  • How to get all the values from the dropdown menu

    How to get all the values from the dropdown menu
    I need to be able to extract all values from the dropdown menu; I know how to get all those values as a string, but I need to be able to access each item; (the value in a dropdown menu will change dynamically)
    How do I get number of item is selection dropdown?
    How do I extract a ?name? for each value, one by one?
    How do I change a selection by referring to particular index of the item in a dropdown menu?
    Here is the Path to dropdown menu that I'm trying to access (form contains number of similar dropdowns)
    RSWApp.om.GetElementByPath "window(index=0).form(id=""aspnetForm"" | action=""advancedsearch.aspx"" | index=0).formelement[SELECT](name=""ctl00$MainContent$hardwareBrand"" | id=""ctl00_MainContent_hardwareBrand"" | index=16)", element
    Message was edited by: testtest

    The findElement method allows various attributes to be used to search. Take the following two examples for the element below:
    <Select Name=ProdType ID=testProd>
    </Select>
    I can find the element based on its name or any other attribute, I just need to specify what I am looking for. To find it by name I would do the following:
    Set x = RSWApp.om.FindElement("ProdType","SELECT","Name")
    If I want to search by id I could do the following:
    Set x = RSWApp.om.FindElement("testProd","SELECT","ID")
    Usually you will use whatever is available. Since the select element has no name or ID on the Empirix home page, I used the onChange attribute. You can use any attribute as long as you specify which one you are using (last argument in these examples)
    You can use the FindElement to grab links, text boxes, etc.
    The next example grabs from a link on a page
    Home
    Set x = RSWApp.om.FindElement("Home","A","innerText")
    I hope this helps clear it up.

  • How to get the return values from a web page

    Hi all :
       how to get the return values from a web page ?  I mean how pass values betwen webflow and web page ?
    thank you very much
    Edited by: jingying Sony on Apr 15, 2010 6:15 AM
    Edited by: jingying Sony on Apr 15, 2010 6:18 AM

    Hi,
    What kind of web page do you have? Do you have possibility to for example make RFCs? Then you could trigger events (with parameters that could "return" the values) and the workflow could react to those events. For example your task can have terminating events.
    Regards,
    Karri

  • How to get warranty service claim from nokia c5-03...

    how to get warranty service claim from nokia c5-03 in india because i have problem with nokia c5-03 I Purchase 2 week ago a new nokia c5-03 but from day 1 i facing same problem like 1) app close itself 2) internet browse close if any thing is downloading or downloading over 3) memory full always then i should reboot the phone then it work. 4) ovi map is open it shows memory full close the app So kindly help me how to get warranty service claim from nokia c5-03 in india i am unhappy with nokia c5-03
    Solved!
    Go to Solution.

    i updated software also but the same problem cont... I want to know that nokia will give back money or exchange for other new mobile

  • How to remove Credit Card number from the account

    Dear Sir/Madam,
    Someone used my Creadit card to buy credit and I agreed initially.
    Now i want to remove my creadit card number from her account and disallow her to use it. But it seems the credit card infomation can not be removed and she still can buy credit using my credit card.
     I checked with her account and it seems my credit card number is always shown there, no matter how I try.
    May I know how can I do?
    Thanks
    Solved!
    Go to Solution.

    Hi,
    You can delete a credit card if you have used it to buy Skype Credit, but you cannot delete a card that is being used for recurring payments (a subscription or Auto-recharge). You have to cancel the recurring payment first.
    To delete a credit card:
    1. Sign in to your account:
    http://www.skype.com/go/myaccount
    2. In the Account details section, click Billing & payments.
    3. On the Payment settings page that appears, click Stored payment details, and then next to the credit card you want to delete, click the Delete button.
    For more help with updating your credit card details, visit:
    https://support.skype.com/faq/FA10486/
    Hope this helps.
    Rod
    If you found this answer helpful, please give Kudos. If it resolved your issue, mark it as a solution to help others. Thanks!

Maybe you are looking for

  • Background Image for Symbols

    Hello, I am wondering if it is possible to have a tileable background for individual symbols. Similar to setting it up for the Stage or Body: $('body').css("background-image", "url(media/bg.jpg)","background-repeat", "repeat") But for a symbol. I tre

  • [Solved] i3status Volume Display is Incorrect

    My i3bar should be showing me the volume of Master, but instead it shows me some other value. It decreases when the volume decreases, but not by the same amount, and it reads about 30% when the audio is too quiet to hear. Also, you can see the comman

  • Macbook pro charger doesn't work!

    My charger worked ten minutes ago and suddenly it stopped working. I got the macbook pro a year ago, I am wondering if I can still exchange my charger for a new one at the apple store? What do I need to bring to the store?

  • Crackberry Reloaded

    So...I've my Blackberry 8530 since January, and have encountered various problems, most of which resolve themselves over time. HOWEVER, this morning I woke up and my phone was working fine. I get to school and it decides that it is just NOT on board

  • MPEG-2 422 program stream

    What do you get when you make a file using this preset? I'm getting audio only, no video. Thanks.