Schedule line wrongly updated in SO

Hi expert,
When updating AB confirmation line in PO it updates an corresponding Schedule line in SO after calculating GR processing time.In my scenario user done confirmation first for full quantity and then split the  quantity into two confirmations. Then processing the first confirmation upto billing and then again split the quantity in Second confirmation. Please guide me to solve this issue.
Eg:
1) AB Confirmation in PO
Delivery date     Quantity        Quantity reduced
23.01.2012       50000              0
Schedule line in SO
                         order qty   Rounded qty    Confirmed qty        Delivered qty           
25.01.2012     0                  0                       50000                    0
2)  Split the quantity in AB confirmation
Delivery date     Quantity        Quantity reduced
23.01.2012         25000            0
25.01.2012         25000             0
  Schedule line in SO
                         order qty   Rounded qty    Confirmed qty        Delivered qty
25.01.2012      0                    0                   25000                      0
26.01.2012      0                    0                   25000                      0
3) Processing the first confirmation line upto billing then it updates the schedule line like this
Delivery date     Quantity        Quantity reduced
23.01.2012         25000            25000
25.01.2012         25000             0
  Schedule line in SO
                         order qty   Rounded qty    Confirmed qty        Delivered qty
25.01.2012      0                    0                   25000                     25000
26.01.2012      0                    0                   25000                      0
4) Now user again split the quantity for second confirmation in PO
Delivery date     Quantity        Quantity reduced
23.01.2012         25000            25000
25.01.2012          10000            0
During updation Schedule line in SO the result like this
  Schedule line in SO
                         order qty   Rounded qty    Confirmed qty        Delivered qty
25.01.2012      0                    0                   35000                     25000
Its gets updated in already processed schedule line without calculating GR processing time.I debug the process and find out that two schedule line gets deleted and then restoring into XVBEP. Actual result will be
                         order qty   Rounded qty    Confirmed qty        Delivered qty
25.01.2012      0                    0                   25000                     25000
26.01.2012       0                    0                    10000

Ganesh,
There is no fixed relationship between a MTO Production order and a Sales order schedule line.  The link is only 'logical' (eg, "this production order probably will support this schedule line").  What you see in MD04 is reevaluated and re-calculated every time you re-execute MD04.
MTO Production orders are only relevant to a  Sales Doc item and not the sales doc item schedule.
Best Regards,
DB49

Similar Messages

  • Schedule line not update thru EDI (VA32/VA33)- DELINS X12-830

    Hi,
    I am working in EDI X12-830 inbound process for message type DELINS. The inbound process is successfully posted but the problem is, it deletes the old Schedule line and add the current schedule and also I cant find any value in the schedule line tab, it only changes the value in the order quantity in Sales A Tab. My requirement is I need to update the new schedule line coming from the IDOC and keep old schedule line as it. And all the schedule line should updated in the Schedule line Tab of Item (VA32 or VA33).
    Thanks

  • Sales order schedule line quantity update

    Hi
    I'd like to know if there is a FM to update the Sales order schedule line quantities.
    In particular, the fields in VBEP:  WMENG, BMENG, LMENG, CMENG.
    Thanks.

    Hi Lily,
    Can you please tell us how you updated BMENG using the BAPI BAPI_SALESORDER_CHANGE?
    Thanks,
    Vitz.

  • 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

  • How to add a New schedule line and update the order quantity?

    Hi all,
       I have to add a new schedule line in VA01/VA02 so that when ther is partial confirmed quantity against a schedule line, we have to create a new schdule line based on the existing so that it will contain confirmed in one and unconfirmed in the other.
    The schedule line will split once the user go to Header data screen in VA01/VA02. So I used USEREXIT_MOVE_FIELD_TO_VBAK  user exits in MV45AFZZ include program.
        I splited the order quantity against the confirmed quantity and added it as new schedule line in the XVBEP internal table and update UPDKZ flags for XVBEP & YVBEP.
      Could anyone tell me is there any other way to do this without updating XVBEP? Because it is affecting some other place because of index table is not updating. How to you think use if update xvbap-etenr_high and update index table IVBEP1 for new line insert into XVBEP instead directly inseritng it into?
    My code as follows:
    xvbep-WMENG = t_temp-WMENG .
    modify xvbep TRANSPORTING WMENG.
    t_temp1- ETENR = '0002'.
    if SY-SUBRC <> 0.
      t_temp1-UPDKZ = UPDKZ_NEW.
      modify xvbep TRANSPORTING WMENG UPDKZ.
    endif.
    With Regards
      Raj

    Have you got thru this one if so please provide me with the solution as i got the same req' ..

  • Schedule lines not updating while using the BAPI_SCHEDULE_MAINTAIN

    Hi all,
    I am using BAPI_SCHEDULE_MAINTAIN to change the schedule line delivery date and schedule line quantity
    while i was changing using t-code ME38 it is changing but while using the above mentioned BAPI i am getting the below errors
    1)Instance PurchSchedagreement of object type <schedule agreement no> could not be changed
    2)Delivery date outside period covered by factory calendar H2.
    Any idea??
    Regards,
    Satishreddy.

    Issue Resolved

  • Reject reason schedule line not updated item level

    Hi,
    Say a particular sales order line item has 3 schedule lines all of which had been rejected through reason '00',
    Just a clarification as to why the line item doesnt get rejected with a reject reason if all the schedule lines in tht line item is rejected.
    Thanks
    Keshi

    Dear Keshi,
            When there is reason for rejection set for all schedule line then what is the need of getting at item level.
    Reason for rejection at Scheduleline level is more specific than at item level,
    I hope it will help you
    Regards,
    Murali.

  • Forecast delivery schedule lines consumption

    Hi,
    I cannot fully understand what is the logic behind the consumption of the forecast delivery schedule lines. This is how the problem can be exactly defined:
    - scheduling agreement with delivery orders (LZM)
    - JIT delivery schedules are not used and no delivery schedule is maintained... just a forecast delivery schedule
    - the whole process is manual, there is no EDI implied
    - the cumulative received quantity is updated by an ABAP development that is triggered at delivery goods issue
    The rest, happens normal - forecast schedule lines are updated weekly, the customer send pick-up sheets, a TAM delivery order is created, then delivery, GI...
    The problem: not always the MRP requirements generated by the forecast delivery schedule lines are consumed by the delivery order/GI. If the delivery orders / deliveries are made on the exact quantity of the schedule lines everything works fine. It is also ok when there are two successive delivery orders with a cumulative quantity that matches exactly the forecast line. As soon as a over-delivery is made, everything turns upside-down: older delivered schedule lines appear again in planning as if nothing was delivered until now...
    I suspect that the problem is related to the fact that the whole process is manual and updating the cumulative received quantity is not the only parameter that is counting... is it so? Or the forecast delivery schedule has to be respected 100% in terms of quantities and timing?
    I would really appreciate your help.
    Regards,
    H.

    Also please clarify whether delivery schedule lines in ME38 (even it is created automatically), in Planning time fence, will get affected by MRP run.

  • 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

  • Update Schedule line Delivery date using Bapi_po_Change

    Hi all,
    I am using Bapi_po_change to Update the Schedule line Delivery date(EKET-EINDT) for the PO based on the Item and the Schedule line.
    I am passing the PO number, Po header, Item structure, Schedule line Structure.
    But the Date is not getting updated in the Eket table.
    Please suggest.

    Hi Sukriti,
    Thanks for the Response, yes i have used the Bapi Transaction Commit Also .
    The point is I am able to Update the Statistical Delivery Date in the Same EKET table using BAPI_PO_Change .I have Checked all the Ways to update the EKET-EINDT(Delivery Date)but no Unable to do it.

  • Fields update in "Schedule Lines for FRC sched." in a scheduling agreement

    May I know how the following fields in the "Schedule Lines for FRC sched." section in a scheduling agreement are being updated?
    We have already a new inbound delivery with goods receipt (last June 1, 2010) but the following fields still show the previous inbound delivery details:
    For example:
    Date of last del. 08.10.2009
    Last d. note no. 91011
    Last GR 21.10.2009
    Last GR qty. 54.500
    I wish I can show some screenshots here.
    Thanks a lot in advance for your answers.

    Hi Sravan,
    As per my view point, this is standard SAP behaviour. System will generate PR only in case of external operation.
    If you go to OPL8 (Order type dependent parameters) for your respective order type & plant combination you have option of maintaining setting related to PR only and there is no option of using scheduling agreement or generating schedule lines.
    I don't see any possibility to use scheduling agreement using to have schedule lines for external operation.
    Regards,
    Tejas

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

  • Need BAPI Name for updation of Subcontracting scheduling line agreement

    Hi All,
            Can anybody please tell me BAPI Name for updation of Subcontracting scheduling line agreement from EKET table?
    Note: BAPI_PO_CHANGE is not useful for me.
    Thanks and Regards,
    Atul.

    Hi Muralidhara,
    Can you please give some more details for this BAPI..
    I tried using it , but getting an error "No instance of object type PurchSchedAgreement has been created. External reference:"
    and "Enter G/L Account" (Infact I did specify G/L account in account assignment table)
    with regards,
    Kirti

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

Maybe you are looking for

  • PL/SQL? Call it P/K!

    What I want to say for PL/SQL is thus: 1) Functions or procedure of PL/SQL with many parameters are bullshit. Parameter count of normal function should be less than eight. 2) Performance of PL/SQL is said a little better than simple SQL statement of

  • How to copy value from one field to another in a Apex Form

    Hello guys, There are 2 addresses one is shipping and other is billing. I do not want the customer to re-enter all the details if it is the same address. So based upon an action, it should take the live values from one address field and populate the

  • Calculating total working hours

    Hai Experts , i want to calculate the total working hours of every employee. my scenario is .. i am having a table zworkinghours the fields are SNO  -numc EMPID-int4--- employee id DATEE-dats--- date WHOURS-tims--- hours worked sample datas: (PK)SNO 

  • Can I use a script to update a graph.

    We have several charts(graphs) within an InDesign document. We update the graph manually using a tab delimited text file. Is there a way to script this? I've scripted the InDesign document to update the links and verify the age of links but I've had

  • How do i fix apple id activation on iphone 4s

    i bought iphone 4s from this site http://www.pik.ba/ and it works fine but when i upgrade it to new ios 7 in activation  shows me that i need someones apple id pasword but i cant contact the seller because i havent his email or phone number please he