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

Similar Messages

  • Need info on badi or exit before creation of Material document number?

    hi experts,
    we have two systems one is general R/3(4.6 C) and another system is GTS (NW 2004)system.
    while creation of GR a check from R/3 is made to GTS through GTS plug in installed in R/3
    and after which the document number is created...
    now i need a BADI between the check is made in GTS and material document no. creation
    where i can throw a message by checking in R/3 LFA1 table whether the vendor is SPL check or not.
    for this i am using MB_DOCUMENT_BADI and the method is MB_DOCUMENT_BEFORE_UPDATE
    where i am querying the zfields from LFA1(R?3) for SPL check happened in GTS (this is updated in some other interface)
    if in this badi if any error message is populated it is directly going for dump..
    please suggest me what can i do..
    Thanks in advance
    S.Janagar

    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

  • Issue using material document number as dynamic bin for purchase orders

    Hi...
    We are currently using the material document number as a dynamic bin at receiving because we expect to have multiple receipts of the same purchase order.  The current setup has everything going into quality inspection, and an inspection lot creates for each goods receipt.
    When QM rejects parts to return to vendor, a 122 movement is automatically generated.  When this 122 movement generates, the WM stock overview shows a negative balance using the material document number of the 122 movement as the dynamic bin.  The positive balance still shows as the material document from the 101 movement.
    Is there any configuration that can be set up to fix this issue or will SAP always take the most recent material document as the dynamic bin?
    Thanks for the help!

    I've tried the following configuration with movement type configuration:
    Quality stock in 902 storage type with material document as dynamic bin (requirement type configuration updated).  When a return to vendor is completed, there is a positive balance in 902 with the GR material doc number as the bin and a negative balance with the 122 material doc # as the bin. 
    I also tried configuring this with using GR-DOCK as a bin, and had the issue with the quant record being updated by the most recent inspection lot #. 
    I also tried using the PO as dynamic bin, and have the same error as above with the quant.
    Error:
    Error during creation of transfer orders for material document 0026001535
    Date: 05/16/2008
    Time: 10:52:23
    Post.chge not. HR1 2000000011
    No quants exist for posting changes
    So as according to the OSS note I should use material doc # as dynamic bin to avoid this...but when I set this up I get the issue with positive and negative balances in my stock overview because SAP uses the most recent material document number for each posting.

  • Asset number belongs to Goods receipt material Document Number

    Hi,
      I Created the Goods Receipt thru Internal Order, and i created the Goods receipt.
    After creation of asset, is there any way to retrieve the
    asset number belongs to Goods receipt material Document Number.
    Regards,
    Kiran.

    hi,
    use tcode ME2K
    A.

  • 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

  • Creation of material Documents for RMPM adjustments using BAPI

    Hi
    can any one help me Creation of material Documents for RMPM adjustments using BAPI...
    i should be grateful to you...
    advance thank you
    with regards
    venkat

    You can check MB_CREATE_GOODS_MOVEMENT which has mkpf as inporting parameter.

  • 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

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

  • 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

  • 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

  • How to get the Material-Document-Number wie the delivery-Number+Position???

    Hi,
    we want to connect mseg and likp+lips.
    But therefore we need the Material-Document-number concerning this
    delivery and in likp+lips isn't a Material-Document-Number!
    Could anybody help me to connect likp+lips with mseg!

    ok, NICE!!! But how should I get with these information a unique Material-Document-Number for a delivery+deliveryposition?

  • 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

  • Function Module to get Material Document Number

    Hi All,
    I want to get the Material Document Number based on the Material, batch ,movement type and plant. Is there any function module to achieve this, without going to MSEG table.

    check this might help you..
    Get Material Document Number and Material Document Year
    Regards
    Kumar

Maybe you are looking for

  • How do I share all my pix between my devices?

    How do I share my pix between Devices,desktop PC,Verizon cell phone?

  • HT2731 How can I creat an apple ID on 2nd hand iphone 4 without credit card???

    How can I creat an apple ID on 2nd hand iphone 4 without credit card???

  • Moving from EhP 4 to 6

    Hi experts - We are debating installing EhP 6 this year.  I just have a question I can't find an answer to anywhere and was hoping to throw it out to this group: We currently have business function X activated with EhP 4.  When we install EhP 6, will

  • Tabs in the workspace

    I would like to be able to work on my pages so that I can compare the codes of at least two pages if necessary. Now, my pages are stuck in the TABs at the top of the Dreamweaver interface. How can I change that so I can work with my pages two at a ti

  • RFQ to vendor

    Hi all, I need help on this issue. i send 3 RFQ to different vendor and each are sending different  quatation with 1-best price,but qtality is not good 2-price is good but quality is not as per standard but we can buy from that vendor 3-all parameter