Delivery Date needs to be changed on Schedule lines

Hi All-
I am using BAPI_SALESORDER_CHANGE, to update the delivery date on the schedule lines...If I have 2 lines of schedule, needs to be updated the second one ETENR '0002'...
Bapi returns message that successfully processed, when I go back and look at Sales order, I don't se any changes on schedule line..
I am pssing into BAPI, sales doc and schedule line with the delivery date and the flag 'U'..and also I am using BAPI commit...
But, let me know if I am missing something and also let me know is it possible to change schedule delivery date or not?
Thanks,
Sony

Hi
Please follow this process.
Only specify fields that should be changed
Select these fields by entering an X in the checkboxes
Enter a U in the UPDATEFLAG field
Always specify key fields when changing the data, including in the checkboxes
The configuration is an exception here. If this needs to be changed, you need to complete it again fully.
Maintain quantities and dates in the schedule line data.
1. Minimum entry:
You must enter the order number in the SALESDOCUMENT structure.
You must always enter key fields for changes.
You must always specify the update indicator in the ORDER_HEADER_INX.
2. Commit control:
The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.

Similar Messages

  • The delivery date is no use for the scheduling lines

    We are using scheduling agreement and automatic scheduling lines.
    but the delivery date is no use in MRP running.
    In scheduling agreement,I already maintain delivery time=2days and GR days=3 days.
    But after MRP running, I found the delivery line only consider GR days but not included delivery days.
    For example. (delivery time=2days and GR day=3 days)
    requirement date=2009.04.16,
    MRP results :scheduling line date=2009.04.13.(!only GR days=3 days in use )
    Why? I am using standard lot size TB( daily lot size, Scheduling: Requirements date := delivery date)
    Thanks in advance.

    We are using scheduling agreement and automatic scheduling lines.
    but the delivery date is no use in MRP running.
    In scheduling agreement,I already maintain delivery time=2days and GR days=3 days.
    But after MRP running, I found the delivery line only consider GR days but not included delivery days.
    For example. (delivery time=2days and GR day=3 days)
    requirement date=2009.04.16,
    MRP results :scheduling line date=2009.04.13.(!only GR days=3 days in use )
    It should be 2009.04.11.
    Why? I am using standard lot size TB( daily lot size, Scheduling: Requirements date := delivery date)
    Thanks in advance.

  • How to change the schedule line date in SO with reference to value contract

    Hi SD Guru's,
    I need to change the schedule line date in the sales order with reference to the value contract by using some algorithm that i will write. The problem that i can't find the suitable place to add the algorithm. I can't add it to the Copy control because there is no schedule lines in value contract and copy control for schedule lines does no exist.
    I can not add to user exit MV45AFZZ  , because order that was created with reference to the value contract, does not go through this user exit.
    Do you have some ideas where i can add it?
    Thanks and Regards
    Viky
    Edited by: Viky Sloutsky on Oct 20, 2010 12:43 PM

    Hello Viky
    How about using program MV45AFZB- USEREXIT_CHECK_VBEP or USEREXIT_MOVE_FIELD_TO_VBEPKOM
    or program FV45EFZ1- USEREXIT_CHANGE_SALES_ORDER
    Does the program go through these exits when an order is created with ref to a value contract??
    Also I am wondering why you need to change a Schedule line determined by Availability check and/or delivery scheduling?

  • Default key date, Document date and posting date needs to be changed automa

    Hi Experts,
    The user wants to create a variant for Foreign currency valuation, wherein the default key date, Doc date and Posting date needs to be changed every month automatically. Is it possible?
    Please let me know your thoughts.
    Warm regards,
    Murukan Arunachalam

    Hi
    Please follow this process.
    Only specify fields that should be changed
    Select these fields by entering an X in the checkboxes
    Enter a U in the UPDATEFLAG field
    Always specify key fields when changing the data, including in the checkboxes
    The configuration is an exception here. If this needs to be changed, you need to complete it again fully.
    Maintain quantities and dates in the schedule line data.
    1. Minimum entry:
    You must enter the order number in the SALESDOCUMENT structure.
    You must always enter key fields for changes.
    You must always specify the update indicator in the ORDER_HEADER_INX.
    2. Commit control:
    The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.

  • KANBAN cycle - Change of Schedule line dellivery date.

    Hi,
    I have some queries in KANABAN scenario
    1) How to change the schedule line delivery date generated from KANBAN cycle.
    2)How to avoid generation of schedule lines from KANABAN if the Scheduling agreement was not released.
    regards,
    Kannaiah Naidu

    Hi,
    1.It is not possible to change the schedule lines of the Scheduling agreement with kanban indicator. Only work arround solution is to remove the kanban indicator. Then you can change the schedule line.
    2.Using user exit, during emptying of the bin check whether scheduling agreement is released on not.If not released generate error.
    Regards,
    Krishna A S V

  • SLA Dates needs to be changed manually by user.

    Hi,
    I have a requirement that The SLA dates need to be changed manualy by a user (for a service request) based on the authorisation of a user. Is there any enhancement or related to config.?
    thnks in advance.

    Hi,
                I am not sure how ur business is running on. let me tell if u r doing the transaction in the webui are ic agent make sla date fields in display and edit mode based on the authorization or the business role. in case of gui not sure you need to debug and identify the authorization object for that one.
    regards,
    gobi

  • Changing of Schedule line

    Hi Friends,
    I have a below mentioned issue.
    We have nearly 500 sales order created on jan 1st 2010 and which are scheduled for the delivey on April 2nd 2010.
    But now the stock is ready and we want to deliver all the sales orders.
    So my question is how to change the schedule lines for the current date to all the sales orders inorder to deliver the stock immediately.
    Kindly provide me the solution ASAP
    Thanks
    RAM

    Hi
    When you run a V_V2 rescheduling program, by inputting material and plant, all the open sale order (back orders) schedule lines get confirmed.
    Then you can proceed with delivery creation through VL01n or vl10e etc.
    thank you
    Anirudh

  • Purchase Ord delivery date changes SO schedule line date?

    Hi,
    I am purchasing a drop ship item as per sales order. The account assignment in the purchase order is the Sales order. 
    Why in some cases the schedule line date in the sales order changes when I change the delivery date in the purchase order? whereas in other cases it does not.
    Please help me out with this question.
    Sincerely.
    Puja

    Puja,
    The SO schedule line date should not change when you change the purchase order delivery date.
    However, if you change the PO del date, AND a user performs re-ATP against the sales order, OR if you are running backorder processing (rescheduling) of sales docs, then the SD item/schedule date may change to match the changed availability situation caused by the change of the delivery date of the PO.
    Look in the sales order in VA03, then Environment>changes.  Look to see if anyone or anything has 'touched' the SO item that is home to the schedule lines that were affected.
    Regards,
    DB49

  • MASS CHANGE IN SCHEDULE LINE DATE

    Hi All,
    Will u advise whether it is possible to change schedule line date in MASS
    Example. We are having make to order scenario. Sales order is prepared with 25 different line items with shipment date 10 th Feb. Out of these 25 items 10 items are ready by 20 th Jan. If we want to ship these goods on 20 th Jan. we have to change schedule line date item wise.
    Is there any way that we can make this change in a mass without changing delivery date of the sales order.
    Thanks
    Ravi

    V_V2 calls a program that can be 'customized' since it consist of 2 phases:
    1) selection phase
    2) rescheduling phase
    You can copy program SDV03V02 into a custom one and add your own selection criteria without altering the second part of it.
    I alreay made it and it works fine even when upgrading.
    regards
    Roberto Mazzali
    pls. reward if helpful

  • Change delivery date on sales order -- change of Billing date on item

    Hi,
    We are trying to change a delivery date for a sales order's item, if we do so normally the billing date on that item's billing tab will change automatically also.
    Now, for a specific sales order the billing date in the billing tab is not changing.
    We compared 2 sales orders .. the same statusses - no blocks - ... and with one it works (changing of the billing date) and with the other it does not work..
    Please help !
    thanks a lot!

    Hi,
    Check the following.
    If invoice dates are defined for the customer, the system proposes the billing date from the invoice date calendar. If no invoice dates are agreed, then the actual goods issue date is formed on the basis of delivery related billing. In order related billing, the billing date of the order forms the basis of the billing date.
    If you are billing services, the system proposes the date of services rendered. You can change the date manually in the sales document.
    If you are using a billing plan to bill a project, the system can propose billing dates for the billing plan on the basis of planned or actual dates in the corresponding milestone.
    In a billing plan for a maintenance or rental contract, you can specify rules by which the system determines billing dates on the basis of other dates in the contract.
    Regards
    Nadarajah Pratheb

  • How to change  delivery  block for all item in the schedule lines via va32

    dear sap expert:
    i onle can  change delivery block for one  sales order item in the schedule line  every times via va32,it will take so many time because there are hundreds of item  in a sceduling agrrement. how to change all the item  one times.
    please give me a way to resovle the problem.
    best regards.

    dear:
      the fast change function cann't resovle the problem,i first double click the item of schedule agreement  ,then select the schedule lines option, finally in the delivery block input the reason of bolck.
    best regards.

  • Delivery dates need to be reset

    Hi all,
    I came across a scenarion:
    Client wants that while creating Sales Order, the delivery date should pick up only the furture date and no past dates or current dates should be picked up. the options in the delivery date should be like this : future date should be enabled
    past dates and current dates: disable
    i.e if we create a Sales Order on 11.12.2007, then delivery dates should have options of future dates starting from 12.12.2007 only. The options for past dates and current dates like 11.12.2006 and 11.12.2007 should be disable. So, that end users cannot pick accidentally past or current dates.
    Thanks in advance,
    Sourav

    Hi Sourav,
    In VOV8 for a sales Doc type, you can set the set Delivery date by putting no. of days in delivery (Lead time in days, field). Hope this will suffice your requirement.
    Regards
    SD

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

  • Fix date/Quantity in the sales order schedule line

    Dear SD Gurus,
    When we select the fix date/quantity in the lsaes order item schedule line, what happen? Hhow does it imapact the MD04,V_V2 and can this item be seen in CO06 to change the item date manually?
    Thanks
    J.Black

    With fix/date and qty, you can't use rescheduling and back order processing. The setting assumes that you want to fix the date at the time of initial confirmation and therefore these functions are not relevant, and ignore anything with fix/date and qty.  If you want to use those functions then don't use fix/date and qty.
    Rgds
    Richard

  • Change the schedule line committed qty in PO items using ME_PROCESS_PO_CUST

    Dear Experts,
    I want to make the PO item schedule line committed quantity MNG02 field to zero, for this purpose I wrote the logic as below.
    but its not changing the committed quantity to zero. Please advice me.
    method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM.
    DATA: lwa_po_header TYPE REF TO if_purchase_order_mm,
            lwa_mepoheader TYPE mepoheader,
            lwa_mepoitem TYPE mepoitem,
            lwa_mepoitemx TYPE mepoitemx,
            lwa_ekko TYPE ekko,
            lwa_ekpo TYPE ekpo,
            lwa_ekpv TYPE ekpv,
            lwa_eket TYPE eket,
            tp_minqty TYPE min_qty,
            tp_clabs TYPE labst,
            tp_kosch TYPE kosch,
            tp_werks TYPE werks_d,
            tp_tdid type tdid,
            ta_textlines type MMPUR_T_TEXTLINES,
            lwa_textlines LIKE LINE OF ta_textlines,
            lwa_minstk TYPE zminstk.
      DATA: schedules TYPE PURCHASE_ORDER_SCHEDULES,
            schedule LIKE LINE OF schedules,
            lwa_schedule TYPE meposchedule,
            tp_mtvfp TYPE mtvfp,
            tp_avqty TYPE BSTMG,
            tp_minqty1 TYPE BSTMG.
      if sy-tcode = 'ME21N'.
    Get PO Header data
        lwa_po_header = im_item->get_header( ).
        lwa_mepoheader = lwa_po_header->get_data( ).
        MOVE-CORRESPONDING lwa_mepoheader TO lwa_ekko.
    Get PO Item data
        lwa_mepoitem = im_item->get_data( ).
        MOVE-CORRESPONDING lwa_mepoitem TO lwa_ekpo.
    *-> Get schedule line data
                  CALL METHOD im_item->get_schedules
                    RECEIVING
                      re_schedules = schedules.
                  LOOP AT schedules INTO schedule.
                    CALL METHOD schedule-schedule->get_data
                      RECEIVING
                        re_data = lwa_schedule.
    *-> Change Committed quantity
                    lwa_schedule-mng02 = 0.
                    CALL METHOD schedule-schedule->set_data
                      EXPORTING
                        im_data = lwa_schedule.
                  ENDLOOP.
                    CALL METHOD im_item->set_data
                      EXPORTING
                        im_data = lwa_mepoitem.
        ENDIF.
    endmethod.

    Hi Siddu,
    Please finf enclosed with the suedo code.
    DATA: LS_MEPOITEM TYPE MEPOITEM,
                LS_OBJ TYPE REF TO IF_PURCHASE_ORDER_MM,
                LS_MEPOHEADER TYPE MEPOHEADER.
    *IM_ITEM is ur importing parameter
    in order to get the  item details :
    LS_MEPOITEM = IM_ITEM->GET_DATA( ).
    *In order to get the current document type
      LS_OBJ = IM_ITEM->GET_HEADER( ).
      LS_MEPOHEADER = LS_OBJ->GET_DATA( ).
    Now you have your document type in LS_MEPOHEADER-bsart ...
    IF LS_MEPOHEADER-bsart ... = ur custom doc type .
    *Set the return item = 'X'.
    LS_MEPOITEM-RETPO = 'X'.
        CALL METHOD IM_ITEM->SET_DATA
          EXPORTING
            IM_DATA = LS_MEPOITEM.
    ENDIF.
    Hope this helps you,,,
    Regards,
    Deepak.

Maybe you are looking for

  • HT4009 Charged twice for an in-app purchase

    Recently I made a in-app purchase for the game Infinity Blade, the item is the bag of gold 150,000. When I checked my purchased histroy it show two transactions of the item. In game it only reflects that I bought only 1 item. Who do I contact and how

  • Regarding the atrocious amount of whitespace

    Anything in red could be cut outright. Anything in purple would be cut out if the pictures were just smaller. (The pictures which due to the update, mind you, are all broken.) What surprises me most was that- despite this emphasis on the pictures see

  • What is the story with Parallels?

    I got a copy of Parallels with the purchase of my MacBook Air (bonus). So I installed it and registered it but have never used it yet. Been about 6 months. So today I open it up and it tells me that it has expired and I need to purchase a license aga

  • Dropdown List in table - multicolumn foreign key

    Hello, Steve Muench has a nice screencast how to create a dropdown list in an editable adf table. Is there a way how to update this example to work with multicolumn foreign key between edited table and lookup table? Let's say lookup table has Code, L

  • T_jscookmenu

    I am trying to use t:jscookMenu in JSF I followed procedure which mention on this site http://mail-archives.apache.org/mod_mbox/myfaces-commits/200512.mbox/%[email protected]%3E On this website it doess says that it wont work inside form. If I dont u