ME38 Schedule Line Mass Change

Hi Experts,
I have a requirement to change Schedule lines(Line wise) quantity from excel sheet by delivery date.
I tried  BAPI_SCHEDULE_MAINTAIN  but I am getting below error due to my system setup.
Scheduling agreements with time-independent conditions are not supported So i couldn't change any schedule line.
Because  time-independent conditions  is deactivated in my SAP system.
Is there any other solution like BDC or LSMW ?.
If through BDC is possible how can i go particular item wise?.
Experts please give me solution <removed by moderator>.
If you want further details I can ready to give.
Edited by: Thomas Zloch on Feb 24, 2012

I tried with userexit_move_field_vbep but no luck.
Bala: i can use the save_document user exit but if i go and see the schedule line it will show the old date and time. I think that is usefull when saving the application.
Sorry, i forgot to mention one more thing.. i.e., user can change the date and time using 'fast change of' option in menu bar.
Please let me know which field do i need to change to change the date. I tried VBEP-EDATU and VBEP-EZEIT.
Thanks in advance
Sam

Similar Messages

  • MD04 firm schedule line - ME38 schedule line manualy changed

    Hello Gurus,
    many users change manually quantity in schedule lines but then the schedule is locked and becomes firm in MD04 ( * ) so that MRP does not take this quantity into account.
    How to change this behaviour as I want the MRP to take this modification into account ?
    Thanks a lot.

    Hi,
    When your users change a schedule line they are automatically firmed as the system can only assume that they know more about the supply position than it does.
    MRP does take the quantity into account, however, it is not allowed to change the date nor the quantity, so any increase or decrease in demand is reflected in the first unfirmed schedule line.
    This behaviour is not configurable.
    If the firmed schedule line is not correct because the user has made a change in error then you need to set the quantity to zero so that the schedule line is deleted. MRP will then create a new schedule line in line with the planning parameters and current stocks / demand.
    Hope that has answered your question
    Alex Dixon

  • ME38 Schedule lines not reduced with GR

    Hello,
    I have an issue where schedule lines in ME38 are not being reduced when a GR is being made. We are using inbound deliveries (LA) when we receive. The on hand gets updated and the MRP reduced gets updated, but ME38 does not. This leaves a schedule that is invalid and when it is sent to the vendor it has schedule lines that are not valid.
    Any ideas?

    Hi David,
    When you Do inbound delivery, is only an advance shipping notification /confirmation for the material.
    After the goods arrives, goods receipt has to be posted against this inbound delivery only after which the stock of material will be increased in MMBE, in the schedule lines "delivered quantity" gets updated.
    Let me know if you need further information.
    Regards,
    Maheshwari

  • Schedule line date changes after each MRP run

    Dear Experts,
    Clarification needed on how the system plans the MM schedule lines.
    Setting: Start in the past not allowed.
                  3 days for processing of order
    The issue is after each MRP run the system is moving the schedule line to the current date + 3 days for processing + the planned delivery time.
    If the schedule line is not firmed, after each MRP run ( which happens everyday) the system is moving the schedule line and then giving an alert saying the " order has to be rescheduled to the previous day"
    on the second day after the mrp run the system moves the schedule line again by one more day and gives the rescheduling date as " -2 days from today"
    this change is happening every day after the planning run. - because of this there are really no backorders ( schedule line in the past ) in the system. we were not able to know if the vendor is actually delayed in this case.
    can you kindly suggest what went wrong here ??
    we are using strategy 10 for the planning of procured parts. Let me know if more info is needed.
    Note: we are also using stock transfer process for some procured parts. there too the PR date gets changed after each MRP run. There there is no lead time in this case. the order is placed on the same day as the requirement as both plants are nearby. There the PR date is changing everyday to the current date.
    your advice would be of great help
    thanks
    Nagendra Kumar

    Hi Caetano,
    thanks for your suggestion
    Yes, we use firm zone for few of the vendors. there the system don't change the schedule lines.
    Also for the stock transfer PR's there is no firm zone and the lead time is one day. in this case it changes everyday after the MRP run.
    the stock transfer PR's leads to the creation of Schedule lines from the source plant. Since this PR gets changed everyday. the alerts coming out of MD07 gets changed and we really did not know if this order is delayed or not.  In the source plant we use the firm zone to avoid moving the schedule line. But then the alerts are always not correct.
    is there any setting which helps in not moving the PR everyday without using " start in the past"
    thanks
    Nagendra Kumar

  • Re: Check Schedule Line Date Change

    Hi,
    I need to prevent the user from manually changing the schedule line date, but still allow
    BAPI_SALESDOCUMENT_CHANGE to do the same when required.
    I have tried checking the SL date change in user-exits USEREXIT_MOVE_FIELD_TO_VBEP,
    USEREXIT_SAVE_DOCUMENT_PREPARE and USEREXIT_SAVE_DOCUMENT, but have been unsuccessful.
    Any pointers appreciated.
    Thanks,
    GShankar

    Hello Girija,
    I  have used similar concept for something else in Sales order and i know it will work for schedule line as well. I propose two solutions;
    1. While saving the sales order let the User-Exit grey out the 'schedule line' feild and create a table with key 'approver' and User ID feild and let User-Exit Validate this 'Approver's User ID which will be seperately fed into the system (these User Id can be of those who are allowed to change the Schedule line).
    2. Instead of Creating Table for 'Approver - User ID' you could Use Status Management. In this case you could allow system to grey the 'Schedule Line' Feild in some stauts and the user may be allowed to Change in some other User Status. Eg:Status-'Schedule line Change' May allow system to Change the Feild in this case you table will have to be maintained only once or can be hardcoded to check the status and behave accordingly.
    I hope I was Clear in explaining the logic. Good luck

  • Schedule Line Category change-USER EXIT

    REQUIREMENT:
    When saving a SALES ORDER, Change the schedule line category on the SALES ORDER from CP(Standard Availability Check) to CS(Third Party Processing u2013Trigger Purchase Requisition)
    Initially when we create the SALES ORDER, we have Schedule line category CP to generate schedule lines based on stock availability
    SO Date- 09/14/2010
    Schedule line 0001--- 09/14/2010 --- Confirmed Qty (0) --- Sched Line Categ(CP)
    Schedule line 0002--- 09/16/2010 --- Confirmed Qty (1) --- Sched Line Categ(CP)
    Config Change: We have changed the Schedule line category- CS to turn off Purchase Order Scheduling (Indicator turned off--P.req.del.scheduling)so that when we change the schedule line category, no PO scheduling happens again
    Our requirement is that when saving the sales order, we want to change both the schedule lines item category-0001/0002 from CP to CS
    SO Date- 09/14/2010
    Schedule line 0001--- 09/14/2010 --- Confirmed Qty (0) --- Sched Line Categ(CS)
    Schedule line 0002--- 09/16/2010 --- Confirmed Qty (1) --- Sched Line Categ(CS)
    After saving the order, a Purchase Requisition is generated for the Schedule Line 0002..
    MY QUESTION:
    Is this possible using the BAPI_SALESORDER_CHANGE without changing the dates on the schedule lines or deleting any schedule line
    Thanks
    Kumar

    Hello Kumar,
    Please check the User exit and let us know whether your requirment is met or not.
    #USEREXIT_MOVE_FIELD_TO_VBEP
    Use this user exit to assign values to new fields at the level of the sales document schedule lines.
    The user exit is called up at the end of the FORM routine VBEP_FUELLEN.
    Regards,
    Sarthak

  • Which user-exit or BAPI triggered when a schedule line is changed

    Dear All,
    Does anyone know which user-exit, enhancement or BAPI is triggered when we do change on schedule line item?
    Let's say, I have two line schedule line item, then I do change for delivery date. After triggered "Item Availability" button, system will accumulate confirmed Qty on first line and second line into first line. And then the second line will remain zero.
    I need to know, which enhancement or user exit or any standard FM do this process.
    I searched, but not found any user exit or enhancement that will go through.
    Best regards,
    Dinivian.

    Hi,
    For MFBF there are sollowing user-exits....
    XMRM0001 - Backflushing in Repetitive Manufacturing.
    PTRM0001 - For lead column in REM planning Table.
    SAPLRMPU - Customer Exit for Article Staging.
    Reward points if useful....
    Regards
    AK

  • Schedule Line Date Changed By Standard Code After User Exit

    We've implemented USEREXIT_MOVE_FIELD_TO_VBEP to conditionally change the schedule line date (it changes VBEP-EDATU) when sales orders are being created.  This functions correctly when VA01 or EDI is used.  However, when the order is created using BAPI_SALESORDER_CREATEFROMDAT2, standard code executing after the user exit changes the schedule line date to an incorrect value. 
    The user exit correctly changes the schedule line date; then later on in the execution subroutine VBEP_FUELLEN_VBEPKOM in include FV45EFEP_VBEP_FUELLEN_VBEPKOM is executed which changes the date on line 37 using the value in US_VBEPKOM-EDATU.  US_VBEPKOM-EDATU is in scope in the user exit, but earlier in subroutine VBEP_FUELLEN_VBEPKOM (line 12 to be exact) this variable is updated with the value in US_VBEPKOM1-EDATU, which is not in scope during the user exit.  So, USEREXIT_MOVE_FIELD_TO_VBEP doesn't have access to US_VBEPKOM1-EDATU and can not ensure that the correct value is used later on in subroutine VBEP_FUELLEN_VBEPKOM.
    I noticed at the end of subroutine VBEP_FUELLEN_VBEPKOM it calls USEREXIT_MOVE_FIELD_TO_VBEPKOM.  I could update VBEP-EDATU here to correct the error whenever the order is created using the BAPI, but it would be nice to have a solution that could be implemented only in USEREXIT_MOVE_FIELD_TO_VBEP without also having to implement USEREXIT_MOVE_FIELD_TO_VBEPKOM.
    So my question: is there a way to update the schedule line date in USEREXIT_MOVE_FIELD_TO_VBEP where it won't be changed later in subroutine VBEP_FUELLEN_VBEPKOM when the order is created using the BAPI?

    Hi Caetano,
    thanks for your suggestion
    Yes, we use firm zone for few of the vendors. there the system don't change the schedule lines.
    Also for the stock transfer PR's there is no firm zone and the lead time is one day. in this case it changes everyday after the MRP run.
    the stock transfer PR's leads to the creation of Schedule lines from the source plant. Since this PR gets changed everyday. the alerts coming out of MD07 gets changed and we really did not know if this order is delayed or not.  In the source plant we use the firm zone to avoid moving the schedule line. But then the alerts are always not correct.
    is there any setting which helps in not moving the PR everyday without using " start in the past"
    thanks
    Nagendra Kumar

  • Schedule line quantity changed by MRP with in firm zone

    Hi,
    We have a schedule agreement with firm zone maintained and MRP binding indicator blank is maitained in additional data at item level. But we have seen schedule line quantity has been changed after MRP run. I dont understand how its possible....please help
    Regrds,
    Raghu

    If the qty is not transmitted to the vendor using message transmission, system does not firm the qty with in planning time fence.
    So pls chk your planning time fence as well.
    Also pls chk the below link
    http://help.sap.com/saphelp_46c/helpdata/en/f4/7d2a5b44af11d182b40000e829fbfe/content.htm
    BR,
    Krishna

  • Schedule line data change in Sales order

    Hi,
    Is there any FM to update the confirmed quantity BMENG (Confirmed qunatity filed in Schedule line data) of a Sales order?
    I have checked BAPI "BAPI_SALESORDER_CHANGE" but couldnt find a field for confirmed quantity.
    Thanks,
    Manoj

    Hi manoj,
    You can do it in userexit_move_field_to_vbep..
    Remeber to change both xvbep as well as vbep field values..
    also modify structure xvbep for the cureent loop pass..
    it should work..
    For eg:
    LOOP AT XVBep.
        xvbep-field1 = value
              MODIFY XVBep  TRANSPORTING field1.
        ENDLOOP.
    vbep-field1 = value
    Can u check this..
    Best Regards,
    navin fernandes.

  • Schedule line category change

    Hi,
    I am changing itemcategory when shipping type is changed at header level. But for this changed itemcategory schedule line category is not changing. I tried this piece of code in FORM USEREXIT_MOVE_FIELD_TO_VBKD.
    IF SVBEP-TABIX > 0.
      VBEP-ETTYP = 'YT'.
    ENDIF.
    It's going inside the loop. But it's not populating to the screen ?
    Any ideas I tried in FORM USEREXIT_MOVE_FIELD_TO_VBEP. too, but no luck??????

    Hi Subha,
    Please try to code.
    USEREXIT_MOVE_FIELD_TO_VBKD.
      IF SVBEP-TABIX > 0.
        XVBEP-ETTYPP = 'YT'.
        XVBEP-UPDKZ = 'C'.
      ENDIF.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Dropship PO schedule line date changes and impact in SO

    Hi,
    Please suggest where senario; Drop ship PO created and Changed Schedule delivery date on Purchase order and automaticaly changes in Sales order schedule line level.
    SO- PR - PO
    Senario1;
    When Vendor not confirms requested delivery quantity on date, he confirms partially qty and later confirmes remaining quanity. When we split in Purchase order delivery schedule directly it will not update at sales order it confirms and changes initially qty only on SO schedule line level. how can i copy back to sales order schedule qty partial split done on PO.
    Senario2;
    When SO created and PR - PO generated later when we Add new line item in SO or Directly add PO line item how can i make sync between the two documents automatically.
    SO Schedule delivery date and PO schedule delivery date how can i see the link b/w to document back to back updates automatically when we change any one doc.
    Thanks in advance
    JACK

    Hi Caetano,
    thanks for your suggestion
    Yes, we use firm zone for few of the vendors. there the system don't change the schedule lines.
    Also for the stock transfer PR's there is no firm zone and the lead time is one day. in this case it changes everyday after the MRP run.
    the stock transfer PR's leads to the creation of Schedule lines from the source plant. Since this PR gets changed everyday. the alerts coming out of MD07 gets changed and we really did not know if this order is delayed or not.  In the source plant we use the firm zone to avoid moving the schedule line. But then the alerts are always not correct.
    is there any setting which helps in not moving the PR everyday without using " start in the past"
    thanks
    Nagendra Kumar

  • Schedule line date change

    Hello Gurus,
    I want to change Schedule line delivery Date and time when shipping type (vbkd-vsart) = 'Z5'(one of the shipping method). I tried :userexit_move_field_to_vbep, userexit_move_field_to_vbkd. No luck. Any ideas will be appriciated.
    Thanks
    Sam

    I tried with userexit_move_field_vbep but no luck.
    Bala: i can use the save_document user exit but if i go and see the schedule line it will show the old date and time. I think that is usefull when saving the application.
    Sorry, i forgot to mention one more thing.. i.e., user can change the date and time using 'fast change of' option in menu bar.
    Please let me know which field do i need to change to change the date. I tried VBEP-EDATU and VBEP-EZEIT.
    Thanks in advance
    Sam

  • Schedule line date change in VA01/VA02

    Hi,
    My requirement is to update the schedule line date taking the lead time from purchasing info record.
    As per SAP standard it takes the factory days into consideration while generating the confirmed delivery date.
    But we have to update the date taking the working days into conideration.
    The material has multiple vendors.
    The actual vendor proposed by the sstem and the corresponding info record details are not available at the time of saving the sales order.
    I am populating this details from exit EXIT_SAPLMEQR_001 inside FM ME_SEARCH_SOURCE_OF_SUPPLY which is triggered before creating the purchase requisition.
    USEREXIT_MOVE_FIELD_TO_VBEP cannot be used because this is triggered at the very early stage before the FM is triggered.
    Can some one please guide me who has worked on the similar situation to solve this problem.
    Many Thanks.
    Regards,
    Babul.

    Use the form routine "USEREXIT_SAVE_DOCUMENT_PREPARE" in 'MV45AFZZ".  Modify the field "edatu" in strucutre "xvbep"
    Regards
    Vinod

  • Display msg when Schedule line is changed

    Hi Experts,
    I have a requirement that when Schedule line qty is made zero then an error msg should be displayed.
    Msg should be displayed as soon as qty is made 0 and enter is pressed and at the time of saving it.
    I have tried to code in User exit field_modification, but still it does not work.
    Plz suggest the way in which this can be achieved.

    This code is in MV45AFZZ:   userexit_field_modification.
    DATA: v_days TYPE VTBBEWE-ATAGE,
           vbep_edatu  Type VTBBEWE-DBERVON,
           V_sydat     TYPE   VTBBEWE-DBERBIS,
           n type N,
           V_change type c value 'N'.
    constants: c_item_cat type string value 'TAPA'.
    Data : ls_vbap_posnr type string.
    DATA : LIT_VBAP type STANDARD TABLE OF VBAP with header line ,
             WA_VBAP TYPE VBAP.
    DATA :LIT_OLD_VBEP type STANDARD TABLE OF vbep WITH HEADER LINE,
             WA_VBEP TYPE VBEP.
    check sy-uname = 'CCHAUHA1'.
    *SELECT VBELN POSNR ETENR LFREL EDATU WMENG  FROM VBEP into CORRESPONDING FIELDS OF TABLE LIT_OLD_VBEP
       WHERE  vbeln = xvbep-vbeln.
    *SELECT KEVER FROM VBAP into CORRESPONDING FIELDS OF TABLE LIT_VBAP
    WHERE  vbeln = xvbep-vbeln.
    IF SY-TCODE ='VA32'AND  XVBAP-PSTYV = 'TAPA' and VBAK-VBTYP =  'E'
                        and vbak-auart = 'ZLZ' OR vbak-auart = 'ZLP'.
    *Loop at xvbep where VBELN = xvbep-VBELN.
          V_sydat = sy-datum.
         vbep_edatu = xvbep-edatu.
         CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
           EXPORTING
             I_DATE_FROM = V_sydat
             I_DATE_TO   = VBEP_EDATU
           IMPORTING
             E_DAYS      = v_days.
         IF  v_days > 0 and v_days <= WA_VBAP-KEVER
                        and  VBAK-VBTYP =  'E'
                        and vbak-auart = 'ZLZ' OR vbak-auart = 'ZLP'.
             READ TABLE lit_old_vbep INTO wa_vbep index sy-tabix.
           IF wa_vbep-WMENG ne xvbep-WMENG ."and xvbep-posnr eq lS_vbap_posnr.
             MESSAGE 'Quantity zero not allowed ' TYPE 'E'.
            ENDIF.
         endif.
        ENDLOOP.
    *ENDIF.

Maybe you are looking for