PO invoice Doc number

Hi,
How to get the PO invoice and payment document no.   In ME23N I am able to see the GR and IR no for each line item. for all the IR I have to display the respective Invoice and Payment Doc no.  From which table and what is the key between them is required. Please help me.
Thanks
Ram

Hi,
Then PO invoice table is RBKP..
I believe payment document number you are mentioning is the accounting document number ..
CONCATENATE RBKP-BELNR RBKP-GJAHR INTO LV_AWKEY.
Get the payment document number.
  SELECT bukrs belnr gjahr UP TO 1 ROWS
         FROM bkpf
         INTO lwa_bkpf
         WHERE awtyp = 'RMRP'
         AND   awkey = lv_awkey.
  ENDSELECT.
  WRITE: / 'Payment document number', lwa_bkpf-belnr.
Thanks,
Naren

Similar Messages

  • VAT invoice serial number corresponding to official excise doc. no.

    Hi experts,
    my requirement is to provide extra field in report for VAT invoice serial number corresponding to official excise document number. Official excise document number is taken from J_1IRG23D table as exnum field.
    can anyone please suggest me from which table i can find VAT invoice serial number.
    thank you,
    regards,
    vijay krishna

    IF VAT invoice serial number is Vendor Invoice Number.
    rbkp-xblnr.
    elseif MIRO number,
    rbkp-belnr.
    Cheers

  • Link from Accounting Doc Number to PO

    Hi,
    In FBL3n certain doc types PO number is not updating.Using assignmnets i want to update the field for these kind of doc no.
    My doubt is from FI doc number how can i link it to the PO number.
    Eg:i have an FI doc number say 51000000 which has two line items and corrponding 3 tax line items each .(ie 9 lines for the same in FBL3N).How can i link that my tax line items corrspond to which line item.
    Hope my question is clear.Please suggest.

    Hello,
    Generally the FI doc created from an PO Invoice have:
    BKPF-AWTYP = 'RMRP'.
    You can goto RSEG from BKPF using:
    RSEG-BELNR = BKPF-AWKEY+0(10)
    RSEG-GJHAR = BKPF-AWKEY+10(4)
    In RSEG, you have the PO details in RSEG-EBELN & RSEG-EBELP.
    BR,
    Suhas

  • How to club many sales orders in to one single invoice document number

    Dear Team,
    We are in to contract for 12 years with our client for a particular service,so we will raise a contract order for a particular item,with this we generate the order number,here we are generating some 150 orders numbers,this 150 order number I want to combine in to one single invoice document number,I have tried this in vf01 I am giving the all 150 document numbers,and excuting this but here for each sales order document number it is creating one billing document number,but I need one single invoice number for all this order numbers.
    My copy controls are
    In VTFA
    Header data
    Sales doc type-                                 zabc
    Target billing tye-                            zmv
    Copy requirement-                           001 header/order related
    Determination export data-               blank
    Assignment number-                         b
    Reference number-                            b
    Copy item number-                            tick box was selected
    Item category
    Copy requirements-                        Item/order related
    Data vbrk/vbrp-                              003  single invoice
    Billing quantity                               A
    Pos/neg                                            +
    Pricing type                                      c
    Pricing type exchange rate              blank
    Price source                                     blank
    Can any one guide what to do

    Hi
    In VTFA, please do the following changes,and then test by creating the sales orders then do collective billing.
    Keep Assignment number blank
    Keep Reference number blank
    Copy item number- Uncheck the box where tick box was selected
    Also make sure that PO Number in sales order is same
    Regards
    Srinath

  • Excise Invoice series number

    Hi Friends,
    Can anyone tell me what is the TCode for Excise Invoice series number. I want to change the Excise Invoice series number range.
    Please help me out.
    Rama

    Transaction Code: SNRO
    J_1I57FC --> 57FC Number Range Object
    J_1IARE1 --> ARE1 Doc No object based on Series Group
    J_1IARE3 --> ARE3 Doc No object based on Series Group
    J_1IBOND --> Excise Bonding: Bond number object
    J_1ICERT --> Withholding Tax Certificates (India)
    J_1ICHLNNO --> Internal number range for challans
    J_1ICONPLA --> Consolidated PLA serial no. generation
    J_1IDEPINV --> Excise Invoice Number for Depot Invoices
    J_1IEXCEXP --> Export excise invoice number range
    J_1IEXCINV --> Excise invoice number
    J_1IEXCLOC --> Local excise invoice numebr range
    J_1IEXCTST --> Excise invoice with intervals
    J_1IEXINEX --> Excise invoice number for export
    J_1IINTNUM --> Internally document number to be generated
    J_1IINTPR2 --> Despatch serial number
    J_1ILIC --> Excise Bonding: License number object
    J_1IPLA2 --> PLA part II number range object
    J_1IRG1 --> RG1 Number range object
    J_1IRG1_T     No. --> Range for RG1 - Excise group / Material
    J_1IRG23A1 --> RG23A part 1 no. range object
    J_1IRG23A2 --> RG23A part II number range object
    J_1IRG23C1 --> RG23C part I number range object
    J_1IRG23C2 --> RG23C part II number range object
    J_1IRG23D --> Folio Numbers for RG 23D
    Regards,
    Rajesh Banka

  • Restrict selection from LDB 'DDF' based on FI Doc number(BELNR)?

    Hi all,
    I am trying to restrict selection from LDB 'DDF' based on FI Doc number(BELNR).
    Even if i pass only one document number in selection-screen, the program is still printing lot of documents?
    Where I am going wrong?
    *& Report  ZSUB_READ_LDB
    REPORT  ZSUB_READ_LDB.
    DATA wa_BSEG TYPE BSEG.
    SELECT-OPTIONS s_BELNR FOR wa_BSEG-BELNR.
    DATA: callback TYPE TABLE OF ldbcb,
    callback_wa LIKE LINE OF callback.
    DATA: seltab TYPE TABLE OF rsparams,
    seltab_wa LIKE LINE OF seltab.
    callback_wa-ldbnode = 'BSEG'.
    callback_wa-get = 'X'.
    callback_wa-get_late = 'X'.
    callback_wa-cb_prog = sy-repid.
    callback_wa-cb_form = 'CALLBACK_BSEG'.
    APPEND callback_wa TO callback.
    CLEAR callback_wa.
    seltab_wa-kind = 'S'.
    seltab_wa-selname = 'BELNR'.
    LOOP AT s_BELNR.
      MOVE-CORRESPONDING s_BELNR TO seltab_wa.
      APPEND seltab_wa TO seltab.
    ENDLOOP.
    CALL FUNCTION 'LDB_PROCESS'
      EXPORTING
        ldbname                     = 'DDF'
        variant                     = ' '
      TABLES
        callback                    = callback
        selections                  = seltab
      EXCEPTIONS
        ldb_not_reentrant           = 1
        ldb_incorrect               = 2
        ldb_already_running         = 3
        ldb_error                   = 4
        ldb_selections_error        = 5
        ldb_selections_not_accepted = 6
        variant_not_existent        = 7
        variant_obsolete            = 8
        variant_error               = 9
        free_selections_error       = 10
        callback_no_event           = 11
        callback_node_duplicate     = 12
        OTHERS                      = 13.
    IF sy-subrc ne 0.
      WRITE: 'Exception with SY-SUBRC', sy-subrc.
    ENDIF.
    *&      Form  CALLBACK_BSEG
          text
         -->NAME       text
         -->WA         text
         -->EVT        text
         -->CHECK      text
    FORM CALLBACK_BSEG USING name TYPE ldbn-ldbnode
    wa TYPE BSEG
    evt TYPE c
    check TYPE c.
      CASE evt.
        WHEN 'G'.
          WRITE: / wa-BELNR.
          ULINE.
        WHEN 'L'.
          ULINE.
      ENDCASE.
    ENDFORM.                    "CALLBACK_BSEG

    Hi Andreas,
    I have included bukrs and gjahr too...but if I input only one invoice number the report is printing a lot of invoices.
    Not sure from where the data is being picked up?
    Sorry of poor formatting of code.
    Thanks ,
    Subba
    *& Report  ZSUB_READ_LDB
    REPORT  ZSUB_READ_LDB.
    TYPE-POOLS: RSDS, RSFS.
    DATA wa_BSEG TYPE BSEG.
    SELECT-OPTIONS s_BELNR FOR wa_BSEG-BELNR.
    SELECT-OPTIONS s_BUKRS FOR wa_BSEG-BELNR.
    SELECT-OPTIONS s_GJAHR FOR wa_BSEG-BELNR.
    DATA: callback TYPE TABLE OF ldbcb,
    callback_wa LIKE LINE OF callback.
    DATA: seltab TYPE TABLE OF rsparams,
    seltab_wa LIKE LINE OF seltab.
    DATA: TEXPR TYPE RSDS_TEXPR,
    FSEL TYPE RSFS_FIELDS.
    start-of-selection.
      callback_wa-ldbnode = 'BSEG'.
      callback_wa-get = 'X'.
    callback_wa-get_late = 'X'.
      callback_wa-cb_prog = sy-repid.
      callback_wa-cb_form = 'CALLBACK_BSEG'.
      APPEND callback_wa TO callback.
      CLEAR callback_wa.
      seltab_wa-kind = 'S'.
      seltab_wa-selname = 'BELNR'.
    *seltab_wa-LOW =
      LOOP AT s_BELNR.
        MOVE-CORRESPONDING s_BELNR TO seltab_wa.
        APPEND seltab_wa TO seltab.
      ENDLOOP.
      seltab_wa-kind = 'S'.
      seltab_wa-selname = 'BUKRS'.
    *seltab_wa-LOW =
      LOOP AT s_BELNR.
        MOVE-CORRESPONDING s_BUKRS TO seltab_wa.
        APPEND seltab_wa TO seltab.
      ENDLOOP.
      seltab_wa-kind = 'S'.
      seltab_wa-selname = 'GJAHR'.
    *seltab_wa-LOW =
      LOOP AT s_BELNR.
        MOVE-CORRESPONDING s_GJAHR TO seltab_wa.
        APPEND seltab_wa TO seltab.
      ENDLOOP.
      CALL FUNCTION 'LDB_PROCESS'
        EXPORTING
          ldbname                     = 'DDF'
          variant                     = ' '
          EXPRESSIONS                 = TEXPR
          FIELD_SELECTION             = FSEL
        TABLES
          callback                    = callback
          selections                  = seltab
        EXCEPTIONS
          ldb_not_reentrant           = 1
          ldb_incorrect               = 2
          ldb_already_running         = 3
          ldb_error                   = 4
          ldb_selections_error        = 5
          ldb_selections_not_accepted = 6
          variant_not_existent        = 7
          variant_obsolete            = 8
          variant_error               = 9
          free_selections_error       = 10
          callback_no_event           = 11
          callback_node_duplicate     = 12
          OTHERS                      = 13.
      IF sy-subrc ne 0.
        WRITE: 'Exception with SY-SUBRC', sy-subrc.
      ENDIF.
    *&      Form  CALLBACK_BSEG
          text
         -->NAME       text
         -->WA         text
         -->EVT        text
         -->CHECK      text
    FORM CALLBACK_BSEG USING name TYPE ldbn-ldbnode
    wa TYPE BSEG
    evt TYPE c
    check TYPE c.
      CASE evt.
        WHEN 'G'.
          WRITE: / wa-BELNR.
          ULINE.
        WHEN 'L'.
          ULINE.
      ENDCASE.
    ENDFORM.                    "CALLBACK_BSEG

  • Document number and reference doc number

    Hi All,
    When i post a invoice through F-22 i get a document number.
    1: Is this doc. number also called invoice number
    2: What is reference document number (XBLNR field). From where does it get its value
    What's the use of this reference doc. number and how different it is from doc. number
    Thanks in advance,
    Prashanth

    hey,
    1. It is the invoice no.
    2. The reference document number is used as a search criterion when displaying or changing documents. In correspondence, the reference document number is sometimes printed in place of the document number.
    Ex; Vendor send the invoice and it has a no. on it. You can use that no as document no and/or reference no when posting in the system. So when you do a search it is easy to pull the invoice based in this no.
    Hope this helps.
    Assign points if helpful

  • Where can we see invoice doc. and payment doc. for asset based on its no.

    Dear all,
    For a particular asset, based on its number, is there any report which shows invoice, payment and other relevant documents.
    Can any of you suggest me on this?
    Thanks,
    Kumar

    HI
    There is no direct standard report in Asset accounting for your requirement , but you can try the below--
    Asset invoice means , if you have acquired your asset through raising a PO , then you have MIRO docnumber which is linked to Asset number, with the help of this FI document linked withh asset number  you can find out the invoice documents against assets acquired.
    Go to Bseg and search with asset number fields  and doc type of MIRO I believe it will be RE ,it will show you the  invoice docuemnts against the selected asset , then search for the clearing docs against these invoices in bseg , that will be your payment document.
    So now have asset number ,invoice number ,payment doc number.
    More logic you may apply like search for the link through MM tables , since PO is also having asset number , just check the link of Asset number with various documents and tables, you may ask your ABAPER to create a report or query for this.
    cheers
    Mukta

  • Cancelling Invoice doc. & rev. FI doc. for Consignment settlement.

    Hi,
    We want to cancel an Invoice document for the Consignment settlement. Can we do this in MR8M & after this how to reverse the FI document for that Invoice? Plz. help.

    HI....
    First u reverse the transferposting Document and then u take down the  doc number Go to MRKO
    put the docuement number and settle that. in the vendor g/l account once it showing credit and one time debit so that the balence is nill. ( before cancelling this please dont go for any other settlement).
    I hope this is helpfull for u
    Regards.
    suleman

  • Invoice Doc Display for Ship to country

    Hi,
    I am trying to Display Invoice Doc's based on Ship-to-country.
    I am Displaying Invoice amount, Payment amnt and With holding tax amnt.
    I am getting Payment Doc's(cleared) and Invoice Doc's from BSAD.
    Here the problem is I am able to get Ship-to-country for only Invoice Doc's.I am not getting for Payment Doc's.
    For Ex:If there are multiple Invoices for 1 Payment Doc and the Invoices are for Different Ship-to, Only specified Ship-to Invoices will be captured.
    Here the criteria is Total Invoice amnt should be equal to Sum of the Payment amnt and Withhold amnt.
    Same situation will arise when multiple payment document's for multiple Invoices.
    They way I am taking Ship-to-country is From Invoice doc>Sales doc>Ship-to.
    Please help me if any thing I missed in the flow to get the correct result.
    Thanks in Advance for your reply.

    hi,
    invoce number and invoice document number are same. you just give the same invoice document number here.
    otherwith check with XBLNR ( reference document number )
    cheers,
    sasi

  • Sales doc number?

    hi
    can i keep sales doc number in key fields or data fields in DSO?
    in data fields generally K.F and unique character also.
    in key fields we keep characters only.
    regards
    suneel.

    Hi Sunil,
    you can put the sales doc number (EBELN)
    in key filelds ,because which is the uniqe in the sales data.
    Regards
    Krishna Reddy

  • Report invoice document number againt PO line item

    Hi Forums,
    Can any body so kind to tell me is there any standard report in SAP 4.7 C where we can get the list of invoice document number against each line item of PO.
    I have tried the ME2N & ME2L report. If I double click the POH then only it give me the invoice document report. But i want a report where I get invoice document no against each line item wise in PO.
    Thanks in advance.
    Regards,
    sp sahu

    Hi sp sahu,
    I am sorry, but I am not aware of any report which might suit your requirements, this is the reason why I addressed you to the table EKBE. You might build your own report out of this table.
    Sorry!
    Esther.

  • How  to  look for  fi doc  number in cj88

    HI  expert:
          when I  run cj88.   the system generate FI  doc number.   how to look for FI doc number.
    can you tell me !
    thank you !!!!

    Hi,
    You can see the FI Doc. thru' given instruction
    Go to T-code CJI3 then fillup the WBS no. in which you want to see the Settlement document.
    Execute then filter up document type AA  double click on this & click on FI document.
    Hope it will solve your problem.
    Regards,
    Vishal Kr. Sharma

  • Extracting doc number information from dox saved in DMS

    Hello,
    I'm wanting to have a macro written that will put a document id into the
    footer of saved documents when the appropriate button is pushed.
    I know I can use the standard Word "Insert | Autotext | Header/Footer |
    Filename or Filename and path but when I do that, I get something like
    this:
    ::ODMAGRPWISEDOMAIN_AUS_DOM.POSTOFFICE_AUS_PO.Offi ce Administration:9055.1
    whereas the powers-that-be want something like this:
    OA:9055.1
    and nothing else. (The "OA" bit is the short version of Office
    Administration)
    I have a developer who thinks he may be able to pull this together, but he
    has posed this question:
    Is there a way to retrieve the profile information from Groupwise for a
    document that is currently open on screen?
    Using GW7, SP2 on NetWare 6.5, SP6.
    TIA,
    Catherine

    I think if you insert the filename with the option to include the path name,
    you will get the ODMA string with the doc number at the end (assuming the
    document has been saved and already has been assigned a doc number). Can
    you parse that somehow? I did this a long time ago in WP but not Word.
    Seems to me you should be able to record a macro to do that.
    "Catherine" <[email protected]> wrote in message
    news:D11Ri.13735$[email protected]. .
    > No, we can't get anything at the moment (unless we type it in the footer
    > of the document manually...using a keyboard.....ooh, manual labour!). We
    > can see what we want to get on the profile screen of a document's
    > properties when the document is open - but we don't know how to go about
    > getting that information so it can be plonked into the footer of a
    > document in Word. So the question is: Can you retrieve the profile
    > information from Groupwise for a document that is currently open on
    > screen?
    >
    > Confused? Yeah, me too!
    >
    > It's beginning to sound a bit too hard....
    >
    > Cheers,
    > Cat
    >
    >
    >
    > Dave Parkes wrote:
    >> I'm missing something here, you want
    >>
    >> OA:2870.1
    >>
    >> and you can get
    >>
    >> 2870-1.doc
    >>
    >> so, after juggling the current filename, you'd get what you want,
    >> wouldn't you ?
    >>
    >> Cheers Dave
    >>

  • How to find out SD billing doc # using accounting doc number ?

    Hi Experts,
    Using accounting doc tables such as BKPF , BSEG and BSID , I need to find out respective SD billing doc no when I have accounting doc number.
    The issue is I cannot use either 'reference number' or assignment number' because the same numbers are not flowing to accounting doc from SD ( enabled by a enhacement ).
    Regards
    Mahesh.

    Hi,
    In BKPF : AWKEY / XBLNR  with these fields we can identify the SD billing document number.
    In BSEG table VBELN field is Billing document number
    Or
    Goto T.Code FB03 enter the accounting document number,company code and fiscal year and press enter.
    select the line and choose details, choose addtional data tab, here we can see the billing document number.
    Regards,
    Chandrasekhar.S

Maybe you are looking for

  • Object Level Security in Oracle 10g

    Hi gurus Question regarding object level priviliges 1.Created a schema "TEST" and assigned following privileges GRANT CREATE SESSION TO TEST; GRANT CREATE ANY TABLE TO TEST; 2. created a table "Emp" Able to alter the table without assigning ALTER ANY

  • Add a special field called gsber

    Hello AL, I want to add one special field called gsber in to vendor line item display report, i'm using standard report define additional fields for line item display(SPRO). but its not allowing me to do so, pls let me knw what can be the reason Than

  • Vector Smart Object fades when pasted into Photoshop

    I have a group of vector objects in Illustrator.  I am trying to copy and paste them into Photoshop just as I have done many times before.  This time, however, everytime I paste them, regardless of if I choose Smart Object of Pixels, the image appear

  • If I upgrade to OS Yosemite, can I still use office 2011 on my Mac

    If I upgrade to OS X Yosemite 10.10, can I still use office 2011 on my MacBook Pro 2011

  • Can I still keep photoshop CS4 after installing photoshop CC?

    Hi, I'm intending to upgrade my Photoshop CS4 to CC version, but I would like to keep CS4 in my computer, is it possible to keep these 2 versions?