Insering Material document number which is created while posting MBGMCR02

Hello Friends ,
i have a requiremnt to insert the material document(mblnr) which is created while by  posting  the MBGMCR02 inbound idoc for
post goods issue .the requirement is to insert the MBLNR at weo5/we02 at status records.
message type MBGMCR .
For example the system will show the status message as 53 if idoc is created successfully and below that the 'message : BAPI EXECUTED SUCCESSFULLY its showing , instead of this message i wanted to show the new MBLNR number there .'
please help me by giving good suggestions.
thanks Advance
Anant

Is there any standard Function Module to find out FI Document number using Material Document number?
let me know is there any Function module available to identify these Material Document number or FI Document number?
Is there any standard Function Module to find out all the details ( such as Invoice date, vendor, amout, tax amount , payment due date, payment terms , approver)  using invoice document number.

Similar Messages

  • Gatting Material Document number

    Hi All,
    In the MIGO transaction, for a Goods receipt order, the transaction is calling MB_CREATE_GOODS_MOVEMENT and MB_POST_GOODS_MOVEMENT to create a material document and returns material document number.
    I have created a new program that is using only the above two FMs and want to create the material document. But this thing is not working. I am passing all the parameters, which the FM takes when called from MIGO transaction. It is giving me a material document number which is not tracable for the current posting data in any of the tables. Please tell me if anything specific needs to be done while calling these FMs.
    <REMOVED BY MODERATOR>
    regards.
    Edited by: Gaurav Joshi on Feb 13, 2008 12:17 PM
    Edited by: Alvaro Tejada Galindo on Feb 13, 2008 5:38 PM

    Hi,
    Material document header table is MKPF.
    Also, instead of the above FM MB_POST_GOODS_MOVEMENT, use the BAPI BAPI_GOODSMVT_CREATE followed by BAPI_TRANSACTION_COMMIT to post the goods movement.
    Cheers,
    Aditya
    Edited by: Aditya Laud on Feb 13, 2008 6:16 AM

  • Creation of material document number.

    Hi All,
    In the MIGO transaction, for a Goods receipt order, the transaction is calling MB_CREATE_GOODS_MOVEMENT and MB_POST_GOODS_MOVEMENT to create a material document and returns material document number.
    I have created a new program that is using only the above two FMs and want to create the material document. But this thing is not working.
    I am passing all the parameters, which the FM takes when called from MIGO transaction. It is giving me a material document number which is not tracable for the current posting data in any of the tables.
    Also please tell me in which table can I get the details for the material document number other than AUFM and MSEG.
    help will be rewarded.
    regards.

    problem solved by myselves.
    by using popup to inform function module i am able to throw error message
    Edited by: Janagar Sundaramoorthy Nadar on Nov 19, 2009 7:01 PM

  • Same material document number durin PGI

    Dear all
    When doing PGI against Oubound delivery for a current STO i am getting a Material document number  which is already generated by the system against another STO. How and why it is happening?
    What should I do to avoid such situations in future? Pls guide.
    Regards
    SAM

    Hi,
    Let me know which document is displaying in MB03 while trying to see the postings?
    also check weather any number ranges are transported to this client in th middle. If they are transported then existing numbers will be overlapped and this type of problems will come.
    Regards,
    Bharat.
    Edited by: B K on Feb 28, 2009 11:07 AM

  • Serial Number for material document number

    Hi All,
    Can any body tel me where Serial number stores for particular Material Document number.
    When user creation/posting MB11 he will enter serial numbers for material in material document.
    I already searched the forum. Unluckily i didn't received any related information.
    Thanks in Advance.
    NK

    I Tried looking standard table which contain Material number, Serial number, Equipment and Material Document but there isn't any.
    So I went into SQVI and join two tables, MSEG and OBJK. There I manually draged the MATNR from MSEG Table to OBJK and then selected the fields like Materials Number, Plant, Material Document, Mov Type etc and from other table I selected Material Number plus Serial Number, Equipment (chose your required filters) and then executed and it shows the required records correctly.
    Only issue it had was that if you try thousands of records e.g. Materials it went though and brought resukts and some time it dumped.  But it fulfilled my needs successfully.

  • 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

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

  • 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

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

  • Material document number range to matchthe accounting doucment number range

    Hi all,
    SRM 5.0 ECS.
    We have a reqt to match the material document number range and the accounting doucment number range for goods receipts  in ECC ...Is this possible???If so,how??
    Thanks.

    It may not workout .
    Material document number range configuration should be unique other wise lot of confusion.
    since material docuemnt and account documents uniquely identified by Year and Number.
    some times one material number and two accounting documents can be created while doing good receipt.

  • How to get the Next Material Document Number

    Hi,
    Please let me know How to get the next Material Document Number using Functional Module,
    Material Document number are  in MSEG table.
    Regards,
    Ganesh

    Hi Ganesh,
    if you want the next matrial number then first of all you have to define it as a number range in transaction snro.After creating the number range you have to define the interval.
    now you can use your number range by calling the function module
    CALL FUNCTION 'NUMBER_GET_NEXT'
          EXPORTING
            nr_range_nr             = '01' " here you have to give the number range number which you have defined in number range
            object                  = 'ZPRODLOG' " Number Range
          IMPORTING
            number                  = wa_prod_error_log-seqnr " sequence number generated,in your case material number field
          EXCEPTIONS
            interval_not_found      = 1
            number_range_not_intern = 2
            object_not_found        = 3
            quantity_is_0           = 4
            quantity_is_not_1       = 5
            interval_overflow       = 6
            buffer_overflow         = 7
            OTHERS                  = 8.
    each and every time next number will get generated .
    i hope this will help you.
    Thanks,
    Tanmaya

  • Material document number to match the FI document number

    Hello MM Gurus,
    May I know if anyone here has encountered a requirement where the material document NUMBER generated from goods movement (GR, GI) should have the same NUMBER with the FI accounting document generated with it? I tried to match the number ranges initially but this would only apply to 1 company code.
    Are there user exits here that I can use? 
    Regards,
    Marvin

    Hi
    You can create Number ranges for each year in OMBT transaction.
    regards
    Srinivas

  • Not able to see backend material document number in SUS

    Hi,
    A GR is created in ECC. It is avaiable for disply in the supplier's login.  We are able to achieve this.
    The question is "We are not able to see backend (ECC) material document number anywhere on the screen. We are only able to see the SUS Confirmation number (i.e. as per the number range assigned to BUS2233). Is it standard behavior?
    Details: SRM7.0 SP07, ECC Ehp4, Using MM-SUS. Plan driven procurement.
    Ganapathi

    Dear Manjunath,
    Thanks for the response.
    We have noticed that, the back end (ECC) material documents are getting replicated to SUS as we are able to see this number in BBP_PD &  BBP_PDBEH-BE_OBJECT_ID.
    So, let me put the question this way.
    Our issue is with display of document in the portal (BSP Pages).
    For Example, in case of Invoice, the supplier can see the back end MIRO invoice document number with the "External Reference" Label, under Basic Data section. The case is NOT same with GR. The back end (ECC) material document number is NOT seen any of the layout (for end user, who has logged in as supplier).
    Is it standard behavior? If we want that, the suppliers should be able to see the material document number in the portal, when a GR is created in ECC, what settings we have to do?
    Ganapathi

  • 2 material document number having the same delivery number???

    hi
    is it possible to have 2 different material document numbers assigned to the same Outbound delivery number????
    the situation is that one of the material document number was assigned to a particular delivery number  say 'a'  and deleted later on a particular date.
    on the same date another material document number was created with  the same delivery number 'a'.
    is this possible to happen .(i.e functionally correct)   ?????? bcoz i am getting such type of output in transaction "MIGO"...
    PLZ HELP .POINTS WILL B AWARDED!!!

    Hi,
    Yes,it is possible.If you take example of partial delivery then say for example one delivery contains 10 items.Out of whixh I have delivered 4 yesterday and 6 today.This is done via creating transfer orders.Then two material documents will be created at time of PGI but they will refer to same delivery number.
    Reward points if useful
    Regards,
    Amrish Purohit
    Message was edited by:
            AMRISH PUROHIT

  • Material Document Number Ranges

    Hello Friends,
      We have a business requirement to differentiate the material document number ranges.  In our process, we have intercompany and third party scenarios and the requirement is that system has to determine different number series for third party goods issue and intercompany goods issue.  Currently as per standard, system deriving the unique number series for intercompany and third party goods issue since th event type is WL.
    Kindly provide your inputs on how we can differentiate the number ranges.
    Thanks in advance
    Best Regards,
    Goutham

    Hi,
    You could try to make it through the transaction code following  the process as below:
    First u need to create seperate document type in OMR4 or OBF4, then create a new number range in OMBT assign your new number range to new created document type then in T. code OMBA assign new created document type to the transaction code so whenever u will create document with this Transaction code u can get new number range.
    I hope this helps!
    Best Regards,
    Arminda Jack

Maybe you are looking for