Delivery is delayed due to schedule line logic

Hi Experts,
I have encounter an issue with schedule line/ availability check logic.
We have a sale order# 17111730
Line item# 10
Material# C540H1MG (ordered quantity: 1)
Order was created on 06/24/2014 and on that very date  C540H1MG is available on that plant 1001 (more than 1000 quantity were available) but we have seen that delivery was created on next day although there is delivery creation batch job running every 10 mints interval and no problem found in that batch job.
As per our observation, it is found that :
There 3 schedule line were created for the same . For first schedule line delivery date is 06/25/2014 and for second one 06/27/2014 and third one 06/30/2014
But when we select the individual schedule line and go to shipping tab, it has been seen that schedule line#  got switched.
Schedule line# 2 has the MAD date as 06/25/2014 and delivery created on that date (but usually schedule line # should be 3 as it was created latest of all and deliver date was 06/30/2014)
Schedule line# 3 has the MAD date as 06/24/2014 (but usually line # should be 2 as it was created earlier than schedule line# 3 and deliver date was 06/27/2014)
Now my question is that once schedule line# 2 was confirmed then why another schedule line was generated through rescheduling batch job with a new MAD date and delayed the delivery and next question is why that schedule line# is getting switched?
FYI:
1.Changes done in schedule line was done by rescheduling batch job
2. Recently a config change was done in availability check (T.CODE OVZJ) we make availability check rule as "E"
For more details, screenshots with detailed explanation is attached here.
Really appreciate your quick response on this.

I don't think it is with the receiving server because almost 20% of our outbound email is experiencing this issue, and none of the recipients are seeing issues on their end from other senders.
I had already reviewed those two articles but wasn't able to resolve the issue.
One thing that worked on some of the domains was enabling "Use the External DNS Lookup settings on the transport server". It resolved some of the queued emails but they are being delayed again
today.
There is no gateway server. Can you elaborate on what you mean by "mail routing configured" - is there a specific setting you want to know about?
-Chintan

Similar Messages

  • Delivery date determination in the schedule lines

    Hi,
           I have a question on the delivery date determination in the schedule lines of the sales order. If the goods issue date in the schedule line has been determined as 17th Aug 2009, and the transit time is 3 days. What should be the delivery date that will be proposed? Should it be 10 + 3 equal 20th Aug 2009, or it will be 21st Aug, which is the the following day of 10 + 3 ? I simulated in the sales order and it gave me 21st, my understanding was it should be just 17 + 3 = 20th Aug.
    hope anyone can shed some light on the above. TQ
    krt

    Hi ,
    This is what F1 help says
    Rounding-up period for delivery scheduling (in days)
        The amount of time that the system automatically adds as a safety margin
        to the estimated time required for processing a delivery.
    Use
        The system adds the rounding-up margin to the time estimates for a
        delivery, regardless of whether the system
        o   Calculates the times from data in the master records, or
        o   Simply uses the default times that apply to the relevant shipping
            point.
    This is F1 Help of rounding days and not my words..... you can also check in OVXD t-code.
    Thanks,
    Raja

  • Schedule line logic

    Hi Experts,
    I would like to know a small logic on how to derive deliver qty based on schedule line. Am an ABAP developer. In one of my requirement i need to get the deliver quantity based on sales document , item and schedule  line.
    i have an deliver document : 12345 , Item : 20 ,
                              schedule line : order qty, rounded qty, confirmed qty, deliver qty
                                                           15      , 15               ,  8                   , 8
                                                            0       , 0                 , 7                    , 7
    When i check in LIPS table am getting the deliver qty like 8 , 2 , 5 . The deliver qty has been splited. In my report i need to show for which schedule line the are delivered. As i have only two schedule line in VBEP . when i execute am getting only two deliver qty like 8 , 2 . In my report i need to show also the 5.
    So i would like to know where i can find for which schedule line the are getting spited.   If you can give me the details where i can find this information it will be helpful for me to build the logic. If you have any table name where i can find this information also it will be more useful for me.
    Kindly let me know if you need any more information.
    Thx in Advance.
    -Guru

    Hi,
    Please go through the below threads it will help you to resolve your issue.
    Delivery Qty of Schedule line item
    Re: VBEP schedule lines
    Regards,
    Krishna O

  • Two delivery documents for a single schedule line of scheduling agreement

    Hi experts,
    i have a query,
    client needs the information of each schedule line delivery details. if all the quantiry in a schedule line is delivered in single delivery ,i can get the ref. from delivery header,,item details table.
    if i need to deliver through 2 or 3 documents instead of 1,then where i can get the information related to the qunatity delivered in each delivery...where i can get that details....
    i am seaqrching in vbep,likp,lips....these tables ....
    can i have some more info related to this one ...plz
    Edited by: dasr r on Dec 19, 2007 7:10 AM

    Thanks for your reply.
    This means(from the link) ,
    FROM VBEH, we can get the details of a schedule line, if it have two delivery documents.
    is it right?
    can u clarify me?

  • Delivery date in weekends in schedule line

    Hi friends
    we are using 7 days working factory calendar for a plant. But we do not want to have the delivery date on saturdays and sundays. (Delivery date in schedule lines). I used one Z lot size to refer the planning calendar(having monday to friday working).
    But the solution is not feasible as we are using different lot sizes like EX,MB etc.,
    Please let me know if you have any solution on this.
    Regards
    Ranga

    Hi Ranganathan,
    You create one more calendar with all the holiday same but only with saturday and sunday as holiday. Assign that calendar in SPRO -> Enterprise structure->Definition-> Sales and Distribution-> Define copy and delete, check sales organisation. in that assign in the factory calender in the sales org calendar.
    Try this if this is Ok reward the points.
    Thanks and Regards,
    Satish

  • Copying delivery time from 1st  (unconfirmed) schedule line to confirmed SL

    Hi Friends
    Long time since I visited our forum.
    During order creation or change,  by selecting all items and using 'Edit- fast change of- Delivery date' menu option one can set a delivery date and time for all the items. This info moves to schedule line 1 (for the requested delivery date) Shipping tab to Arrival time field. However if an item (s) is not confirmed for the requested date, then a second schedule line is created for the confirmed date based on user's choice in the ATP dialog window. Now the issue is that delivery time is not copied to the new SLs. And it will be cumbersome to enter it by going into the SL-Sales tab for multiple items via  their confirmed SLs.  Is there a config way ( I doubt it) to get the delivery time (only time) copied to the confirmed SLs from the first SL. Or user exit is the only route?  if so is it FORM USEREXIT_MOVE_FIELD_TO_VBEP    in MV45AFZZ? Does this info stay once it comes via this user exit or do we need to do anything extra during Sales document save or prepare? Oh, by the way, we are set up for complete delivery and fixed date/qty checked.
    Let me know ASAP. Thanks.

    Hi
    If I understand you, the problem is that EZEIT is initial, ie; VBEP-EZEIT = 0 (ie: it has the value on dynpro'00:00:00' depending of the format of your country). The problem for this userexit is that it's called in the end of subroutine VBEP_FUELLEN in the include FV45EFEP_VBEP_FUELLEN. If you read the ABAP coding you have the call to a subroutine before:
    * Anlieferzeit ermitteln
          perform vbep-ezeit_ermitteln.
    If you read it in include FV45EF0V_VBEP-EZEIT_ERMITTELN, you can read this coding:
      if vbep-ezeit = 0.
        if vbep-edatu ne *vbep-edatu or vbep-prgrs ne *vbep-prgrs or
           ( svbep-tabix = 0 and ( vbep-wmeng ne 0 or vbep-bmeng ne 0 ) ).
          perform anliefertermin_pruefen using vbep-prgrs
                                               vbep-edatu
                                               vbep-ezeit
                                               vbep-cmeng
                                               vbep-bmeng
                                               da_dialog
                                               da_edatu
                                               da_ezeit
                                               sy-subrc.
          if sy-subrc = 2.
            vbep-ezeit = da_ezeit.
          endif.
        endif.
      endif.
    * Sekunden sind bei Lieferplänen für Zulieferer nicht relevant
      check not vbak-abdis is initial and
            not vbep-ezeit+4(2) is initial.
      clear vbep-ezeit+4(2).
    I think that you are looking for this, am I right? Surely, you knew it before to post this subject.
    Alghough the purpose of userexit is populate fields from an append (fields ZZ) but it's possible to change others. I suggest to think about this, because I think that it's the same and you can know the checks to avoid inconsistencies. If you need something else, please let us know.
    This is only a suggestion. I hope this helps you
    Regards
    Eduardo
    Edited by: E_Hinojosa on Apr 1, 2011 10:38 AM
    Edited by: E_Hinojosa on Apr 1, 2011 10:38 AM

  • Delivery date variance for multiple schedule lines in EKET

    Hi experts,
    can anyone tell me what dates  are used (from EKET, EKBE or any other table)  to calculate delivery date variances when there are multiple schedule lines in EKET table. I am able to match single schedule line POs but not POs having multiple schedule lines.
    thanks in advance,
    purvang

    can anyone provide input on this?

  • Delivery date not updated in Schedule line

    Hi friends,
    We are trying to update the delivery date of a schedule line in a sale order item through BAPI_SALESDOCUMENT_CHANGE. This goes well for all the cases except when the last sale order item is fully delivered. When the last sale order item is fully delivered, the BAPI is unable to update the delivery date for any of the other schedule line items in the same sale order.
    While debugging standard SAP program SAPMV45A, we found that the XVBUP item always points to the last sale order item (FM: SD_FIELD_INPUT_CHECK) and as this is fully delivered, it says that the order is completely delivered and hence delivery date EDATU cannot be changed.
    Could anyone please help to resolve this issue?
    Thanks,
    Sharmila
    Edited by: Sharmila Subramanian on Mar 17, 2011 8:17 AM

    Use following function  and update  schedule_lines  and    schedule_linesx  table.
    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.

  • How system updating the delivery dates in sale order schedule line

    Hello
    i created a sales order with 2 line items. For the first line item the confirmed delivery date in the schedule line is 06.02.2012 and for the second line item the confirmed delivery date in the schedule line is 14.02.2012 . Both the line items are third party items and the PR created against the line items in the sales order .
    We created the PO with reference to the PR of the SO and we find there are different delivery dates coming in the PO document for the 2 line items . For the first line item the delivery date is coming as 14.11.2011 and for the second line item in the PO , the delivery date coming as 11.11.2011 . Firstly we are not understanding from where the delivery dates are picking in the PO.
    Secondly , once we saved the Purchase order and once we come back to the sales order , the schedule line dates are getting changed automatically in the sales order . For the first line item in the sales order the delivery date is changing to 22.11.2011 and for the second line item in the sales order the delivery date is changing to 22.11.2011.
    Now my question , is from where the delivery dates are updating in the Purchase order and once we save the purchase order how the delivery dates in the schedule line are getting changed .

    Now my question , is from where the delivery dates are updating in the Purchase order and once we save the purchase order how the delivery dates in the schedule line are getting changed .
    For third party processing, the delivery dates are updated in the purchase order based on the settings in the field Planned delivery time in the MRP2 view of the material master(defined in purchase info record in t.code ME11/ME12) and purchasing processing time defined in t.code OMEW. This means, since the date of PO created, it will take the days mentioned in the planned delivery time field and purchasing processing times to determine the delivery date, which will be copied into the sales order as delivery date. In your case, the purchase order delivery date is not copied into the sales order, hence you may need to check OSS note. How the PO is handled? Any confirmation control functionality is used?
    Regards,

  • Delivery quantity is greater than schedule line confirmation quantity (sales order)

    I am creating a sales order with 30 Mt. I confirmed 10 Mt (partial confirmation and based credit block) in schedule line Now I am going to create the delivery system automatic taking 10 Mt but when I am going to change the delivery means when I increase the delivery quantity (20 Mt) then system allowing to do the further process.
    As per my understanding system should not allow to increase the delivery quantity m     ore the sales confirm quantity.
    Please suggest how I can restrict.
    Thanks & Regards
    Sujit

    Thanks for your reply,  As you suggest "B" is there. But its not working.  For ref. screen shot is attached.
    For reference I am providing some more details:
    => We are using "Make to order" process. After creation of sales order we assign the stock to sales order using T-code MB1B , Movement type 412E, 
    => Auto credit check applicable
    => Confirmed quantity in schedule line based on credit limit.(Auto credit check at Sales order level)
    => Avail. Check is 02 and check. rule is "AE" .
    Thanks and Regards
    Sujit

  • Need to create One outbound delivery against multiple PO and Schedule lines

    Hi Experts.
    I needed your help in regards to creating one single outbound delivery for multiple PO/SA lines(in one shipment) using either FM GN_DELIVERY_CREATE or
    W_FRM_DELIVERY_CREATE_GENERAL.
    I have tried setting up the indicator XKOMDLDN-KZAZU = 'X' in the interface to combine orders in one delivery but I am still getting multiple deliveries.
    If somebody had sucess with  the above then can you please let me know what other parameters do I have to set or let me know if I have to code this in a user exit/badi which will be called inside these FM's.
    OR
    Please let me know if there are any other alternatives to the above FM's to post one single delivery against mupltiple PO's.
    Thanks
    Raj

    Hi,
    I am little bit disappointed since I did not get even a single reply for the issue that I raised. Anyways finally after couple of days debugging VL10d and going thru SAP support website I found couple of solutions. Here it is in case anybody else needs it in the future.
    I am using solution 2 below.
    Solution 1.
    From SAP portal website u2013 Apply SAP note 386340 (Grouping purchase orders into one delivery using VL10*)
    Note- This solution will affect all your plants and delivery types that is using VL10d transaction or any other transactions calling FM GN_DELIVERY_CREATE
    Solution 2.
    This is the solution that I am using and it is done by implementing BADI  u2018LE_SHP_GN_DLV_CREATEu2019 method MOVE_KOMDLGN_TO_LIKP.
    1) Here I am checking for two fields (IS_XKOMDLGN-WERKS and IS_XKOMDLGN-LFART) are equal to the plant and delivery type that I need to combine deliveries for.
    2) If step 1 above is true then I am updating the header structure CS_LIKP-LFDAT (delivery date) to todays date (sy-datlo).
    Thanks
    SHR.

  • No Schedule Lines due erro however Selection date exist in Sales  Order

    Hello Experts,
    I'm in process of creating a Delivery document for my sales order. I've provided Delivery date under "Schedule Lines" tab.
    Now when i enter the same date in VL01N, selection screen in Requested Delivery date field along with Shipping Point and Sales Order No SAP still says
    No schedule lines due for delivery up to the selected date
    Message no. VL248
    Anybody will know why?
    Many thanks in advance.

    Hi,
    Display your sales order. select the line item. Click on 'Schedule lines for item' button given below the item lines. It will show you the schedule line for the item. So, create delivery document for the delivery date given in the schedule line. Your delivery document will be created.
    The error doesn't mean that the plant have no stock to deliver. Even the plant have enough stock, the delivery will be done as per the schedule.
    Regards,
    K Bharathi

  • Link between delivery line item and sales order item schedule line.

    Hello friends,
    This is a continuation of my earlier query - for which I got half the solution, and this is the remaining problem.
    I want to know: from delivery document line item, how to link it to sales order line item's schedule line (when there are multiple schedule lines with identical quantities).
    Thanks for your help.
    - Chetan

    This is the code which i used for the same purpose and its working.
    Hope this will help you too....
    ****it_itab  is my final internal table.
    *Internal table for manupulating the Delivery balance when
    *its used in more than one schedule line
    TYPES: BEGIN OF ty_new,
           vbeln TYPE vbep-vbeln," so no
           posnr TYPE vbep-posnr," so line no
           etenr TYPE vbep-etenr," schedule line
           delno TYPE lips-vbeln,"delivery no
           delposnr TYPE lips-posnr,"del item no
           totval TYPE vbep-wmeng," total del wise value
           val   TYPE vbep-wmeng," del wise used value
           sdval TYPE vbep-wmeng,"schedule wise  del used value
           sdtotval TYPE vbep-wmeng," total Schedule value
         END OF ty_new.
    DATA:it_new TYPE ty_new OCCURS 0,
         wa_new TYPE ty_new.
    DATA: it_vbepvb TYPE TABLE OF vbepvb,
            wa_vbepvb LIKE LINE OF it_vbepvb,
            fvbfa TYPE TABLE OF vbfa,
            fvbup TYPE TABLE OF vbup,
            fvbap TYPE TABLE OF vbapvb.
      LOOP AT it_vbak INTO wa_vbak.
        LOOP AT it_vbap INTO wa_vbap
                WHERE vbeln = wa_vbak-vbeln.
      SELECT * FROM   vbfa INTO TABLE fvbfa WHERE vbelv = wa_vbap-vbeln
                                             AND  posnv = wa_vbap-posnr.
      SELECT * FROM   vbup INTO TABLE  fvbup WHERE vbeln = wa_vbap-vbeln
                                             AND  posnr = wa_vbap-posnr.
      SELECT * FROM   vbap INTO TABLE fvbap WHERE vbeln = wa_vbap-vbeln
                                             AND  posnr = wa_vbap-posnr.
      SELECT * FROM   vbep INTO TABLE it_vbepvb WHERE vbeln = wa_vbap-vbeln
                                             AND  posnr = wa_vbap-posnr.
      CALL FUNCTION 'RV_SCHEDULE_CHECK_DELIVERIES'
        EXPORTING
          fbeleg                        = wa_vbap-vbeln
          fposnr                        = wa_vbap-posnr
      FVERRECHNUNG                  = ' '
      FS073_ALT                     = ' '
      IF_NO_SORT                    = ' '
        TABLES
       fvbfa                         = fvbfa
       fvbup                         = fvbup
       fxvbep                        = it_vbepvb
      FVBLB                        =
        fvbap                        = fvbap
    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.
      SORT it_vbepvb BY vbeln posnr edatu.
      LOOP AT it_vbepvb INTO wa_vbepvb
                    WHERE vbeln = wa_vbap-vbeln
                      AND posnr = wa_vbap-posnr.
        to write data of schedule line with no delivery
        MOVE wa_vbepvb-olfmng_flt TO wa_itab-openqty.
        IF  wa_vbepvb-bmeng EQ wa_itab-openqty.
          CLEAR wa_itab.
          PERFORM schedule_data.  "schedule line based data to be displayed
          MOVE: wa_vbap-lgort TO wa_itab-lgort.
          MOVE: wa_vbepvb-etenr TO wa_itab-etenr,
                wa_vbepvb-bmeng TO wa_itab-kwmeng,
                wa_vbepvb-olfmng_flt TO wa_itab-openqty.
          APPEND wa_itab TO it_itab .
          CLEAR wa_itab.
        ENDIF.
        LOOP AT it_vbfa INTO wa_vbfa WHERE vbelv = wa_vbepvb-vbeln
                                            AND  posnv = wa_vbepvb-posnr.
          READ TABLE it_likp INTO wa_likp WITH KEY vbeln = wa_vbfa-vbeln.
          CHECK wa_likp-bldat >= wa_vbepvb-edatu.
    check the Delivery doc date with the schedule line confirmed date
          CLEAR: delbal, deltot,wa_new.
          LOOP AT it_new INTO wa_new WHERE vbeln = wa_vbepvb-vbeln
                                         AND       posnr = wa_vbepvb-posnr
                                         AND       etenr = wa_vbepvb-etenr.
            deltot = deltot  +  wa_new-sdval.
          ENDLOOP.
          delbal = wa_new-sdtotval - deltot.
          CHECK sy-subrc <> 0 OR delbal GT 0.
          MOVE wa_vbepvb-olfmng_flt TO wa_itab-openqty.
          CHECK  wa_vbepvb-bmeng NE wa_itab-openqty.
    ****To check whether this delivery is already fully allocated against
    any other schedule.
    LOOP AT it_lips INTO wa_lips WHERE  vbeln = wa_vbfa-vbeln
                                           AND posnr = wa_vbfa-posnn.
            MOVE: wa_likp-bolnr TO wa_itab-vesname.
            MOVE: wa_likp-vbeln TO wa_itab-delno.
            MOVE: wa_likp-wadat TO wa_itab-wadat.
            MOVE: wa_likp-anzpk TO wa_itab-anzpk.
            MOVE: wa_likp-lddat TO wa_itab-lddat.
            MOVE: wa_likp-ernam TO wa_itab-ernam.
    ******end of code added by IVL1 on sep 27 2007 #3618
            PERFORM schedule_data.
            IF wa_lips-umvkz <> 0.
              tempquant = wa_lips-umvkn / wa_lips-umvkz.
            ELSE.
              tempquant = wa_lips-umvkn. "delivery qty
            ENDIF.
            tempquant = tempquant * wa_vbfa-rfmng.
    ***New logic added to get delivery qty schedule wise****
            MOVE: wa_vbepvb-etenr TO wa_itab-etenr,
                  wa_vbepvb-bmeng TO wa_itab-kwmeng,
                  wa_vbepvb-olfmng_flt TO wa_itab-openqty. "jo
    **if delivery qty is less than or equal to schedule line qty******
            IF tempquant LE  wa_vbepvb-bmeng.
              wa_itab-delqty =  tempquant.
              LOOP AT it_new INTO wa_new  WHERE  vbeln = wa_vbepvb-vbeln
                                         AND     posnr = wa_vbepvb-posnr
                                         AND     etenr = wa_vbepvb-etenr
                                         AND     delno  = wa_lips-vbeln
                                         AND     delposnr = wa_lips-posnr.
                MOVE-CORRESPONDING  wa_itab TO wa_new.
                wa_new-delposnr = wa_lips-posnr.
                wa_new-val = tempquant.
                wa_new-totval = tempquant.
                wa_new-sdval  = tempquant.
                wa_new-sdtotval = wa_vbepvb-bmeng.
                MODIFY TABLE it_new FROM wa_new .
                IF NOT sy-subrc IS INITIAL.
                  APPEND wa_new  TO it_new.
                ENDIF.
              ENDLOOP.
              IF sy-subrc <> 0.
                MOVE-CORRESPONDING  wa_itab TO wa_new.
                wa_new-delposnr = wa_lips-posnr.
                wa_new-val = tempquant.
                wa_new-totval = tempquant.
                wa_new-sdval  = tempquant.
                wa_new-sdtotval = wa_vbepvb-bmeng.
                APPEND wa_new TO it_new.
              ENDIF.
             wa_itab-delqty =  tempquant.
             CLEAR tempquant.
            ELSE.
        lips qty > so schedule lineqty
              CLEAR deltol.
              LOOP AT it_new INTO wa_new WHERE    vbeln = wa_vbepvb-vbeln
                                          AND      posnr = wa_vbepvb-posnr
                                         AND     etenr = wa_vbepvb-etenr
                                          AND     delno  = wa_lips-vbeln
                                          AND    delposnr = wa_lips-posnr.
                deltol = deltol  + wa_new-val.
              ENDLOOP.
              LOOP AT it_new INTO wa_new  WHERE    vbeln = wa_vbepvb-vbeln
                                          AND      posnr = wa_vbepvb-posnr
                                          AND     delno  = wa_lips-vbeln
                                          AND    delposnr = wa_lips-posnr.
                MOVE-CORRESPONDING  wa_itab TO wa_new.
                wa_new-val = wa_new-totval - deltol.
                wa_itab-delqty =  wa_new-val.
                wa_new-delposnr = wa_lips-posnr.
                wa_new-totval = tempquant.
                wa_new-sdval  = wa_new-val.
                wa_new-sdtotval = wa_vbepvb-bmeng.
                MODIFY TABLE it_new FROM wa_new .
                IF NOT sy-subrc IS INITIAL.
                  APPEND wa_new  TO it_new.
                ENDIF.
              ENDLOOP.
              IF  sy-subrc <> 0.
                MOVE-CORRESPONDING  wa_itab TO wa_new.
                wa_itab-delqty =  wa_vbepvb-bmeng.
                wa_new-delposnr = wa_lips-posnr.
                wa_new-val =  wa_vbepvb-bmeng.
                wa_new-totval = tempquant.
                wa_new-sdval  = wa_vbepvb-bmeng.
                wa_new-sdtotval = wa_vbepvb-bmeng.
                APPEND wa_new  TO it_new.
              ENDIF.
            ENDIF.
            IF NOT wa_lips-lgort IS INITIAL.
              MOVE: wa_lips-lgort TO wa_itab-lgort.
            ELSE.
              MOVE: wa_vbap-lgort TO wa_itab-lgort.
            ENDIF.
            APPEND wa_itab TO it_itab .
            CLEAR wa_itab.
          ENDLOOP. 
        ENDLOOP.
        CLEAR wa_vbepvb.
      ENDLOOP.
        ENDLOOP.
        CLEAR wa_vbak.
      ENDLOOP.

  • Split delivery for each schedule line

    Hi,
    We have a requirement to split deliveries for each schedule line in the order.
    For example: I have an order with one line item which has 2 schedule lines. If the schedule line date on one is 01/29 & the other is on 01/31, and the delivery due list VL10A is run with a range 01/29 - 01/31, it picks both the schedule line & combines them into one delivery.
    Is there a way by which we can force them to create 2 different deliveries (as it would if the delivery due list was run for each day at a time).
    We created a data transfer routine (deliveries), and populating ZUKRL with schedule line date & that doesnt solve the problem since the routine is triggered once for each sales order line and not for schedule lines.
    SAP reverted back that this is standard SAP behaviour to cumulate all due schedule lines into one delivery, but I would like to know if anyone has any other solution ?
    Thanks in advance!

    First of all you have to use VL10E to create deliveries, since it creates one delivery item for each schedule line.
    Then play with your own delivery role copied from standard profile 0201:
    you can trigger 3 different flags to reach your goal:
    Cumul. Rule: Rule for calculation of quantity to be delivered
         There is a field that contains a cumulated quantity in delivery lists
         with item or schedule line views. The quantity at which the list line
         (document item or schedule line) is delivered is defined in this field
         when it is selected and the delivery process is started in the
         background. The value is a default and can be changed by manually
         processing the delivery list on the item or schedule line level.
    SplitSchedLine: Rule for creating one delivery item per schedule line
        In a delivery list in item view with multiple schedule lines, you can
        decide for the same document item whether you want to generate one
        delivery item per schedule line or whether you want to deliver the
        cumulated quantity of the last schedule lines selected.
    LimitSchedLine:  Allow constraints on schedule line level
         You can use this indicator to limit selection o
         delivery when
         o   Delivery due date and/or
         o   Planned goods issue date and/or
         o   Route schedule
         does not fall within selection range.
    This should help you to solve your problem.
    pls. reward points if helpful
    Regards
    Roberto

  • 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

Maybe you are looking for