Printing last delivery date in schedule lines for sales order

Hi!
We should create a sales order with more then one schedule line. This schedule lines are only for internal use (only to plan our production) and not for printing on the sales order paper. Only the last line is the real delivery date which should be printed on the sales order paper. Now I'm searching for a solution to print only this schedule line.
Have anyone a good idea?
Thanks
Markus

Hi, 
Select <required fields> from VBEP
into table <itab>
where vbeln = <order number>.
sort itab by posnr etenr descending.
read table itab into wa index 1.
contents of work area will have the last schedule line details of order.
Regards
Vinod

Similar Messages

  • Delivery dates in schedule lines is not changing in sales order

    Dear all,
    delivery dates in schedule lines on line item in sales order is not changing.delivery dates are different in schedule line of partial qtys.i have to do same delivery date on all schedule lines.
    Regards,
    Praveen

    Hi Praveen
    1. Schedule Line dates can be changed manually or by doing an availability check only.
    2. In case if you change the delivery date in the header it will not change automatically in the line item level.
    3. You need to do it manually only.
    kindly let me know more details.
    reg
    dsk

  • Ignore the number of schedule lines in sale order item when run MRP

    Dear All,
    I have a problem when I create production order (discrete manufacturing)
    When I create a sale order with one sale order item and 3 schedule lines for this sale order item.
    After that, I run MRP for this sale order, what I get is 3 planned orders for 3 schedule lines. It means that I will have 3 production orders for 1 sale order item.
    I want  create one production order for one sale order item whatever the number of schedule lines in sale order item.
    I think I have to config in MRP. Please help me.
    Thanks in advance

    Dear
    Check in OPPQ then look in Master data Availability Check & strategy for material also check whether u have maintained strategy for same material and see did u extended sales views for other material
    As u said 3 schedule lines for this sale order item check whether u have extended sales views for next material
    With Regards
    Pushpalas

  • How to deactivate schedule line in sales order

    hi friends,
    how can i deactivate the schedule line in sales order so that we can deliver the sales order after the schedule date. i can uderstand that system is not allowing before schedule date. but what if i want to deliver after that.
    Thanks in advance.
    Regards,
    Solomon

    hi,
    this is to inform you that,
    here you need to switch off:
    schedule lines allowed
    in schedule lines control data - remove or un check - availability/TOR
    In SPRO - Availability Check settings.
    but i have a question here:
    what is the business logic.
    do you want to do the same with all the sales orders or not.
    please update the forum
    then answer will be different
    balajia

  • How to compare delivery date in schedule lines and PGI in outbound delivery

    Hi,
    I want to create a report to monitor and compare different dates in sales and delivery process.
    One of my key figure is the comparison between date confirmed to the customer, that I can find in the schedule line of the sales order, and the actual goods issue date from the outbound delivery.
    But I can't succeed in making the link between delivery and schedule lines, means between LIKP and VBEP.
    Would you have any idea?
    Thank you.

    It seems there's no exact (table) connection / link between delivery item and schedule line item.
    Those who were searching for this thing (link / connection between delivery item and schedule line) were recommended to use FM "RV_SCHEDULE_CHECK_DELIVERIES".
    This FM calculates the delivered quantity for each schedule line, so it makes link between the delivery item and schedule lines - however if you check the code it's quite sophisticated...
    (if you put a breakpoint in the FM and display a SO in VA03, you can check how the parameters have to be populated with data).
    Schedule Line and Delivery Link
    Edited by: Csaba Szommer on Aug 5, 2011 12:03 AM

  • Delivery Date in Schedule Line

    Hi,
    The issue is:
    There is a 1 hour time gap between the System time & the local time.
    Say the PRD system date & time is 01.01.2011 23:30 & the local date & time is 02.01.2011 00:30.
    I have a scenario where there are 2 similar MTO sales orders.
    Sales order 1: Create SO with date & time 01.01.2011 22:30 & the schedule line for the item gets the GI date as 01.01.2011 as expected.
    Sales Order 2: Create SO with date & time as 01.01.2011 23:30, then the schedule line for the item gets the GI date as 02.01.2011.
    I am not sure if the time difference could be the reason for picking up the different GI dates eventhough both the orders were created on the same day 01.01.2011.
    Please let me know if i am missing something here.
    thanks & regards
    Narain

    For shipping point or route pick pack time, load time, transit time may be maintained totally 1 hr. Hence when you create the order at 23:30 the delivery date comes to next day.
    or
    Shift time may be maintend.
    Please check the both.

  • Issue with delivery date in schedule line ??

    Dear Members,
    I have created a sales order on 05/18/2009.I am getting delv date on schedule line as 06/12/2009, due to this problem, I am unable to create a delv. What should I do now ?/
    I have checked the availbility of material and material is available on 05/18/2009.
    Also Checked on config of order type in V0V8 T-code, and lead time in not maintained.
    please let me know, where should I check.
    Thank you.
    Madhu

    hello, friend.
    on the schedule lines tab, try changing the date to the present and see if delivery can be confirmed.  another way is to run the "check item availability" functionality in the sales order.
    on the document header, check what date is being proposed for "Requested Delivery Date".  this date could be proposed based on settings for the document type.  but since you indicated that there was no lead time maintained, you will have to check lead times in:
    1.  the shipping point (deliveries processing, picking, packing, etc.)
    2.  in the MRP views of the material master
    3.  transportation lead times (routes, etc.)
    4.  if externally procured, purchasing lead times
    hope this helped you.
    regards.

  • Regarding multiple schedule lines in sales order with same date

    Hi All,
    we create the Orders from RFC and the orders are going to Multiple Schedule lines for the same date.
    period       delivery date          ordered quan       confirmed quantity
    D     10/11/2007                10                    0
    D     10/11/2007                 0                     10
    here for the same date in first line it is not confirming and in the second line it is confirming the quantity for the same date.
    On what conditions it is possible??????
    Any one have the solution for this Please send it to me [email protected]
    Regards,
    Prasad

    Just check the schedule line details i.e go to schedule line---shipping. You will find that although the del. date is same in both the case but the timings were different e.g material availability time etc will be different in both these lines. So though the dates may be same its time difference that's causing the second schedule line.
    Reward points if useful

  • Schedule Lines for Sales BoM Material

    Hi All,
    When i trying to maintain the multiples schedule lines for the Sales BoM Material(Both Header and Item), system is not allowing to maintain it.Please guide me how to achieve this?

    Hi,
    "Schedule Line allowed" is enabled at Item category. The Requirement is If we have multiple schedule lines for BoM Line Item, we are not able to maintain. Suppose the Order Quantity is 50 Units and we need schedule line of 10 Quantity each month. We are not able to maintain. System takes the complete 50 quantity and do the availability check and proposes the availablity Date. We are not able to maintain different schedules manually.

  • Quantity clubbed for two schedule lines in sales order

    Hi,
    One finished item F1 having strategy 20. special procurement key as 40( to get from another plant) Its sales order is created for 20 EA on 6 nov.So one line item in sales order.
    Item availability check is done.in schedule line I can see system proposes available date as 9 Nov. I manually split the quantity as 13 EA on 10 Nov and rest 7 EA on 18 Nov.
    Now in schedule lines tab I can see three line items:
    date      confirmed qty
    6 Nov      zero
    10 Nov      13 ea
    18 Nov        7 ea
    MRP is run. system generated Stock Transport Purchase requisition of 20 ea dated 6 Nov.Qty and date both is wrong. Why quantity gets clubbed?? Why date is picked as 6 Nov?? I expected system to create two Stock transport purchase requisition of qty 13 dated 10Nov and qty 7 dated 18th Nov.
    Please guide if there is any config mistake in PP or SD side.
    Regards.

    PP,
    That is pretty standard.  If you do not meet the customer's requested date when you confirm the sales order, the system assumes that you sitll intend to make the attempt.  MRP will produce a proposal based upon the customer's requested date and requested quantity.
    If you want MRP to consider the confirmed dates/quantities, set the Fix Date Qty flag in the sales order item.
    http://help.sap.com/erp2005_ehp_05/helpdata/EN/93/744bcb546011d1a7020000e829fd11/frameset.htm
    If your standard business process is that you always wish to plan based on the confirmed date(s) rather than the requested date, you can configure to have the Fix Date Qty flag defaulted; in OVZJ.
    Best Regards,
    DB49

  • Duplicate records in PO scheduled line for framework order (going for dump)

    Hi all,
    i am creating framework purchase order with item category B. I am assigning external number range for PO. This PO is created with respect to expense PR. i just found there is duplicate records are appearing in schedule line for the same item.
    Then, after i save the PO, it is going for dump & sending some message to SAP inbox that there is duplicate records.
    later i can not find those PO in the system. Please let me know where i am doing mistake ? why duplicate records are appearing in PO scheduled line ?
    Thanks a lot
      pabi

    Hi,
    Once you please debug the particular program with the help of ABAPer. That may resolve your issue. Thanking you

  • Status of Schedule Line in Sales Order

    Which field in which of the tables shows the status of a schedule line for an item in the Sales Order?

    Hi pooja,
       In sales order schedule line table is vbep, vbeh and vbag.
    might be these are suitable table and field for u r requirement.
    VBEP-WEPOS ( Confirmation status of schedule line )
    VBAG-ABSTA ( Release Status ; current & old release )

  • Change delivery date in schedule line

    High gurus,
    I need some help. How is it possible to change the delivery date in a schedule line generate by APO ?
    Thanks.

    Hi Thanks for your reply.
    But the Tcode that you have mentioned appears to be in the SCM system and it calls an External Procurement Relationships report. My requirement is as follows:
    I have a date generated based on the Route Schedule id (VL51, VL52) and I need to sync this date with the Goods issue date of the Sales Order created. So whenever a sales order is created with the schedule line dates, i need to modify the dates generated by the system with my dates like I will have to call a FM or a BAPI by passing the new GI date and get the new set of dates and populate them on the Sales Order schedule lines screen.
    This scenario will happen for a GATP (Global Available to Promise) where by the ECC system does a remote call to the APO system to get the new dates. I will have to modify these dates with a new set of dates created either using a FM or a BAPI and populate them again on to the screen
    Thanks,
    Susanth Kumar

  • Default category of delivery date in schedule lines

    Hi,
    When i enter transaction ME38, select an item and click on delivery schedule to input schedule lines,
    by default i can see 'M' in field category of delivery date.
    'M' is displayed in all the records, whether a sch line exists or not.
    In another system of mine, when i try to enter sch lines thru ME38, by default all records show blank in category of delivery date.
    I want to change the default category of delivery date as 'D' or want to keep it blank , but not 'M'.
    How can i change this???
    Regards,
    Sneha
    Points will be awarded for helpful answers *

    Hi w1n,
    following is the setting in my system.
    EN     C     5     Calendar format
    EN     D     1     Day format
    EN     K     2     Planning calender
    EN     M     3     MONTH FORMAT
    EN     P     4     Period format
    EN     W     2     Week Format
    Still it is showing me M as default in all the lines.
    M                 06.2008                  32      R01.06.2008     
    M                 06.2008                  24      R01.06.2008     
    M                 06.2008                  24      R01.06.2008     
    M                                                                  
    M                                                                  
    M                                                                  
    Can u pls help me out ???
    Regards,

  • Delivery date in scheduling lines

    Hi all,
    I am using FM 'SD_SALESDOCUMENT_CHANGE' and passing all the desired fields, when passing fields for shceduling lines date is coming from header or somewhere else.
    Please suggest me in which field i have to put entry so that scheduling lines will show my dates.
    Regards,
    Gaurav.

    Hi,
    Pass the data in structure field ORDER_SCHEDULES_IN-REQ_DATE.
    Edit : Also pass 'X' into structure field ORDER_SCHEDULES_INX-REQ_DATE.
    Regards
    Vinod
    Edited by: Vinod Kumar on Jul 20, 2010 3:59 PM

Maybe you are looking for