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.

Similar Messages

  • Relation between Material Number and Material document Number.

    hi xperts,
         I want to Know Is there any Relation ship between the <b>Material Number</b> and <b>Material Document Number</b>.
      If So can i get any Tcodes to check them?
    Thanks in advance.
    Message was edited by:
            STALIN JOSEPH

    Hi,
      Thanks for your reply.
    I want to Load the Inventory Management Data into Business warehouse ,there the Only way i correlate the Data between is by taking some material Number.
    and Material Document.
    In step 1 i load Material Number data and step 2 i load material document data,so i want to make cure those two loads i load the same material numbers.
    Please help me to collerate between them.

  • Get Material Document Number and Material Document Year

    Hi everyone,
    Right now, i'm developed idoc program. I need material document number (MBLNR) and material document year (MJAHR).  I have information only BAPI2017_GM_HEAD_01 and BAPI2017_GM_ITEM_CREATE. Is there any FM to get this value ? Thank you
    Regards,
    Satria

    Ok, i will explain with more detail about my problem
    Here my pseudocode :
    -  Get data with type BAPI2017_GM_HEAD_01 from Idoc (let we say this X)
    -  Get data with type BAPI2017_GM_CODE from Idoc (let we say this Y)
    -  Get data with type BAPI2017_GM_ITEM_CREATE from IDoc (let we say this Z)
    -  IF Y-GM_CODE <> "06" THEN
           CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
               EXPORTING
                   GOODSMVT_HEADER = X
                   GOODSMVT_CODE     = Y
               TABLES
                    GOODSMVT_ITEM      = Z
       ELSE IF Y-GM_CODE = "06" THEN
           CALL FUNCTION 'BAPI_GOODSMVT_CANCEL'
                EXPORTING
                     MATERIALDOCUMENT = ???
                     MATDOCUMENTYEAR = ???
                    GOODSMVT_PSTNG_DATE = ???
    I know that material doc and mat doc year is in table MKPF. But the problem is they are  the primary key, so how i use X,Y,Z in select operation to MKPF? or is there another way using FM ? Thank you
    Regards,
    Satria

  • Link between invoice number and material document number

    I need a way to get the list of material document numbers which correspond to a particular invoice.  Is there a way to find this information?  I am looking [looping] at table EKBE during a user exit in SAPMV60S but I need to restrict the entries by a range of (multiple) material document numbers.
    Regards,
    Davis

    It looks like you're missing a piece of code.
            SELECT SINGLE * FROM BKPF WHERE BUKRS = Z_EKKO-BUKRS AND
    *                                       BELNR = EKBE-BELNR AND
                                            AWKEY LIKE X_KEYFLD AND
            CHECK SY-SUBRC = 0.
    The SELECT just ends at the "AND".
    Should there be another line after the "AND"?
    You said you had an invoice number; why can't you use that in your WHERE clause to limit what is returned from BSEG?
    What field are you using for the invoice?
    I had mentioned BKPF-XBLNR before, which we use to store the vendor invoice on a PO, but what you are doing sounds different.  Are you referring to an invoice that you created?
    I think that this might be in BSEG-REBZG, and you should be able to filter on this field.
    Shouldn't such an additional filter give you what you want?
    e.g.
    if the invoice specification is a single value:
    * Getting the Vendor Invoice header data
      SELECT SINGLE * FROM bseg WHERE bukrs = z_ekko-bukrs AND
                                      belnr = bkpf-belnr AND
                                      hkont = '0000416000' AND
                                      rebzg = invoice
    or, if the invoice specification is a range or list:
    * Getting the Vendor Invoice header data
      SELECT SINGLE * FROM bseg WHERE bukrs = z_ekko-bukrs AND
                                      belnr = bkpf-belnr AND
                                      hkont = '0000416000' AND
                                      rebzg IN s_invoice
    If you are not using rebzg, then do the same against whatever field you are using.
    Good luck
    Brian

  • Delivery document archived and material document has zero quantity

    Hello Gurus,
    This is intracompany STO scenario with delivery. There is one STO for quantity say 1000 pc created in 2008. Delivery and PGI done for 1000 qty in 2008.  Goods are received in receiving plant for qty 1000 in 2008. Now this delivery document is archieved and user has reversed the GR material document in 2010. Now this reversal material docuemnt has zero material qty becasue the delivery was archieved(which is the probable reson)
    When I want to cancel this reversal material document it gives error that "Qty and / or "delivery completed" ind. or final issue ind. are missing" which is logical since material document has zero quantity.
    Is there any sap notes or any other way to fix this?
    Please guide.
    Regards
    Nilesh

    Niles Raut wrote:
    Hello Gurus,
    >
    > This is intracompany STO scenario with delivery. There is one STO for quantity say 1000 pc created in 2008. Delivery and PGI done for 1000 qty in 2008.  Goods are received in receiving plant for qty 1000 in 2008. Now this delivery document is archieved and user has reversed the GR material document in 2010. Now this reversal material docuemnt has zero material qty becasue the delivery was archieved(which is the probable reson)
    >
    > When I want to cancel this reversal material document it gives error that "Qty and / or "delivery completed" ind. or final issue ind. are missing" which is logical since material document has zero quantity.
    >
    > Is there any sap notes or any other way to fix this?
    >
    > Please guide.
    >
    > Regards
    > Nilesh
    Where is actually the problem, if one only reversed 0 quantity?
    Why do you think you need to reverse this reversal again?
    why with year 2010?
    Dont you do anual inventories?  Such stock counts have corrected your stock anyway. if you start cancelling older movements then you create stock inconsistencies again.

  • Need help abt Purchase order and material document number

    1)Is there any releation ship between Purchse order number and material document number?
    2) I found aBAPI to get the goods receipt details. That is BAPI_GOODSMVT_GETDETAIL. But it is excepting Material document number and material document year as input parameters.Is there any BAPI to get goods receipt details by using purchase order number?

    hi kiran
    check this thraed. this gives you relatinship between Purchse order number and material document number
    Retrieving Accounting Document number based on PO numbers
    BAPI to get goods receipt details by using purchase order number is
    BAPI_GOODSMVT_CREATE
    thanks
    Sachin

  • Relation between goods receipt and material document number

    guyz!
    i got stuck up at one functional doubt. can any one say link between goods receipt and material document number. in other way, i wanted to know difference between these two i.e. goods receipt and material document number. or both are same.
    awaiting for reply
    manas

    Hi,
    Just have a look if this thread can solve ur problem.
    Re: display goods receipt
    Rgds,
    Prakash

  • Billing Document and Material Document number and Date (Goods Issue)

    Dear Experts,
    Is there a way I can find the relationship between a billing document and a material document number and Goods issue date?
    Thanks

    Hi Abid
    Is there a way I can find the relationship between a billing document and a material document number and Goods issue date?
    You have to follow the flow from the billing document to the material document. This will only work if the billing document comes from a delivery note.
    Billing document => Delivery
    LIPS-VBELN = VBRP-VGBEL
    and LIPS-POSNR-VBRP-VGPOS
    So you have LIPS + LIKP with the LIKP-WADAT_IST as the goods issue date.
    Delivery => Material Document Number
    You can use the table VBFA with the delivery item as the preceding document number (VBFA-VBELV) and item (VBFA-POSNV) ; you will also have to define the preceding document type as J (delivery) and the document category of subsequent document as R (material document).
    Because in SAP nothing is simple, there might more than one material document, because the goods issue (601) movement might have been canceled and issue again. So you will have to decide what to do in that case.
    Best Regards,
    Franck

  • Material document number and financial document number

    Hai Friends,
    How can i link material document number and financial document number

    Hi,
    I did below for my requirement to get payment document number. It will useful to you
    FORM GET_PAY_DOC .
      data: wa_bkpf TYPE bkpf.
      data: wa_obj_key TYPE bkpf-AWKEY,
            wa_AUGBL TYPE bsak-AUGBL.
    SELECT SINGLE belnr GJAHR from ekbe into (it_table-belnr, it_table-GJAHR)
              where ebeln eq it_table-ebeln AND
                    ebelp eq it_table-ebelp AND
                    BEWTP eq 'Q' AND
                    XBLNR eq it_table-tknum.
    CHECK sy-subrc eq 0.
    CONCATENATE it_table-belnr it_table-GJAHR INTO wa_obj_key.
    SELECT SINGLE bukrs belnr GJAHR from bkpf into CORRESPONDING FIELDS OF wa_bkpf
      where awtyp = 'RMRP' AND
            awkey = wa_obj_key.
      CHECK sy-subrc eq 0.
      SELECT SINGLE AUGBL from bsak into wa_AUGBL
        where bukrs eq wa_bkpf-bukrs AND
              lifnr eq it_table-tdlnr AND
              belnr eq wa_bkpf-belnr AND
              GJAHR eq wa_bkpf-GJAHR.
    CHECK sy-subrc eq 0.
      SELECT SINGLE belnr budat from bsak into (it_table-belnr1, it_table-Budat)
        where bukrs eq wa_bkpf-bukrs AND
              lifnr eq it_table-tdlnr AND
              AUGBL eq wa_AUGBL AND
              GJAHR eq wa_bkpf-GJAHR AND
              blart eq 'KZ' and
              belnr ne wa_bkpf-belnr AND
              SHKZG eq 'S'.
    ENDFORM.                    " GET_PAY_DOC

  • PO print OUT And material Document Print Out is coming In English

    HI all.
    I have Created Vendor In ZH(chinese Language,)and in material master I have maintained description in Chinese language.
    I'M taking PO and material Documents print outs  in Chinese Server log-in.
    even Though Im taking Print outs in Chinese Log-In server, IM getting Print outs in English Language only not In chines language..
    At the Time Of PO creation the Communication Language is ZH(Chines)..
    I have read some related post even 89899..
    But I have not find solution
    plz help me.
    thanks and regards
    ramesh reddy.'

    Check SAP Note 894444 - Tool for server-based printing on Windows (SAPSprint) for your requirement,
      Installation
    Before you install SAPSprint, delete SAPLPD manually. To do this, you normally need to completely delete the installation directory only. If you installed SAPLPD as a service using the srvany tool, you can remove the service by calling 'Instsrv SAPLPD remove'.
    You can download SAPSprint as a self-extracting executable file from SAP Service Marketplace:
    1. Entry by Application Group (on the left)
    2. SAP Frontend Components (on the right)
    3. SAPSPRINT (on the right)
    4. SAPSPRINT <Release> (on the right)
    5. SAPSPRINT <Release> (on the right)
    6. Win32 (on the right)
    Start the program. After you enter the installation path, the system prompts you to enter the TCP/IP port.
    Normally, the default setting of 515 is suitable for the port. You should only change this setting if the Windows TCP/IP print service is also running on the computer. The SAPSprint Windows service starts as soon as the installation is over.
    We recommend that you set up the following options for the service in the Windows Service Control Manager:
    The service should run under a domain user that has the relevant authorizations for the required printers. After the installation, the service runs under "Local system account". This can access locally-defined printers only. You can set the user in the Windows Service Control Manager, in the options of the SAPSprint service.
    If you want to delete SAPSprint, you can do so using the normal Windows uninstall tool.
    We recommend that you install the SAPSprint service on a separate computer and not together with a SAP system, especially if you use a large number of printers. All printers that SAPSprint uses must be installed on the SAPSprint computer. This applies particularly to released printers from other computers. These should be installed as a queue on the SAPSprint server.
    Also note further settings in accordance with Note 1069483.
    Settings
    You can display the call parameters available for SAPSprint by calling 'sapsprint -?' on the command line. The most important parameters are those that set options, especially log options for troubleshooting.
    You can set the log level to 5 by specifying 'sapsprint -oi LogLevel 5'. Immediately after installation, no log level is set up, which means that no log file is created. By setting the log level to 1, 5, or 9, you can ensure that more information is available in the directory that you specified during the installation. A file called sapsprint.dbg and a print job specific file with a variable name are generated. The second file is deleted after successful printing. It is only retained if the printout is recognized as incorrect. If you set the option 'sapsprint -oi KeepFile 1', then both this file and the print file are retained. This is primarily intended for troubleshooting by SAP Support.
    All options are case-sensitive. You can display the most important SAPSprint options by calling 'sapsprint -?'. All possible options are described in Note 85469. Normally, the options described there are not necessary - you should use them only in exceptional circumstances.

  • User-Exit - MIGO How to get the Number of Material Document

    Hi everyone!!
    I'm looking for an user-exit after saving in MIGO transaction. I need the Number of Material Document (MKPF-MBLNR) to generate an IDOC.
    Does anybody knows an user-exit to get this number?
    Regards,
    Rubens Kumori
    Edited by: Rubens  Kumori on Oct 20, 2008 3:26 PM

    In BADI definition [MB_DOCUMENT_BADI|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=mb_document_badi&adv=false&sortby=cm_rnd_rankvalue], you may use interfaces [MB_DOCUMENT_BEFORE_UPDATE|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=mb_document_badiMB_DOCUMENT_BEFORE_UPDATE&adv=false&sortby=cm_rnd_rankvalue] (before update task) and [MB_DOCUMENT_UPDATE|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=mb_document_badiMB_DOCUMENT_UPDATE&adv=false&sortby=cm_rnd_rankvalue] (in update task)
    Regards

  • Billing Document and Material Document Relation

    Dear all,
    i need to know about the relation between Billing document and Material document.
    Please let me know if there is any Function Module or Some View available to get these details.
    my only requirement is to get only Material document From Billing Document.
    Thanks In Advance.
    Pradeep.

    Hi
    So the material document should be linked to the delivery
    The document flow:
    Delivery->Outgoing moviment->Delivery->Bill->FI invoinces
    If you start from FI:
    - Get the bill number from header data: BKPF-AWKEY
    - get the delivery number from bill item VBRP-VGBEL
    - get the document flow for the delivery: VBFA: here you can find out the material document
    Max

  • ML81N Service entry sheet and material document

    Hello,
    Why SAP creates a material document "WE" and another document "Lerf" when you create a service entry sheet using the ML81N transaction?
    I have seen too that if you don't set up the "No limit" flag in the purchase order then you can make a lot of entry sheet but SAP doesn't create the same number of material documents.
    Therefore, it can be a scenario where you can have a document entry sheet but you don't have the corresponding material document.

    Hi,
    The GR document is an official document. The system creates the material document automatically when you accept and save the entry sheet (ESSR-KZABN = X).
    "Lerf" in the PO history is a service entry sheet, the material document is the same material document which MIGO would create.
    Please check the EKBE and MSEG for the entries.
    You can save for the same PO several entry sheets and the system automatically creates material documents for these entry sheets when you save and accept the entry sheets. It is not possible to save more than 1 material document for the same entry sheet.
    But it is possible to release entry sheets collectively in ML85:
    For example you created a PO with service quantity 20 and you can create as many entry sheets as the quantity from the PO service item (20) and the overdelivery tolerance this allows. All of these entry sheets will refer to the same PO item. In ML85 you can release all of these entry sheets in the same step in ML85 and the system will create a material document (just 1 material document) with as many items (BUZEI) as many different entry sheets you saved for your PO item...
    Regards,
    Edit

  • Field Customs reference number in material document

    Hi Friends,
    While doing GR am geting document number and can see that in MB03. Now in MKPF table there is field called Customs reference number( field name # GTS_CUSREF_NO) , and after putting material document number in MKPF am getting all the detail including Customs reference number.
    Now my question is where can I see the detail of Customs Reference number in material document in t code (MB03).
    Any pointers
    Regards

    No reply at all.
    Rgds

  • Want to reduce the number of material documents created during Confirmation

    When confirming each phase on the process order, backflush of components happens and a material document is created .So if we have multiple phases, multiple material documents are created. This way we are having large number of material documents created for each process order .
    We do not want a material document to created for each phase but rather create one document while confirming the last phase of the process order. How can we achieve this? Is there a configuration or a user exit that can be used?
    Our goal is to reduce the number of material documents created.

    IF you assigned all the component  to final phase then You can get only one  material document for all the component
    or
    Remove  all the backflush setting   and do the Picking in COIK, The system will Post all the  261 movement component in one document

Maybe you are looking for

  • My I pad will not allow me to delete my Facebook account and I have tried everything. Please Help Me.

    My ipad will not allow me to delete my Facebook account. I went to settings an tried to delete my account will not let me. I even entered my password an it said it was incorrect. I also uninstalled my Facebook app an tried to reinstall it am it still

  • VFL Speaker sound from both the front speakers while FR sound is not coming out at all.

    I have a creative gigaworks s750 connected to a xtreme gamer sound card. The system was working absolutely fine but now it has started behaving very strangely; system is playing back Front Left Speaker sound from both the front speakers while Front R

  • Clone tool

    OK, I need help. I just can't use the clone tool. I had a big blob of mold in a complicated place so I needed to use multiple clonings. After 2 or 3 I got totally confused with a mess of circles of various sorts everywhere. I can get rid of them by g

  • Edge OAM audio playback issues with Adobe DPS

    Hi, Previous to the CC 2014.1 update, Edge OAM animations placed into my Adobe DPS folios worked and interacted fine. E.g. I had animation build and then on 'tap' elements would animate and playback audio to reflect the movement. Since updating to th

  • I have a problem with the finder

    Hi. I have a problem with the finder. My girlfriends Macbook (Yosemite 10.10) shows of 6 times in the finder. ? I can't find anything on her mac that tells me why this is. ? <Image Edited by Host to Remove Personal Information>