Getting Sales order -Schedule line field , Delivered Quantity ( VSMNG ) ??

Hi...
I need to use the Delivered Quantity present in a sales order at schedule line level.
This field can be seen if we, enter a sales order in VA02 and click on the Item and then click on the 'Schedule Lines' tab... i need to know.. how do i fetch the field 'Delivered Quantity' present there....
If no values are present .. then it means.. no delivery has been done for that material........
The F1 or Techinical help points to the field VBEPD-VSMNG...... and i found that this field is calculated at runtime in the function module RV_SCHEDULE_CHECK_DELIVERIES.....
Can someone please tell me... how do i fetch this field ...or calculate this field..... for my requirement.....
Regards.....

Hi.
You can use the function module RV_SCHEDULE_CHECK_DELIVERIES to get the delivered quanity corresponding to schedule line item  in sales order.
Please refer below code:
ie3mdpslx-delnr is sales order numer
ie3mdpslx-delps is line item.
internal table tl_da_vbep has got field VSMNG which is the delievred quantity for each line item
  SELECT * FROM vbfa
    INTO CORRESPONDING FIELDS OF TABLE  tl_xvbfa
    WHERE vbelv = ie3mdpslx-delnr
    AND posnv = ie3mdpslx-delps
    AND vbtyp_v = 'C'.
    SELECT  * FROM vbup
    INTO CORRESPONDING FIELDS OF TABLE tl_xvbup
    WHERE vbeln = ie3mdpslx-delnr
    AND posnr = ie3mdpslx-delps.
    SELECT * FROM vbep
    INTO CORRESPONDING FIELDS OF TABLE tl_da_vbep
    WHERE vbeln = ie3mdpslx-delnr
    AND  posnr = ie3mdpslx-delps.
    SELECT  * FROM vbap
    INTO CORRESPONDING FIELDS OF TABLE tl_xvbap
    WHERE vbeln = ie3mdpslx-delnr
    AND  posnr = ie3mdpslx-delps.
    CALL FUNCTION 'RV_SCHEDULE_CHECK_DELIVERIES'
      EXPORTING
        fbeleg                  = ie3mdpslx-delnr
        fposnr                  = ie3mdpslx-delps
      TABLES
        fvbfa                   = tl_xvbfa
        fvbup                   = tl_xvbup
        fxvbep                  = tl_da_vbep
        fvbap                   = tl_xvbap
      EXCEPTIONS
        fehler_bei_lesen_fvbup  = 1
        fehler_bei_lesen_fxvbep = 2
        OTHERS                  = 3.

Similar Messages

  • VL01N does not to pick Sales order schedule line quantities

    Hi,
    I need to get Sales order schedule line quantities into VL01N when creating a Delivery document. Currently irrespective of the schedule line size quantity the existing stock quantity is picked into VL01N.
    Is there anyway to get this done? doe it require a user exit modification or cna this be done via IMG.
    Thanks & Rgds,
    Pradeep
    Edited by: PRADEEP GUNAWARDANA on Aug 1, 2009 5:06 PM

    Hi DB49,
    Thanks for responding.
    Let me clarify, the schedule line item i meant was, in my case this is an AFS scenario were we maintain size wise quantities.
    My issue being for example;
    Sales order line item 10 - Qty 1000 (sizes S - 250, M - 500, L - 250)
    Stock created in excess of this requirement, so size S - 1000, M - 1000, L - 1000 in stock
    In VL01N, when creating the DN for line item 10, it picks the Quantities in stock (which is 1000 each) ... instead of limiting it to the Sales order quantities of sizes S - 250, M - 500, L - 250.
    Hope this is clear ... please advice.
    Thanks,
    Pradeep

  • How to control not to confirm quantity in sales order schedule line

    Hi,
    We have a problem with confirmed quantity in sales order schedule line.
    When I reject a position in a sales order, confirmed quantity still remains with quantity ( diferent to 0).
    I need in some cases that system not to confirm quantity in schedule line at item level.
    I've tried to do this with a new routine in OVB8 transaction, but it didn't work.
    Could you help me? How can I avoid the system to confirm quantity in a sales order item?
    Thanks in advance....

    Hi Lakshmipathi,
    I'm sorry. The rejection was a bad example.
    I need, in some cases, that the system doesn't confirm quantity in sales orden item. We have a custom field in sales order item and we need to confirm with 0 quantity , when that field has a specific value.
    Due to that field is a custom field, I need an exit, or rutine, or .. i don't know...to inform a standard field too ( delivery block, rejection...) something to get confirmed quantity to 0.
    I've tried with rutine in OVB8. But It didn`t work
    I've tried with delivery block, but with this all items in sales order, confirms with 0. I need at item level.
    Thanks

  • Sales order schedule line quantity update

    Hi
    I'd like to know if there is a FM to update the Sales order schedule line quantities.
    In particular, the fields in VBEP:  WMENG, BMENG, LMENG, CMENG.
    Thanks.

    Hi Lily,
    Can you please tell us how you updated BMENG using the BAPI BAPI_SALESORDER_CHANGE?
    Thanks,
    Vitz.

  • Sales Order Schedule Lines getting updated

    Hi,
    In my system when I am changing the delivery date of  'AB' confirmation in the Purchase order Item level confirmations, the corresponding  Sales Order' schedule line is also getting updated with the delivery date.
    So, my question is is this a standard SAP functionality or this fuctionality has been implemented through BADI, Exits etc.
    Regards,
    Rachit

    Rachit,
    This is standard SAP behavior. In 3rd party sale process, the changes done to PO (qty, dates) are updated automatically in the sales order.
    TW

  • Interesting and an  imporatant issue at sales order schedule line.

    hi all,
    interesting and an  imporatant issue at sales order schedule line.
    i created a sales order with 10 qty.and the system proposed a two schedule lines.
    let's say to order created date is 27.11.2008.and the requested delivery date is 27.11.2008.
    but the stock is not available today then the system proposed two more schedule lines apart from the 27.11.2008.so now there are three schedule lines like below.
    schedule line date                      Material availabilyt date   delivery date                   
    27.10.2008 with zero quantity.     
    28.10.2008 with 5 qty.                28.10.2008                     29.10.2008
    02.10.2008 with 5 qty.                02.10.2008                     03.10.2008
    now the delivery and pgi already for the schedule line 28.10.2008.
    then when i run the availability check on 01.11.2008 system is over writing the material vailability date as today at the scheduleline number two.
    now i can able to view only two schedule lines only.
    schedule line date                      Material availabilyt date   delivery date                   
    28.10.2008 with 5 qty.                01.11.2008                     29.10.2008
    02.10.2008 with 5 qty.                01.11.2008                     02.11.2008
    now my concern when we reschedule the avalability check it should notchange the Material availability date of the schedule line which i already delivered.
    Regards,
    sheshukumar

    can any one repsond for this.....

  • Difference between sales order schedule line and item level data

    Hi All,
    Could you please let me know what is the difference between sales order schedule line and item level data?
    Thanks,
    Ramya

    Hi Ramya,
    Sales order schedule line contains del date, order qty, rounded qty, confirmed qty, delivery qty, schedule line category, purchase requisition etc.,  ie It contains the full details of sales order data with respect to the scheduled line of delivery.  The total quantity of a sales order item can be subdivided into schedule lines that contain the various subsets with the corresponding delivering dates.
    Sales order Item level data contains details of the item in the sales order like material code, net price, net value, UoM, PO details, reason for rejection if any, material group,billing date, plant etc., ie this
    contains the full details of item irrespective of scheduled line.
    Regards,
    R. Senthil Mareeswaran.

  • Complete MRP status according to Sales order schedule line data

    Dear All,
    Please help me to get technical configuration releted to
    "complete MRP status according to Sales order schedule line data"
    or MRP w.r.t. Schedule line
    Please send fields and table and logic specification .
    Thanks & Regards,
    Ashish Gautam

    You can use following Fm for change sales order
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument     = p_vbeln
        order_header_in   = s_order_header_in
        order_header_inx  = s_order_header_inx
        behave_when_error = 'P'
      TABLES
        return            = it_return
        order_item_in     = i_order_item_in
        order_item_inx    = i_order_item_inx
        schedule_lines    = i_sched
        schedule_linesx   = i_schedx.

  • Manually Enter the Sales Order Schedule Line

    Dear All,
    I have a requirement where Sales Order will be created by Customer Service with Quantity and customer requested delivery date.  Subsequently Planning department will go to the sales order schedule lines and enter manually the delivery date and confirmed quantity (multiple schedule lines) based on the stock/availability.  They also need to do some changes in the shedule line if required.  But when I try, the manually entered schedule lines are disappeared.  Could any one advice how to set this up?
    Thanks,
    Regards,
    Venkat

    Hi Venkat
    A schedule line gets grade out because this has been determined . through schedule line determination. . Now in the shipping data tab you can change the schedule line tab if you want .  manually you can change the request delivery date also. 
    But it is not advisable to change the schedule line because again the affect of availability check will vary.
    But can we know for what purpose you want to change the schedule line when you create the sales order. Any reason .For what purpose you are going for that customization ?For what purpose?
    Regards
    Srinath

  • Sales Order Schedule line not populating in the Production order

    Queation: Is there a way to tell the system to look at the sales order, line item AND schedule line. It is displayed in MD04 but it doesn't carry over to the Production Order. We are a MTO and this information is relevant in a number of ways. 
    Please Help.

    Vickie,
    If you are using MTO scenario then when you run the MRP for the material, it will create a planned order for that sales order based on the dates calculated from the sales order schedule line (Shipping tab)...
    So now when you convert the planned order to production order, all the sales order details will get copied.
    try and revert back.
    Swapnil

  • Sales order schedule line quantities in decimals

    Gurus - Required your help to resolve the following scenario.
    I'm facing with the problem where schedule lines of a sales order allocated with decimal quantities even though materials with UOM as EA(Each). For example Material A of sales qty 13 has the schedule lines allocated as 11.960 and 2.040. The delivery has been created as per the schedule lines with qty 11.960 and 2.040 and it has been pick/packed and delivered to the customer. Now, while issuing goods for the delivery, received the error message as <b>"Serial number management only allows whole numbers".</b>
    Can anyone provide what are the possible ways to round the delivered qty and issue the goods, when the delivery is complete?

    Sree - Question 1 - Why would you deliver the product and then try goods issue it (In general ;)...anyway....I know, a lot of companies do that way....
    Question 2 - How much exactly did you ship out, surely must not have shipped products in decimals, since you've EACHES defined and not KGs....or LBs...
    I would suggest finding out the correct quantities shipped out and then cancelling this delivery document....you can then go on to modify sales order schedule line accordingly and then process it again..."WHAT ABOUT PICK PACK DETAILS"....before cancelling this delivery doc out..capture the packing details (HUs) and then apply them to the new delivery doc... if you are using external system for packing HUs.....process the IDOC (or file etc) using the new delivery doc number....
    Hope you got the direction )
    Thanks
    Nikhil

  • Sales Order schedule line from CN to CP

    Hi,
    When i  update the sales order schedule line from CN to CP , the quantity is not showing in the MDO4.
    Can any one help me.
    Thanks in advance
    Suresh S

    Once the schedule line category is changed to CP,  just hit the enter key and save.  Now check in MD04
    thanks
    G. Lakshmipathi

  • Mapping between Sales Order-Schedule-Line and Delivery-item

    Hi together,
    I want to extend the Datasource 2LIS_12_VCITM (Delivery-number, -item, Order-number,-item is available) by Sales Order Schedule Line.
    Could not find any ERP table (VBEP and LIPS allow a mapping only on item level) for the mapping between Sales Order Schedule Line and Delivery item yet. The use of the extractor 2LIS_12_VCSCL for the extention (e.g. infoset) afterwards is no option.
    Thanks for your help in advance!!
    Assign full points!!
    Sven

    Hi Reddy,
    thanks for your answer.
    I know that I have to add this field.. but the problem is, how to fill this field. I don't know how to map the delivery-item with the schedule line-item.

  • Blocking RdA creation from Sales Order Schedule Line

    Hi Gurus,
    please do you know if there is a way to block the RdA creation from Sales Order schedule line, for TAS item category? I tried with Header Delivery block without quantity confirmation but even if quantity on schedule lines are not confirmed, RdA is created anyway.
    Thank you very much
    Kind Regards
    Andrea

    thank you

  • Link between Prod Order and Sale Order schedule line

    Dear all,
    Ours is a MTO (81).
    In Scheduling Agreement / Sale Order , there are multiple schedule lines for a single item .
    Production Orders are generated for every schedule line of the Item.
    The client wants to know (for a custom developed report) , against which schedule line of the Sched Agreement/ Sale Order, the Production Order is generated ?
    This Information can be seen in MD04.But  I am not able to fetch from the tables .
    The schedule line field (KDEIN ) is not updated in AFPO table & the order no (AUFNR) is not updated in VBEP table .
    Say,
    Sale Doc No : 42000506
    Schedule line/Dely date            Order qty          Prod Order No
    06.10.09                                    500kg               100170
    15.10.09                                    300kg               100171
    Pls give your valuable inputs.
    Regards,
    Sheik

    Hi,
    Only Sales Order No & Sales Order Item No is updated in the table.
    Whereas , I want to know the Sales Order Schedule Line no.
    Regards,
    Sheiki

Maybe you are looking for

  • Time enry collisions and wage type issues

    Hi Experts, We do not have holiday's embedded in our schedules due to the flexibility in when employees are allowed to take the paid time off and also due to our "flex" work schedules being more than 8 hour work days but the holiday benefit is an 8 h

  • How to populate cheque number in IDOC for ERP version ECC 6.0

    Hi I am using ERP version ECC 6.0. I have created a sequencial cheque lot in FCHI and assign payment method to it. But when i generate a payment run, Idoc is not getting generated. In proposal run log "IDoc type could not be determined for the IDoc"

  • 2 dead pixels near bottom after 2 months. replacable?

    In addition to the two new dead pixels near the bottom edge of my screen, i also have these two LCD issues with my MB: http://discussions.apple.com/thread.jspa?threadID=942825&tstart=0 and http://discussions.apple.com/thread.jspa?threadID=940945&tsta

  • Macbook Air or MBP Which performs better

    I'm considering the 13" MBP 2.9Ghz with 8GB 700GB HD vs the 13 in Air 2.0GHz (256GB).  Besides the boot time being faster on the Air vs. the MBP is there other benchmarks available to compare these two models?  I saw 15 retina and air benchmarks but

  • Java vitual machine source code

    Sorry for this requirement posted here.i want to know where i can get the java virtual machine source code.plz,tell me .thank in advance!!!