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.

Similar Messages

  • Use of SAVE_TEXT in customer exits / BADI for purchase order

    Hi All,
    I am trying to save some long text by using SAVE_TEXT function module in a badi implementation for purchase order header text. The same is working fine if i try to update the PO header text via a report. But if i try using badi (the code is written in a PAI event for the BADI), then though the text transfer and save is successful during the code excution, but for the first time when i add any text its not visible in ME22N tcode. Since its an online event. But when i double click on that editor and the sap script editor gets opened. then i press back button, the text is appearing on the same small screen edtor . after this any number of time i edit or delete text, the save_text function module works fine.
    My issue is why for the first time always i have to double click on the editor to open the sap script editor. I have also included commit_text in this case after save_text FM.
    the requirement here goes like this. in one tab for PO header the user will enter some number (This is a customizing screen implemented through badi.) and the corresponsing discription should appear when user clicks on text tab in po header screen (me21n / me22n).
    Kindly help.
    Thanks
    Mamata

    Hi  mamata rath
    I have solve the problem which similar to yours.  the code which is as the following
    DATA: textline TYPE tdline,
            name TYPE c LENGTH 70,
            glines TYPE TABLE OF tline,
            gline  LIKE LINE OF glines,
            ls_header TYPE thead.
         CONCATENATE ch_eban-banfn ch_eban-bnfpo INTO name.
             ls_header-tdobject = 'EBAN'.
             ls_header-tdname = name.
             ls_header-tdid = 'B01'.
             ls_header-tdspras = sy-langu.
             CALL FUNCTION 'SAVE_TEXT'
               EXPORTING
    *           CLIENT                = SY-MANDT
                 header                = ls_header
    *           INSERT                = ' '
    *           SAVEMODE_DIRECT       = ' '
    *           OWNER_SPECIFIED       = ' '
    *           LOCAL_CAT             = ' '
    *         IMPORTING
    *           FUNCTION              =
    *           NEWHEADER             =
               tables
                 lines                 = glines
               EXCEPTIONS
                 ID                    = 1
                 LANGUAGE              = 2
                 NAME                  = 3
                 OBJECT                = 4
                 OTHERS                = 5
              IF sy-subrc = 0.
                  CALL FUNCTION 'COMMIT_TEXT'
                    EXPORTING
                      OBJECT                = 'EBAN'
                      NAME                  = name
    *                ID                    = '*'
    *                LANGUAGE              = '*'
    *                SAVEMODE_DIRECT       = ' '
    *                KEEP                  = ' '
    *                LOCAL_CAT             = ' '
    *              IMPORTING
    *                COMMIT_COUNT          =
    *              TABLES
    *                T_OBJECT              =
    *                T_NAME                =
    *                T_ID                  =
    *                T_LANGUAGE            =
              ENDIF.

  • Material/Article number is hidden (?) in Purchase Order

    Hi,
    We are upgrading IS retail and now Material/Article does not appear in the item PO, it may be hidden, where is the setting? I am quite new in MM area.
    Many thanks !
    Chika

    Hi,
    Go to SPRO > Materials Management > Purchasing > Purchase Order > Define Screen Layout at Document Level > Here check for field selection groups; NBF, ME21N, AKTH, under Field Selection group "Enjoy fields", Mark 'Material' field as optional.

  • Issue in finding  GR posting date and quanity for Purchase order item

    Hi All,
    I have a requirement to list all PO items with Goods receipt posting date and quantity.
    So for each po item I have fetched Goods receipt posting date and quantity from table EKBE for movement type 101.
    But in transaction ME23n   in PO history tab it is displaying 3 records.
    2 are movement type 101 and 1 is movement type 102 GR quantity with minus sign.
    How  to find out Goods receipt posting date and quantity.
    what are the movement types we  have to consider.
    Thanks,
    Jwala

    movement type 102 is for GR for PO reversal that is why the quantity is negative.

  • Need material document number

    Dear all,
        I have an issue.  Inorder resolve it i need run a run aset up in OL1BW using the material document number.
    I have the process order, period, plant and material, but i need to find the corresponding material document number. Can anyone help me how to proceed further?
    The datasource is 2lis_03_BF.
    Pls also diferntiate between material and materail document number.
    Thanks..
    Regards
    Santhosh Kumar N

    The source for 2LIS_03_BF, as Arun pointed out, are R3/ECC tables MSEG and MKPF.
    Material - Refers to the material number, or part number, that is being managed. Typically, the material on an R3/ECC system is an 18-byte generated number to identify it to the system and has an industry accepted part number (Manufacturer Part Number) as a conversion exit so that you can enter either on R3/ECC and get the correct material number.
    Material Document - Refers to the internal document used for tracking the movement of a material. Examples of material movements would be goods receipts and goods issues. MKPF is the Material Document header table and MSEG has the Material Document line items.
    To find the Material Documents, you're going to have to query the MKPF table in your R3/ECC environment to get the document ranges needed for the setup jobs that you plan on executing.

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

  • 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's range issue

    Dear Friends,
    We are  facing Material document number's range issue i.e. For year 2010, 5000202085 number  does not exist but higher number 5000202691, 5000203284 exists in system. 
    why the number 5000202085  is missing?
    I checked in the system for  relevant setting at tcode OMBT with year 9999 are okay.
    Can you pls help me in getting it resolved?
    Rgrds,
    Pradeep Jain

    I had the same question so I searched, that should always be the first step before posting a question.
    No points to me please as this answer is not from me!
    Search results show:
    Answer from: Mauro Bianchi  (SAP moderator)
    This issue with the internal number assignment occurs due to bufferingin the application server. Buffering increases the performance of theserver and documents don't loose their properties. Nevertheless, it may cause gaps in the internal number assignment and sometimes the numbers may not be chronologically assigned. As I stated before, this won't cause inconsistencies in the system and is usually not an inconvenient, unless you require sequential number assignment in your documents due
    to legal reasons. In this case, you'll have to disable buffering in the application server.
    in order to disable buffering Just access transaction SNRO and enter the Object type MATBELEGhttp:// Number Range for Material and Phys. Inventory Document In change mode, in the menu bar, please, follow the path:
    Edit -> Set-up buffering -> No buffering
    Check note 62077 which describes this issue in detail

  • 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

  • Material Document Number range for 2011

    Hi,
    As per standard practice we need to reset the number range for material document for calendar year 2011. New Number range will be effective from 01.01.2011.  Please let me know the below -
    1.     Step by step process for Number range assignment for Material document (GR / GR / Transfer posting) for 2011
    2.     Can we define Material document number rage financial year wise (Apr to Mar) like other FI documents number range? This issue is raised by finance dept. IF yes what will be the process?
    At present Number range assignment for our company is showing Year as 9999, from number 5000000000 and to number 5000000000
    Whether it is mendatory to re-ser number range.
    Thanks,
    Ranjan Kumar
    Edited by: Ranjan.pearl on Dec 29, 2010 2:51 PM

    Number ranges for Material document are maintained in OMBT.
    But there is no need to maintain different number ranges for material document as same as financail document. Financial documents are year based whereas material documents are not.
    Also if you are maintaining the material document number ranges as per year specific, then also same document number cant be used. But in case of financial document, the document number can be same i.e year specific.
    Different number ranges for Material Document :-
    Then assign the specific interval for a specific year like
    Year      From Number           To Number
    2001      0100000000     0199999999
    2002      4900000000     4999999999
    2003      5000000000     5999999999
    2004      0200000000     0299999999
    Still any queries, revert back.

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

  • 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

Maybe you are looking for