Link Sales Order Schedule Lines to Delivery

Hi we have a custom report we use to gather all the inventory information, as well as open orders and deliveries.  We are running in to a a bit of a snafu when it comes to the order's schedule lines.  It seems we can not find a good link between the delivery and order's schedule line for the sales order item.  Any one got some thoughts?  Thanks.
-Larry

Hi Larry,
The link are there in standard tables.
Depending on the types of information that you want to gather from Sales Schedule Line, you can use the below logic:
1. Give your program selection screen for VBAK-VBELN (optional), VBAK-AUART (optional), VBAK-VKORG (mandatory) and VBAK-AUDAT (mandatory).  Give as much selection possible to narrow down the search and so that the program can run more efficiently.
2. Based on selection screen input + VBAK-VBTYP = C, get all VBAK-VBELN.
3. Where VBAP-VBELN = VBAK-VBELN, get all VBAP-POSNR, and for information at Sales Line Item, get all respective VBAP-MATNR, VBAP-KWMENG and respective VBAP-MEINS, VBAP-WERKS and VBAP-NETWR. Store in Z-table.
4. Where VBEP-VBELN = VBAP-VBELN, VBEP-POSNR = VBAP-POSNR and VBEP-ETTYP = XX (Schedule Line Type - you do not want to retrieve all types. Name only a few.), get all VBEP-EDATU, VBEP-VBEP, VBEP-BMENG and VBEP-LMENG. Not forgetting also VBEP-WADAT if u require.  For 3rd Party Sales, Requisition number can be obtained from VBEP-BANFN.
5. Where all data are obtained, populate in ALV for respective Sales Order and group accordingly. ABAP will know what to do.
6. Where LIPS-VGBEL = VBEP-VBELN and LIPS-VGPOS = VBAP-POSNR, get all LIPS-VBELN.
7. Then gather all your required fields in LIKP and LIPS table accordingly.
Hope this helps.
Thanks.
Rgds.
Edited by: PKW on May 4, 2010 12:21 PM

Similar Messages

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

  • 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

  • Is there a DIRECT link between SD schedule lines and delivery lines?

    Is there a direct link (db table) between schedule lines on a sales order (VBEP) and the delivery lines (LIPS)? 
    Is there a function module to retrieve the data?
    Example-
    One order line with 3 schedule lines.
    Each schedule line is for 2 units (total of 6 units).
    Three deliveries made.  1st is for 2 units, 2nd is for 1 unit (backorder), 3rd is for 3 units.
    You can use document flow (table VBFA) or examine the SD document in the delivery line (LIPS) and link the delivery line to the order line.  The schedule line already references the order line.
    I am using math to decrement the schedule lines used and make the link between VBEP and LIPS.  It works fine.  I need four records back....
    1st schedule line for 2 units uses delivery 123
    2nd schedule line for 1 unit (partial) uses delivery 124
    2nd schedule line for 1 unit (partial) uses delivery 125
    3rd schedule line for 2 units uses delivery 125
    Like I said, it works. Just wondering if I missed a more direct link.

    As far as Db link is concern , I don’t remember exactly , but 3 years before I had written a report which see Sales order schedule lines and devilry note lines against sales order.  If you see process wise…. when ever you create PO ( production order you assign some qty using 101 movement type .. and against production order you also give sales order . When you do delivery ( run seclude run ) it delivers against that material number , its movement is 601 ...
    but I remember there’s a link between these tables, VBAP,VBFA AND VBEP , LIPS ...  against every sales order you can see sales invoice ( VBRP,VBRK) and you can also see your delivery note number in document flow .
    I hope this’ll give you some guide line, as right now I can not tell you the exact business process but I remember I written a report in SD 4 years before , in which they required Delivery against production order and sales order ... One more thing you also have production order reference on delivery item number. ( field :Empst ) . I think in my project they were maintaining this field .
    Thanks

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

  • 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

  • Creating Outbound deliveries based on the sales order schedule lines

    Dear all.
    Is it possible to create outbound delivery documents based on the sales order schedule lines?
    Eg:
    Let's say I have sales order line item 10 with below mentioned requested delivery dates in its schedule line level.
    30.07.2009
    10.08.2009
    20.08.2009
    30.08.2009
    Will it possible for me to create different deliveries for those 4 schedule lines individually? I should be able to create 10.08.2009 delivery without clubbing 30.07.2009 delivery with it.
    Appreciate your help!

    I'm not sure because I'm not before SAP but try transaction VL10E that is to create delivery for schedule lines. I'm not sure what are the split criterias.
    Please check OSS note 113411 tha has many OSS note reference in this subject.
    Regards,
    Csaba
    Edited by: Csaba Szommer on Jul 29, 2009 2:38 PM

  • 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

  • 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

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

  • Material availabity date showing incorrectly in sales order schedule line

    Hi ALL,
    In Sales order Schedule line(after clicking shipping i.e displaying bottom of the screen)  material availabity date is coming incorrectly . In my material in mrp2 view i selected proceument type as F and i gave planned delivery  time as 19 days and GR processing days as 1 . suppose if i am putting sales order as on today 9-6-2010 it should show material avaialbity date as
    7-7-2010 but it is showing 10 days more (excluding saturday and sunday) . So please give me suggestion where to check in the program SAPMV45A.
    Regards
    R.Vijayakumar

    Check to see if your pick, pack,transportation planning lead time etc are also being included.

  • 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

  • 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

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

Maybe you are looking for