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.

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

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

  • Reschedule does not update the schedule line

    Dear All expert,
    After upgrade to ECC6.0, the reschedule does update the schedule lines eventhough it list all the required to be update in the list.
    As I checked , it update the ekpo successfully but does not update the eket.
    Is there any suggestion ?

    Hi,
    On the initial screen of V_V2
    Remove tickmark of SIMULATION, Then it will update schedule lines in sales document
    Kapil

  • 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

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

  • Sales order delivery date not update on PO delivery confirmation

    Hi all,
    I have the following issue. When a sales order is created for a material that is to be purchased a purch req is automatically created. Next I create a Po from this Purch req. When I confirm the delivery date to a later date in this po and do this without entering a storage loc in the po, the delivery date in the sales order remains unchanged, which should be adjusted according to the confirmed delivery date in the PO.
    When I do this with a storage location, the date is changed in the sales order.
    Anybody any ideas on what could be the reason for this?
    Thanks,
    Kevin.

    Hi there,
    I thumb rule that you have to follow when posting the thread is, to be clear in what you are asking. Looking at the thread posted, can you make out anything? No spaces, no full stops. How will people understand what your query is? Just read back your question & help us understand what does the query mean.
    From what you have given, you are saying that in material master MRP views, GR processing time is mentioned as 15 days. What after that? Are you asking of the materials are available before that 15 days & you run an availability check is the delivery date going to change? Is that what you are asking?
    If the material is already available on that date, system will confirm the reqested delivery date. If item is not available then system will propose a new confirmed delivery date basing on the availability check. It will not propose a date which is earlier to the requested delivery date. It either confirms the requested delivery date or proposes a confirmed delivery date at a later time.
    For eg when the customer requests delivery on the 25th in the sales order, then if material is available, system will confirm 25th as the delivery date. If material is not available,, then it will check item availability & proposes 28th as confimed delivery date. It will never propose 22nd as delivery date.
    Regards,
    Sivanand

  • In VA01  In Schedule line Delivery date not getting populated

    Hello,
    We have developed enhancement for VA01 tcode.
    Depending upon the quatity entered for a material it should show one more item as free good.
    If quatity is 10 for a line item 10 then it should show item 20 by default same mateerial and quatilty as 1.We have done this it is working fine.
    But if we select free good item in our case it is 20 and click on schedule line item buttom all quaitity fields getting populated.but delivery date not getting populated for only free good.for line item 10 it showing properly.
    Can any one please suggest what i need to do in order to display delivery date for free good.
    Thanks in advance.
    Regards.

    Thanks for your response.
    Actually i have seen technical settings for that field.it is rv45a-etdat.this field has value till MV45AFZZ.seen in debugger.
    Looks like it is clearing some where after the above include.Any suggisitions welcome.Thanks again.

  • 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

  • Does the inbound delivery date get updated in the Purchase Order?

    Dear Experts,
    Here is the use case, The original delivery date in the purchase order is 01.11.2011. Accordingly, the supplier sends an ASN to my client against the PO with the same delivery date. However, now, store keeper of my client wants to receive the stock on 03.11.2011.
    1) Can the store keeper/ goods recipient change the delivery date in the corresponding inbound delivery document to 03.11.2011?
    2) Will the change of the intended delivery date be notified back to the supplier who has triggered the ASN?
    3) Will the new delivery date be updated back in the purchase order?
    Point 3 is particularly important for the client from vendor evaluation point of view as any delay from the client side should not affect the vendor performance for ontime delivery.
    Thanks in advance,
    Ranjan
    Ranjan Sutradhar

    for point 2 not the dates wont be sent back to supplier untill unless you have any logic writen for that and if there is a Interface designed for it and I dont there will be any since ASN is sent from Vendor and if you are changing the dates in ASN .
    for point 3 no its not going to change the delivery date in PO at item level but at the item detial level in PO history tab the scheduled date and delivery date as per ASN will be mentioned
    its better you run the case in system and check it....this wont take much time

  • Where we can see  receipt date with reference to Schedule lines in SA

    Hi,
    where we can see  receipt date with reference to Schedule lines( not with reference to Items) in Schedule Agreement
    Thanks in advance.
    Best Regards,
    Kapil.

    Table EKET is schedule line table and it consists only the Scheduled and statistical delivery dates, the Open and GR Qty but not the receipt date against the schedule lines.  The receipt dates are stored in the EKBE (History per Purchasing Document) tables but this dates are stored against the Purchase doc item number but not the schedule line no.
    System generally fills the scedule lines in the chronological orders based on the GR qty.
    RJ

  • Update Contract Schedule lines using BAPI_CUSTOMERCONTRACT_CHANGE

    Dear All,
    I want to change the schedule line of a Sales Contract using the BAPI, BAPI_CUSTOMERCONTRACT_CHANGE however i do not find any table parameter to do the same as is available in the Quotation & Sales Order change BAPIs.. I checked OSS but did not find any note in this regard.. Kindly let me know if there is any way this can be done apart from using the EXTENSIONIN parameter for this BAPI.
    Thanks for your help.
    Cheers
    Nitesh

    Dear Dipak,
    Is it possible to update the schedule lines without using the EXTENSIONIN parameter for this BAPI ?? If so kindly let me know.
    Cheers
    Nitesh

  • BAPI for VA02 to check availability & update the Schedule lines

    Hi Experts,
    Is there a BAPI which can 'check item availability' & update the Schedule lines for the same order?
    I have checked 'RV_AVAILABILITY_CHECK' 'BAPI_MATERIAL_AVAILABILITY' 'SD_BACKORDER_UPDATE'
    but it is not solving the purpose.
    Kindly give your suggestion for the same.
    Thanks.

    Hi,
    Please let me know if you were able to achieve this functionality. I have a similar requirement wherein I need to check for the material availability and update the schedule lines in the scheduling agreement. I checked the FM SD_BACKORDER_UPDATE, but it doesn't seem to be helpful.
    Regards,
    Dawood

  • How to Restrict Single Delivery Date for PO with Multiple Line Items

    Dear Experts,
    How to Restrict Single Delivery Date for PO with Multiple Line Items.
    System needs to through Error Message if User Inputs Different Delivery Dates for PO with Multiple Line Items in ME21N Tcode.
    Can we achive this by Some Enhancement in SAP or Not ???
    If so how to do it.
    Any Inputs is highly appreciated.
    Thanks and Regards,
    Selvakumar. M

    Hi Selvakumar,
    we can resrict the PO to have a single delivery date in all the line items by means of giving a error message or overwiting the delivery date keyed/determined in the line item.
    You can use the BADI -> ME_PROCESS_PO_CUST. In which you need to implement the method PROCESS_SCHEDULE.
    (for technical aid - This method will be called for each and every PO line item, From the imporing parameter im_schedule we can get all the details of current PO line, even we can change the data in the current PO line. )
    Regards,
    Madhu.

  • Converting contract to sales order does not auto create schedule lines

    Hi
    When I convert quotation to sales order, then schedule lines get auto created.
    But when I convert contract to sales order, then schedule lines don't be auto created. Instead, a confirmation screen for proposal delivery date pops up for every line item in the sales order.
    Is there any suggestion how can I solve my problem ?
    Thanks..

    Hi,
    In standard SD module, system checks availability for each line item, gives you popup screen of confirmation.
    If you don't want availability or popuscreen of confirmation,then
    Go to VOV6 >>> Select schedule line which you are using in sales order for line item >>> Remove tick mark of availability check.
    Else
    Remove availability check rule from material master >>> Under tab Sales : ganral/plant
    kapil

Maybe you are looking for

  • Podcast Problems [Zen Tou

    A few weeks ago I discovered the CBC Radio 3 podcast (http://www.cbcradio3.com/podcast/about.html). The first few downloads have been going well, but now when I try to transfer the files, Media Source says "Error: Unable to download file. The file fo

  • How to show superscript in ,java application?

    how to show superscript in ,java application? in command prompt and using JOptionPane.showMessageDialog()

  • How to set Caption from Version Name?

    I am looking for an automated/batch method to write Caption from Version Name for thousands of photos. HAVE File Name: P1001.RAW Version Name: Red apple Caption: WANT File Name: P1001.RAW Version Name: Red apple Caption: Red apple

  • Data not reflecting in Table

    Hi, I've simply added the Table Component from the Pallete to my web page and Connected with a Table named "Role_master". while running the web application it shows me the following syntax on the Browser: <table id="form1:table1:_table" class="Tbl_su

  • Incoming mail

    I received two new mail messages ( No Sender) and no subject.Dated 12/31/69. How can I delete these?