Negative opening quantity in MB5B

Hi,
In MB5B I could see some quantity in -ve as opening quantity.
I have checked in MB51 , but there has been no posting of -ve quantity .
Also there is no customizing setting maintained for allowing the posting of -ve quantity.
Can anyone let me know, from where this -ve quantity could have come.
Thanks
Sameer

Hi
What is the stock value in MC.9? Is it negative? If not As Jurgen said Check the note 690027 to understand how MB5B works. I am pasting question number 5 from that note for your under standing.
5. Question:
Transaction MB5B displays negative stocks for the posting date even though the settings in Customizing do not permit negative stocks.
Answer:
The user starts Transaction MB5B and restricts the selection by the posting date. There is a negative stock and/or a negative value in the list output. If you start transaction MB5B without restricting the selection by the posting date, it displays correct values.
The system displays the negative stocks for the following reasons:
- The stocks and values are managed at period level in the system.
- In this document, the entry date differs from the posting date.
- The selection was restricted using a posting date that lies between the posting date and the entry date.
The following example explains the behavior of Transaction MB5B:
Entry date     Posting date  Period   MM document  Qty  Stock                                                                   0
DEC/01/2005    DEC/01/2005  12/2005  GR 001      +100
                                                                100
DEC/15/2005    DEC/15/2005  12/2005  GI 123      -90
                                                                 10
JAN/16/2006    JAN/16/2006  01/2006  GR 002      +350
                                                                360
JAN/16/2006    JAN/02/2006  01/2006  GI 124      -150
                                                                210
The goods issue MM document GI 124 was posted to the past but in the same period. In this document, the entry date differs from the posting date.
If, in Transaction MB5B, you restrict the posting date from JAN/01/2004 to JAN/15/2006, Transaction MB5B will show the following result:
Stock on JAN/01/2004 0
Receipts +100
Issues -140
Stock on JAN/15/2006 -140
Posting date MM document Quantity
DEC/01/2005 GR 001 +100
DEC/15/2005 GI 123 -90
JAN/02/2006 GI 124 -150
When you restrict the selection by the posting date, the database selection does not find the GR 002 goods receipt MM document. It is taken into account when calculating the stocks for the posting date.
If Transaction MB5B returns such a result, start the transaction again without restricting the selection by the posting date or restrict the posting date corresponding to the periods,for example JAN/01/2006 to JAN/31/2006.
Regards
Antony

Similar Messages

  • MB5B shows different opening quantity when we select diffferent Stock Type

    Dear All,
    I am trying to run report MB5B - Stock on posting date with 2 different Stock Types:
    - Storage Loc/Batch Stock
    - Valuated Stock
    But the report shows different opening quantity,total receipt, total issue, but closing quantity is ok.
    Could you pls tell me the reason?
    Thanks
    Cao Huy

    Hi,
    MB5B transaction is used to display the stock on posting date
    It is not possible to view at the same time both Valuated stock and special stock. This is radio button input control,so any one of the stock type only possible to display the material document.
    This report display the material and plant vise material document number and total stock and total issue etc for the example,
    Plant            1256  test plant
    Material         TH1
    Description    steel rod
    Stock on 01/01/2010                   0.000  PC
      Total Receipts                      29.500  PC
      Total Issues                         3.000- PC
    Stock on 12/31/9999                   26.500  PC
    SLoc MvT S Mat. Doc.  Item Pstng Date          Quantity BUn
    TEST 101   5000003029    1 12/23/2009            1.000  PC
    TEST 101   5000003039    1 12/31/2009            1.000  PC
    Regards,
    thiru

  • How to calculate the OPEN QUANTITY in delivery Duelist Report

    Hi Everybody,
       I have a query for finding out the OPEN QUANTITY for schedulines for a delivery.
    If for example the report is run for 2nd of February, it is necessary to
    determine whether there are delivery relevant schedule lines before the
    2nd.
    If yes, we need to know whether there is an open quantity to this line
    item.
    If yes, this open quantity is a negative deviation (we delivered not
    enough).
    If there is no open quantity it is necessary to determine whether for the
    earliest future to be deleviered schedule line, the open quantity equals
    the ordered quantity (VBEP-WMENG),
    if No the the difference between both values equals the positive deviation
    (we delivered more than requested)
    If the open quantity equals the ordered quantity there is no deviation.
    The problem is to calculate the open quantity and the SAP standard there is function
    builder used in SAP standard include MV45AF0O_OFFENE_WERTE_ERMITTEL, the
    function builder is called RV_SCHEDULE_CHECK_DELIVERIES'. But how could we use in this formulae in a Custom delivery report.
    Looking for your helpful suggestions.
    Many thanks in Advance,
    Mira Saikrishna

    Krishna....have a look in the below threads where there was a similar requirement..
    error while using BAPI_OUTB_DELIVERY_CHANGE
    change outbound delivery

  • Purchase Order Open quantity calculation.

    Hi All..
    I would like your help in finding out the logic behind calculating the open quantity for a given line item of a purchase order.
    Iam aware that i should go to the EKBE table to see purchase order history. Can someone tell me what are all the conditions i need to consider to calculate the Open quantity.
    Iam able to give a value E to field BEWTP (Purchase Order History Category) in EKBE and for all the recieved records iam adding the quantity for movement type 101 and removing the quantity for movement type 102 that finally gives my total GR qty. Then iam doing Original PO qty - GR qty to get the Open qty.
    Let me know if this logic is wrong or else is there any other conditions to consider.
    Appreciate your help and will reward.
    THanks.

    subtract the PO quantity EKPO-MENGE with the delivery quantity field EKET-GLMNG
    Thanks
    Seshu

  • Purchase order open quantity

    Hi,
    I am making one report for open purchase order quntity.But there is some problem
    In delivery shedule tab of  purchase order,If delivery date is in future, that purchase order quantity
    also shown by system as open quantity. So whether this open quantity is taken into account or not.
    So please guide me.
    Thanks and Regards
    Anil

    Hi,
    You can also user other transaction for open purchase order quantity.
    Enter ME2M t-code.
    Then select WE101 in selection parameter option and click on execute button.
    Then go in change layout option and take To Be Delivery quantity field in display mode.
    You can see open purchase order quantity.
    I hope it is useful for u.
    Regards,
    Mahesh Wagh

  • BAPI for PURCHASE ORDER with OPEN QUANTITY field

    Hi All,
    I wanted to use the BAPI_PO_GETDETAIL to get the Purchase Order details upon triggering from Warehouse management system,
    But the details required contains a field called OPEN QUANTITY...which is not used in this BAPI.
    I request to let me know if any BAPI exits for PO details having the structure for this field:Open Quantity.
    Am using SAP version 4.0B.
    If not exists please advise how to customize the existing BAPI to meet the requirement.
    thanks
    mahi

    Hi,
    Open quantity is a calculated field. I guess the BAPI gives the details of the delivery, so take the ordered qty and substract the delivered qty from that.
    Delivery data is EKET table.
    Regards,
    Ravi

  • SO open quantity

    Hi,
    I need to get open quantity for each sales order in my Z report. Is there any field to store it or i need to calculate it. How can i do that, Thanks!

    Hi..
    check the below code to get the open quantity.
    open quantity = ordered quantity - delivered quantity
    Fetch delivery information
          SELECT vbeln posnr vgbel vgpos lfimg
                       FROM lips
                       INTO TABLE gt_lips
                       FOR ALL ENTRIES IN gt_vbap
                       WHERE vgbel = gt_vbap-vbeln AND
                             vgpos = gt_vbap-posnr.
    *Compute delivered qty
                LOOP AT gt_lips INTO st_lips WHERE vgbel = st_details-vbeln AND
                                                   vgpos = st_details-posnr.
                  gv_lfimg = gv_lfimg + st_lips-lfimg.
                  CLEAR st_lips.
                ENDLOOP.
                st_details-open_qty = st_details-ord_qty - gv_lfimg.
    i guess you know how to get the ordered quantity for the sales order item.
    Award points if found useful.
    Regards
    Divakar

  • Material Confirmed quantity and Open quantity

    Hi All,
      I am working on a report where the user wants the material confirmed quantity and open quantity at the batch level. I know for open quantity VBBE-OMENG can work. Just need confirmation that this is the correct field. However for confirmed quantity I am not able to narrow it down to one field. I have the following fields as possibilities but not sure which is the right one.
    1) VBBE-VMENG
    2) VBEP-BMENG (This is the at the sales order level though. We need it at the batch level)
    Can you please let me know if i have the right approach here? The report has Material, plant, sloc and batch along with a bunch of other fields.
    Regards.
    Sid

    Hello,
    you should extract the quantities from all the deliveries selected for material and batch, and selecting only open deliveries.
    Use a selection like this:
        SELECT lips~MATNR lips~WERKS
               lips~CHARG lips~LFIMG
          INTO TABLE lt_lips
          from lips as lips
          INNER JOIN vbup as vbup
            on lips~VBELN = vbup~VBELN AND
               lips~POSNR = vbup~POSNR
         WHERE lips~MATNR = p_matnr
           AND lips~WERKS = P_WERKS
           AND lips~CHARG = P_CHARG
           AND ( vbup~WBSTA eq 'A' or
                 vbup~WBSTA eq 'B' ).
    Best regards,
    Andrea

  • How to find open orders and open quantity

    Hi abap gurus,
    i want to find the open orders with the quantity  means those orders for which we don't have goods issues(and partial deliverys is also possible). i get this scenario but i don't know how to start.
      i think i should go to VBUP table and get all the orders
      which have overall status GBSTA = 'A' OR 'B'.
      So from this i will get all the open orders but i need to find open quantity also .
      please tell me how can i find out and  which table do i need to use.

    You need to check between delivery line item table as well sales order line item table.
    Sales order Line item table : VBAP
    Delivery line item table : LIPS
    if order qty and delivery qty are same then there is no open qty if not then there is open qty.
    Thanks
    Seshu

  • Open quantity in Sales Order did not update after cancelling Reserve Invoice

    Client created Credit Memo with reference to Reserve Invoice but this did not update the open quantity in Sales Order. Client is using SAP B1 8.82 PL9. I tested this in SAP 9.0 and still same behavior. Is there a work around other than creating another SO?
    I checked Document Settings and "Reopening Doc by creating credit memo based on Doc" is enabled.
    Thanks in advance.

    Thanks for the reply. How will the client be able to make new reserve invoices from the SO? They are trying to make partial reserve invoices from the sales order. I already suggested to just change the quantity in the reserve invoice before adding. But I have doubt because the SO might close prematurely before they complete the quantity in the SO because open quantity is much less then the quantity in SO.
    SO Quantity: 100
    Open Quantity: 40
    Reserve Invoice 1: 60
    Reserve Invoice 2: 40
    SO closes before they can make Reserve Invoice 2

  • WM-production order-need change the open quantity in Transfer order

    Hi,
       I created the production order (order quantity 1000).  i did material staging and generated TR. .
       But i need to change the open quantity in transfer order . i need to create the partial Transfer order
        against TR..
       KINDLY SUGGEST ME
       WITH REGARDS
       Dinesh

    Hi Dinesh,
    TO for partial qty is possible.
    When you are doing material staging with 319 mov.type, you create a transfer order for partial quantity as follows:
    You first create a manual transfer order using transaction LT04.
    You specify the TR number in the intial screen and navigate to the detail screen, system shows the Open TR quantity and the proposed TO quantity. By default, both these quantities are equal to the TR quantity.
    However, when you create by clicing the "Create TO button" (the icon with a plus sign in the tool bar of LT04 screen), system takes you to another screen where it asks for the "Requested Qty" on the top of the screen.  Here you can modify the qty as per your requirement; then you can check and confirm the storage type and storage bin for source and destination stocks & save.
    It is important that you give the correct source storage type & storage bin that is having stock or otherwise system might give error message.
    System will create a TO line item with the entered qty and propose the balance TR qty as the 2nd TO line item. You can skip this 2nd TO item or delete it from the TO.
    Once again, if you click the Save button, system will save the TO with the partial quantity.
    The balance quantity will be available in the TR as open quantity and this can be seen in the header data of transaction LB03.
    Regards
    Prabhu

  • Open quantity in Deliveries

    Dear SAPer,
    in deliveries, every item has a delivery quantity and an open quantity. SAP explains the open quantity as "The quantity of the item that remains open for delivery. The open quantity includes the delivery quantity in the delivery that you are currently processing. The quantity is expressed in sales units."
    here's the senario,
    i created one delivery for a sales order with one item and 20 ton:
    no matter i enter 10t/20t/40t as the delivery quantity in delivery item, the open quantity remains as 20t and never change after both just saving the delivery and PGI.
    so my question is, will this open quantity in deliveries change and if so, how?

    Dear  Michael:
    Pls look at this example,you can get the answer.
    You create a sales order item for 100 pieces. During delivery processing , you create three separate deliveries that refer to this order item.
    1. Delivery #1 has a delivery quantity of 40. The open quantity is 100 pieces (the quantity still to be delivered, including the 40 pieces you already entered for this delivery item).
    2. Delivery #2 has a delivery quantity of 50. The open quantity is 60 (the original delivery quantity of 100, minus 40 from the first delivery , but including the 50 you are currently processing). In the first delivery, the system adjusts the open quantity from 100 to 50, to account for the delivery quantity in the second delivery.
    3. Delivery #3 has a delivery quantity of 10, to complete the original delivery quantity of 100. In the third delivery, the open quantity stands at 10 and the system adjusts the open quantities in the first and second deliveries to 40 and 50 respectively

  • Open Quantity in Scheduling Agrreement

    One of our client is not able to CREATE DELIVERY using a SCHEDULING AGREEMENT.
    Actually the problem is SA is not showing ANY OPEN Quantity on that Day. If we increase the quantity in Order quantity then the open qty is showing some quanity. and we could make delivery then..
    Can anybody give the reason of not showing any open quantity.

    Hi,
    whats about your cumulative quanity?
    which requirement type is used?
    Bye
    NL

  • How do know open quantity  for a  sales order  (patially  delivered)

    Hi  Gurus,
    I have requirement to  know  open quantity for  sales order and it was partially delivered.
    Any table  to know partially delivered qty of a material for a  sales order.

    Hi
    Check This Table  VBBE for open order quantity
    You can find open Qty like this
    Open Qty  = Delivery Qty (LIPS-LFIMG) - Order Qty (VBAP-KWMENG)
    Swamy

  • Sales order create/change line item with reference to contract - Open quantity not getting deducted for copied line item from the contract

    Hi friends,
    Please provide some valuable inputs for the following scenario:
    When a sales order line item is created(VA01) or changed(VA02) with reference to a Contract the open quantity is deducted in the contract which is a standard functionality. If the referenced line item is copied (custom enhancement to copy line item), then for the copied line item the open quantity is not getting deducted instead ATP quantity i.e. Available-to-promise is deducted.
    Any inputs on how we can fix this functionality i.e. deduct the open quantity from the contract for the copied line item?
    P.S. : Custom enhancement to copy line item is working fine, but open quantity is not getting deducted if the copied line item was referenced to a contract.
    Thanks,
    Sandeep
    Message was edited by: sandeep

    Sandeep,
    Yes, that was my original interpretation.  I was having a hard time believing that someone would ask such a question. 
    I guess, then, that you already know that you will have to add this logic to your enhancement. You should create your specifications and hand them off to a developer; ideally the one who created this enhanced solution in the first place.
    I do not provide advice in these forums about details of enhanced solutions.  Perhaps one of the other members will be more willing to do your work for you.
    Best Regards,
    DB49

Maybe you are looking for

  • CONSOLIDATED LIST OF A MATERIAL

    Dear all, I want a transaction in MM for below scenario. My requiremnet is i hev a matcodes say 2000021569,2000021748,2000057811.....etc now i want list report like below mat code          total order qty        total rcvd qty         bal recvd qty  

  • Cannot Connect, asks for password

    I just installed contribute 4, I had 3 installed previously. Well on my first load of it it asks me for a password? I never had to use one for contribute 3 when starting it up. As it stands I am now locked out of using contribute HELP!!

  • Setting z-index upon a panel?

    Hi, I am making a custom color picker component. Simply, when the user clicks a color box, color palettet should pops up over all other components. This is my color palette panel:         <s:Panel width="111" height="215" id="colorPalette"           

  • Macbook does not see time capsule

    I just purchased a time capsule to use as router an d backup. I connect using a DSL modem. I set everything up as instructed but could not find the time capsule using the time machine utility. I had to plug in an ethernet cable from time capsule to m

  • Bo xi vs BO XI r2

    what changes have been made from bo xi to  bo xi r2?