Remaining Open Quantity on PO

Hi..
I would appreciate your help on how i can derive the open quantity for a given PO at the line item level. I cannot find any field in the EKPO table.
Also if there is batch specified for the material at the line item level on the PO , how i can retrieve the Batch number.
I would like if someone can explain what tables are linked and how it can be extracted.
Thanks and will reward the helpful answers.

Look for the goods receipts and invoice receipts in table EKBE.
Rob

Similar Messages

  • Delete Remain Open Quantity in PO Item

    Hi SAP community,
    My Order quantity in PO item is 100, and User have GR 90. Left with 10 units to be good receipt.
    Now user what to cancel the 10 unit, so that they can close this PO
    how can the user cancel the 10 unit remain open in po ?

    Hi,
    You have 2 options -
    1) If you want that this PO should not be considered for MRP run, then marks the Delivery complete indicator in item details level & save. In this case though the PO will not be considered for MRP, you will be able to post GRN.
    2) If you do not want to post any GRN for this PO, then change the PO quantity to the quantity of actual GRN made. In this case the PO will not be considered for MRP as well as you will not be able to post GRN.
    Regards,
    Prashant

  • How to change the open quantity of PO / STO using  BAPI_PO_CHANGE

    Hi Friends,
    How can I change the open quantity in ME22 using the BAPI BAPI_PO_CHANGE...
    I am getting some errors..The values I am passing to the BAPI are:-
    *-- Purchase Order document
        lv_purchaseorder = tbl_join-ebeln.
    *-- Calculate Open quantity
        lv_quantity = ( tbl_join-menge - tbl_join-wemng ).
    *-- Fills Schedule quantity to be processed.
        tbl_poschedule-po_item      = tbl_join-ebelp.
        tbl_poschedule-sched_line   = tbl_join-etenr.
        tbl_poschedule-quantity     = lv_quantity.
        APPEND tbl_poschedule.
    *-- Marks the Schedule quantity to be processed.
        tbl_poschedulex-po_item     = tbl_join-ebelp.
        tbl_poschedulex-sched_line  = tbl_join-etenr.
        tbl_poschedulex-po_itemx    = c_true.
        tbl_poschedulex-sched_linex = c_true.
        tbl_poschedulex-quantity    = c_true.
        APPEND tbl_poschedulex.
    CALL FUNCTION 'BAPI_PO_CHANGE'
          EXPORTING
            PURCHASEORDER                = lv_purchaseorder
          POHEADER                     =
          POHEADERX                    =
          POADDRVENDOR                 =
            TESTRUN                      = 'X'
       IMPORTING
          EXPHEADER                    =
          EXPPOEXPIMPHEADER            =
         TABLES
           RETURN                       = tbl_return
           POSCHEDULE                   = tbl_poschedule
           POSCHEDULEX                  = tbl_poschedulex.
    Is there any other required fields needs to be passed to change the open quantity..
    I am checking in ME22...
    The scheduled quantity is 20.
    Delivered quantity is 15.
    Open quantity is 5   and ( this field is in non-editable display )
    Delivery date  is 10.10.2002  ( which is in past )
    Now using this BAPI ..I want to post the remaining open quantity which is " 5 "
    How can i do this ?? Please help.

    Hi Hari
    Please check after making the following changes:
    *-- Marks the Schedule quantity to be processed.
    tbl_poschedulex-po_item = tbl_join-ebelp.
    tbl_poschedulex-sched_line = tbl_join-etenr.
    <b>tbl_poschedulex-po_itemx = 'U'. "c_true.
    *tbl_poschedulex-sched_linex = c_true.</b>
    tbl_poschedulex-quantity = c_true.
    APPEND tbl_poschedulex.
    If still you do not get the desired function working add the below code:
    tbl_poitem-po_item = tbl_join-ebelp.
    tbl_poitem-quantity = lv_quantity.
    append tbl_poitem.
    tbl_poitemx-po_item = tbl_join-ebelp.
    tbl_poitemx-po_itemx = 'U'.
    tbl_poitemx-quantity = c_true.
    append tbl_poitemx.
    Hope this helps.
    Kind Regards
    Eswar

  • Updating oOrders open quantity

    Hi Experts,
    I am creating a Delivery Receipt based on a specific Sales Order thru DIAPI. My problem is my Sales Order open quantity per line is not updating when its reference DR quantity is less than on the Sales Order document. Is there a property I am missing?
    Please help.
    Regards,
    Roger

    Hi Gordon,
    Here is my sub procedure that creates a Delivery from a Sales Order with its Draft - Delivery document.
    - The Delivery  document's lines will depend on the Draft-Delivery lines versus the Sales Order document's lines.
    Please help me on how will my Sales Order remaining open quantity will be updated depending on its matched item on the Draft-Delivery document's lines.
    public SAPbobsCOM.Documents PostDeliveryReceipts(SAPbobsCOM.Company company, SAPbobsCOM.Documents draft, SAPbobsCOM.Documents salesOrder, BusinessObjects.Shipment shipment, ref int result)
                SAPbobsCOM.Documents delivery = (SAPbobsCOM.Documents)company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes);
                delivery.HandWritten = SAPbobsCOM.BoYesNoEnum.tYES;
                delivery.DocNum = draft.DocNum;
                delivery.CardCode = salesOrder.CardCode;
                delivery.DocDate = shipment.ShipmentDate;
                delivery.UserFields.Fields.Item("U_smc_shipNo").Value = shipment.ShipmentNumber;
                int tmp_baseline = 0;
                for (int i = 0; i <= salesOrder.Lines.Count - 1; i++)
                    salesOrder.Lines.SetCurrentLine(i);
                    draft.Lines.SetCurrentLine(i);
                    if (salesOrder.Lines.TreeType != SAPbobsCOM.BoItemTreeTypes.iIngredient)
                        delivery.Lines.ItemCode = draft.Lines.ItemCode;
                        delivery.Lines.Quantity = draft.Lines.Quantity;
                        delivery.Lines.BaseEntry = salesOrder.DocEntry;
                        delivery.Lines.BaseLine = tmp_baseline;
                        delivery.Lines.BaseType = Convert.ToInt32(SAPbobsCOM.BoObjectTypes.oOrders);
                        delivery.Lines.Add();
                        tmp_baseline++;
                result = delivery.Add();
                return delivery;
    Edited by: Roger Arce on Jan 19, 2011 8:53 AM

  • Open quantity remains open even when delivery and goods issue is completed

    Hi gurus,
    We have so many deliveries in system where open quantity  in outbound delivery document  shows the quantity as open even though the goods issue is completed and invoice has been created and accounting documents are also cleared.
    I am not getting why it is happening. can someone please advise or throw some light on this.
    Vice versa they are showing up in MRP run as requirements.
    Thanks in advance gurus,
    Kind regards,
    Gopio.

    Hi Amol,
    I think i got the correct one which is RVV05IVB, and i had selected the shipping due date index, but it did not clear the open quantity, still it remained as open quantity.
    And the message i got after running the report is pasted below.
    Reorganization of SD Document Indices
    Reorganization sales document indexes with the following selection criteria:
    I EQ 80015593
    Delivery due Index
    How does that open quantity gets updated, or is there any control that we can deactivate as these are showing up in MD04 as sales requirements.
    Thanks,
    Regards,
    Gopio.

  • 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 gets blocked (SUS)

    Hi all,
    We had PO qty 4 each, GR was done for 4 each (through SUS), but in quality inspection 1 qty was rejected in quality inespection and 122 movement type, nw the vendor must be able to do ASN against the remaining 1 qty, but the system dont allow to do the ASN against the PO, it is showing confirmed quantity as 4 each..
    Same is the case with schedule lines the open quantity gets blocked..
    any suggestion.. please guide me..
    Regards,
    Abhishek
    MM/SRM

    Hi Abhishek,
    You can do a GR only when the vendor has sent an ASN.
    Regards,
    Nikhil

  • How  to configure for open quantity

    please help
    how the oder quntity will be come as deliver quanity and delivery quntity ll be come as open quantity
    for this reason my delivery is splited in to 2delivery each time and
    the schedules are coming auto matically
    see the notes regarding open quntity in delivery
    Quantity to be delivered in sales units
    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.
    Use
    The system calculates the open quantity by taking the original delivery quantity and subtracting the quantities from any deliveries that also refer to the item. If you create more than one delivery for an item, the system adjusts the open quantity in existing deliveries every time a new delivery takes place.
    Example
    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.
    so all the problem due to this open quantity
    so please tell me how the open qunatity will be same as the delivery quanity
    or ordered quntity
    regards
    subrat

    Hi Surbat,
    First we would like to know why you want the open quantity same as delivery quantity or Sales order quantity?
    Regards,
    Amrish Purohit

  • 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

  • I've downloaded the Creative Cloud, once completed the creative cloud window pos up with spinning whell in center then the entire window disapears. How do I get it to remain open so that I can download programs needed.

    I've downloaded the Creative Cloud, once completed the creative cloud window pos up with spinning whell in center then the entire window disapears. How do I get it to remain open so that I can download programs needed

    right click the executable > click 'run as administrator'.

  • 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

Maybe you are looking for

  • Java If/Then/Else Statement

    Hello, Just wondering if it is possible to call one java file from within another. I'm thining wiht an if.then/else statement similar to If x==true then run file1.java else run file2.java any examples of this, or if it is even possible would be appre

  • Unable to rename topic files in Robohelp

    We're translating Framemaker > Robohelp integrated project into Chinese, and as part of the process, we rename the Chinese topic file names to English so that the Webhelp output works on our chinese web site. This process has worked well, except we a

  • Time Machine Error: "An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk."

    I have a MacBook Pro 2.8 GHz Intel Core 2 Duo with 4GB, 500GB HDD, running 10.8.2 My computer as been running slow and fearing my HDD might die. I bought a brand new 1TB G-Drive from Apple yesterday and started my back up. It gets to just over 22GB b

  • Upgrade from Mac OS X 10.6.8 VM to mountain lion failed

    I purchased Snow Leopard 10.6.3, created a .iso and installed in on VMware Workstation 9 without any issues.  I upgrade to the latest 10.6.8 since that was the required release to move up to Mountain Lion 10.8.3. I purchased the Mountain Lion via App

  • New Intel Mini's Optical Audio

    I am thinking about upgrading my current mini to the new Intel Mini due to the fact that it has optical audio. My mini is connected to my home theater and I want to take advantage of the digital sound. Here's my question: Q: Does this new Intel Mini