How do i get Delivered quantity in sales units

Hi all,
How do i get Delivered quantity in sales units, in schedule lines (SD - VA02).
I tried RV_SCHEDULE_CHECK_DELIVERIES, it not works.I m unable to find any table.
Please suggest ...
regards,
prasad gore

hi,
try this.
*       Fill Pending and Delivered Quantity          *
    SELECT *
                 from vbup
                 into table it_vbup
                 where vbeln = it_vbap-vbeln
                 and posnr = it_vbap-POSNR.
    READ TABLE IT_VBUP WITH KEY VBELN = IT_VBAP-VBELN POSNR = IT_VBAP-POSNR.
    IF SY-SUBRC EQ 0.
      IT_FINAL-lv_status = IT_VBUP-LFSTA.
    ENDIF.
    SELECT *
                 from vbfa
                 into table it_vbfa
                 where VBELV = it_vbap-vbeln
                 and POSNV = it_vbap-posnr.
    loop at it_vbap into wa_vbap where vbeln = it_vbak-vbeln.
      MOVE-CORRESPONDING wa_vbap to it_VBAPVB.
      append it_VBAPVB.
    endloop.
    loop at it_vbEp where vbeln = it_vbak-vbeln.
      MOVE-CORRESPONDING it_vbep to IT_VBEPVB.
      append it_VBEPVB.
    ENDLOOP.
    CALL FUNCTION 'RV_SCHEDULE_CHECK_DELIVERIES'
      EXPORTING
        fbeleg                        = it_vbap-vbeln
        fposnr                        = it_vbap-Posnr
*   FVERRECHNUNG                  = ' '
*   FS073_ALT                     = ' '
*   IF_NO_SORT                    = ' '
      tables
        fvbfa                         = it_vbfa
        fvbup                         = it_vbup
        fxvbep                        = it_VBEPVB
*   FVBLB                         =
        fvbap                         = it_VBAPVB
     EXCEPTIONS
       FEHLER_BEI_LESEN_FVBUP        = 1
       FEHLER_BEI_LESEN_FXVBEP       = 2
       OTHERS                        = 3
    IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT it_VBEPVB WHERE POSNR = IT_VBAP-POSNR.
      IT_FINAL-KWMENG_d = IT_FINAL-KWMENG_d + it_VBEPVB-VSMNG.    " COMPUTE DELIVERY QTY
    ENDLOOP.

Similar Messages

  • Getting delivered Quantity using ABAP Program

    Dear All,
    How can I get the delivered quantity against a sales order document (Orders in VA03).?
    Which tables are involved.? How can I  join the tables.?
    Regards,
    Aneel

    Aneel,
    You should take the sales order number and item number and find the corresponding lite item in the delivery. The field LFIMG in LIPS will tell you the quantity that is delivered.
    For sales order, you can use VBAK/VBAP
    For Delivery you can use LIKP/LIPS.
    Thanks,
    Vikram.M

  • How can I get order quantity for a contract

    Hi
    I can see ordered quantity on a contract screen (VA42/VA43) but would you please tell me in which table or tables this is stored or how I can get ordered quantities against a contract
    Regards
    Javed

    Dear Javed Ihsan      
    You cann't see the order quantity for contract, you can only see the target quantity for the contract.
    However you can even see the order quantity for contract but it will not have any value -(VBAP-KWMENG).
    You can only seethe target quantity for a contract-(VBAP-ZMENG).
    For the release order you have order quantity( VBAP-KWMENG)
    PLease check and revert
    Thanks&Regards
    Raghu.k

  • How can i convert the quantity of one unit to other unit in BI 7?

    Hi ,
    I have developed an RFC function module in SAP BW (BI 7.0).
    For this function module I have to populate material  number and  Quantity required and UNIT.Every thing working good. If the user forgets to enter unit  or enters other unit  where Quantity in ODS is not mentioned in terms of that unit.WE have to Convert the Quantity requested into the Qunantity that exist in ODS or DATA BASE  based on the unit of measure .
    Please suggest me how can I convert the UNIT of measure of quantity?
    Thanks,
    Suresh.

    I have to do this with conversion table /BIO/PMAT_UNIT.
    IN THIS TABLE I DON'T KNOW HOW CAN I CONVERT?
    REGARDS,
    SURESH.

  • Trying to connect iphone 4s to blackberry visor hands free unit.  In error told the phone to forget about this unit, how do i get it to recognize this unit?

    Cannot conect iphone 4s to blackberry hands free devise VM605.  Inadvertanly told the phone to disregard this devise.  How do I get it back so it will recongnize it?

    Check the manual. Made sure the device is in discoverable (pairing) mode. If it's not, the phone won't see it.

  • How can I get more detail information ( Sales Order ) of Reduction of PIR??

    Hi Experts,
    In our company,our customer want to see more information about the reduction process for the planned independent requirements.
    That means for example:
    First we create 150 pc planned independent requirement for material "ABC".Then we create a sales order for material "ABC" for 20 pc.After that we do the delivery for this sales order,post the goods issue. So after the outbound delivery, the  planned independent requirement for material "ABC" will reduced to 130 pc.
    Although in TCODE:OMP4,we have active history is updated when planned independent requirements are reduced by a goods movement. So in MD73 we can see the withdrawal quantity 20 pc for this planned independent requirements.And in md63 we also can see the withdrawal quantity (20 pc) for this schedule lines.
    But we can not see the detail information about the withdrawal quantity!!
    We can not directly know this withdrawal quantity is caused by which sales order???The sales order number???
    So I want to ask how can I directly see the detail information about the reduction of planned independent requirements??
    That means how can I directly know  this withdrawal quantity is caused by which sales order???The sales order number???
    Thanks for any reply!!!

    Dear Liu,
    check the material document posted in T Code MB51 for 601 movement.
    Here you can get the details regarding the customer,and check for the same material,customer combination in T Code VA05.
    Check and revert back.
    Regards
    Mangalraj.S

  • How can i limit the quantity in sales order

    Dear sd gurus
    how can i restrict no of items in sales order? ex:sales
    order has been created for 10 items and all the 10 items
    quantity should be 72 not more than that and system should
    not allow to enter the quantity.where we can configure for
    this.
    thank s
    venu
    Please search the forums before posting - see [rules of engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]. You have been warned before about this. 
    Edited by: Ian Kehoe on Mar 5, 2012 5:31 PM

    Hello,
    I believe your requirement is possible in SAP Standard.
    You will have to go for ABAP Development & apply a Exit in Sales Order.
    You can use Program MV45AFZZ & apply ehtier userexit_field_modification or userexit_move_field_to_vbak or userexit_read_document or userexit_save_document
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • How to update the Delivering plant in sales order

    Hi Guru's
    I have a scenario where the delivering plant(RV45A-DWERK) in the sales order overview is not updated.
    I have maintained the VD51 customer info record
    in customer master and also in material master.
    Even if i update manually in the sales order and then save it is not updating
    when i got va02 and check it is blank
    regards
    sphoorthi

    ***Hi,***
    ***As replied by many ,Plant is determined from CMIR/MATEIRIAL MASTER/CUSTOMER MASTER.***
    ***First check by maintaining plant  in CMIR and check whether it is determined in SALES ORDER?***
    ***Before that check in VOV8 in document type check the field "Read inford record",***
    ***then check by maintaining plant in Customer master,and check if determined in SALES ORDER?***
    ***then check by maintaining plant in material master and check if deterimined in SALES ORDER?***
    ***If still ,problem then u can check the user exits,***
    ***Thanks***
    ***Jai***

  • Total delivered Quantity field

    Hi,
    I am looking for a field that gives me total delivered quantities of an item of a sales order.
    Foe Example : sales order 1000 item 20 qty 30.00 ea
    two deliveries for this item
    Delivery 8000 item 10 qty 20.00 each
    delivery 8001 item 11 qty 10.00 each
    I want to know if there is a field which gives me the total delivered quantity 30.00.
    I am looking for something like the field in schedule lines tab of the sales order.
    There is a structure field (RV45A-VSMNG).This field is for Delivered quantity in sales units.
    Is this field directly available in a database table.
    Please help.

    Hi,
    I am looking for a field which gives me total delivered quantity by giving the sales order. LIKP and LIPS need delivery number as the input.
    e.g. sales order 1000 qty 30 ea.
    I need the delivered quantity for this sales order.
    If there are 2 deliveries for this sales order,
    delivery1 qty 10 ea
    delivery2 qty 15 ea
    Now the total delivered quantity is 25 for the sales order.
    I am looking for a field which gives me this field.
    With likp I only get the delivered quantity in a particular delivery which is not necessarily the total delivered qty for a sales order.
    Please let me know if there is a field for this.
    Tks a lot ..

  • Delivered quantity for each schedule line

    Hi,
    Our scenario is that we have an order for each order's each item we can have multiple schedule lines, when any of the schedule line is delivered the delivered quantity colum is updated, the schedule lines table in VBEP but the thing is it doesnot have the delivered quantity, system calculates it at runtime or may be it is keeping it in some other table.
    I hope some body can help in this regard.
    Thanks
    Khusro Habib

    It is a calculated value, not a value of a table field. Also, it may lead to wrong results if you don't pay attention to this description of the field here under in bold.
    Delivered quantity in sales units
    The quantity from the schedule line that has already
    been delivered.
    Use
    When there is more than one schedule line for an item,
    the system distributes the total delivered quantity for
    the item across the schedule lines according to the
    sequence of their delivery.
    Example
    A sales order item has three schedule lines, each with
    an order quantity of 50 pieces. You make two subsequent
    deliveries: the first for 20 pieces, the second for 60
    pieces. The delivered quantity for the first schedule
    line is 50 pieces, for the second 30 pieces, and for the
    third zero.
    If you delete the first delivery (20 pieces), the
    delivered quantity for this schedule line is still 50
    pieces. However, the system reduces the delivered
    quantity for the second schedule line to 10 pieces.

  • How to get available quantity

    Hi,
    I have two inventory organizations "RUI" & "RUG".I am doing "Int Req Intr Rcpt" trx type id 61 from RUG to RUI.I need to prepare a profit elimination report with the feilds.
    I need to display availabel quantity which was received from RUG and still in inventory.
    How should i get the quantity.If i do QOH,can't give guarentee that the quantity might have come from other organizations too...
    I need to run this report every alternative week to find out how much quantity still avialable and how much purchased from RUG over a period.Based on that i need to calculate profit elimination
    Plz suggest me

    it will be highly appreciated if you put details of how you got this info
    this will help forum and its members
    Kamal

  • Down Payment - Final Invoice Based on Real Delivered Quantity

    Hello all!
    My need is the following:
    The final invoice for a Down-Payment must in consequence of the real delivered quantity:
    Exemple:
    Sales Order: 100 Units for a total amount of 100u20AC
    Down Payment Request: 30% --> 30u20AC - So it miss 70u20AC to clear it.
    Now: complicated:
    Delivery: Only 50 units available and shipped.
    Final Invoice:   Amount equal to (100-30)*50/100 
    Any idea?!
    Seb

    Hello Petronella,
    you are right that B1 is not checking the total value of DP created from the Sales Order.
    The logic and checking procedure here is only between Sales Order -> Delivery/Invoice.
    DP Invoice is considered as transaction related to document the receipt of the money (parallel to the sales process). Between the moment of basing of DP to Sales Order it is still possibility to adjust Sales Order as there is no posting behind Sales Order.
    The question is what would be a checking  procedure in case that on Sales Order there is based Delivery and DP? What would be the system priority to take into a consideration?
    Regards,
    Martin Slavik
    Regional Solution Manager

  • Confirm Quantity in Sales Order

    at the time VA01 (create Sales order)
    in Schedule lines tab systems shows Confirm quantity for final goods item with confirm quantity which should not be happen .
    can anybody please how to customize for confirm quantity in sales order as we are working on make to order.

    The confirmed quantity will be picked based on the schedule line category u have choosed. So change the schedule line category to No material planning ( CN ).
    Schedule line category
    A classification that distinguishes between different kinds of schedule line. The category determines how the system processes the schedule line.
    Use
    The schedule line category determines, for example, whether the system passes on requirements to materials requirements planning (MRP).

  • Minimum quantity in sales order

    Hello friends,
    Can anyone tell me how to maintain minimum quantity in sales order, (Not Minimum order quantity of material master) as only maximum (target) quantity is maintainable in sales order at Item level? So after this development in sales order, one can enter two quantities (minimum and maximum) so that sale can be done between this quantity range.
    I know this is not possible without exits or developments, but please tell if someone has came across the same scenario which exits used by you.
    <b>Required Minimum Order quantity Field in Sales Order at item level like Cumulative Order Quantity in Sales Units (VBAP-KWMENG) at proper position in Transaction-> VA01-VA02-VA03.
    Program name: SAPMV45A Screen number: 4900 or wherever it is adjusted at item level i.e. Additional Data B Tab.</b>
    Thanks in advance
    Warm regards
    Amit

    Hi Prabhu Peram,
    I want to maintain a input field can you throw some light on the same.
    Regards
    Amit

  • How to remove EA in Quantity Key Figure

    Hi,
    I want to remove "EA" from the key figure  10EA (Billing Quantity in Sales Units).
    Can anybody help me please.
    Thanks&Regards,
    Rafi

    Is the EA a unit? whatever it is you could try and use the formula selection No Dimension NODIM(xxx) and this will return only the value.
    For more information on this you should search through the forums.

Maybe you are looking for