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

Similar Messages

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

  • 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

  • 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 is considering Sat and Sun

    Our facoty calendar (US) does not include any Saturday or Sunday as a workday.  However, when we enter an order for 3 day delivery, Saturday and Sunday are counted.  The schedule line date changes ONLY if the 3rd day falls on a Saturday or Sunday.  For instance, and order entered on Friday, the 18th will bring in a schedule line date of Monday, th 21st.  This is 3 days, but we don't work on Sat or Sun, so we really need to the schedule line date to be Wednesday, the 23rd.  Now if we enter the order on Thursday, the 17th, the schedule line date will still be Monday, the 21st because the 3rd day fell on a Sunday.  Is there any way NOT to count Saturday and Sunday at all as workdays?  Thank you for your help.

    What function you choice?  please show with me, my company has the same trouble, I think SAP not good in this function (Propose the delivery date)
    Thanks so much.
    Edited by: hieulm_VietNam on Feb 24, 2010 8:07 AM

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

  • Change schedule line date

    Dear All,
    I have a requirement where required delivery date for one divisions material
    in sale order and STO should automatically propose todays date plus 10 days i.e.
    if any sale order or STO created today then required delivery date in STO and
    SO should show 24.10.2010.
    Accordingly we have maintained planned delivery time in material master 10 days in MRP2
    view and it is working fine but another requirement is that user can reschedule the
    delivery and he can change the schedule line date in So (RV45A-ETDAT) before or after
    10 days in VA02 but it is not allowing to change it is considering todays date + 10 days.
    In STO it is allowing for change the delivery date (MEPO1320-EEIND).
    Plz advice how I can make the field RV45A-ETDAT changeable in sale order through VA02.
    Regards,
    sps.

    Hello,
    If you want a sales order to have the requested delivery date automatically populated with today's date +10 business days, this can be maintained via the following SPRO path:
    SAP IMG --> Sales and Distribution --> Sales --> Sales Documents --> Sales Document Header --> Define Sales Document Types
    Go into the sales document type you would like to maintain.  In the section "Requested delivery date/pricing date/purchase order date", there is a field Lead Time in Days.  Put 10 in here, and the requested delivery date will automatically be set to +10 days when an order is being created.
    Planned delivery time in the material master is for when you're out of stock and the system proposes the next available delivery date.  If you have stock on hand, when the availability check runs the system will use the line level delivery date.  At order entry, when a line item created this line level delivery date is taken from the requested delivery date.
    I hope this helps you.

  • 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

  • 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

  • Change schedule line date in VA01

    hi frnds,
    in VA01 after giving the material number and quantity system will go to AVAILABILITY CONTROL screen. here SAP will give delivery date and confirmed qty according to quantity of first screen.
    now i need to change these dates based on one field (customised field "vendor" of item level).
    where i need to write the logic?
    points will be rewarded for helpful answers
    regards,
    balu

    hi Krishna,
    i have tried it with break point. initially it was triggering. it means after giving the material number and quantity it stopped in break point. but after giving the vendor in ADDITIONAL DATA B tab of item level, it was not stopping there.
    i need to write the logic after giving the vendor, schedule line dates should modify.
    Regards,
    balu

  • How to get schedule line date copied to "First date" in sales order

    Dear forum
    I am creating a sales order as normal and put in a Requested Delivery Date (KETDAT) for the order.
    This requested delivery date is then copied to the "First date" (ETDAT).
    Now, the ATP is checked for each line item in the order and a Schedule line date / material availability date is calculated for each line item.
    My question is: Is there any way to have the "First date" field of the line item in the sales order populated by the first material availability date (calculated by ATP), instead of copying the Requested  Delivery Date? Any user exit? Any config?
    It would mean that every time I rerun ATP check in the sales order line item, the "First date" field would change if the material availability date change. If there is multiple material availability (multiple schedule lines) dates per line item, then the earliest date would be copied to the "First date" field.
    Is there such functionality? Or possibility to config/program?
    /Ola

    Kannan
    OK. Unfortunately reservations cannot be created at the serial number level. So the unsupported way of doing this is updating the mtl_serial_numbers tables. I hope you would know (by some means) which serial numbers you want to allocate to a specific sales orders. If you know, update group_mark_id column in mtl_serial_numbers table with your order_line_Id, This will avoid any one from picking the serial numbers (they will not come up in the LOV or will not be auto allocated).
    But you have to make sure to take it off when you actually want to pick this order line and allocate this serial number. So just before you pick release/ confirm this order line you need to update column back to null so that you can allocate that serial number.
    Thanks
    Nagamohan

  • Schedule Line Date Showing in future in Sales Order though the Stock is available in system on same date

    Hello All,
    Good Morning,
    We have received an Incident where in the Sales Order during the ATP Check we do user is getting the future schedule line date in future as enclosed in the screen shot below. User has created the Sales Order on 12052014 for 7 line items. For the Line Item 7 the Stock is available in the system on same day but still after ATP Check the date is shown in future.
    I wan to replicate the scenario in Quality to find the exact bug to fix the Issue but not able to replicate for same customer and material i am getting the current date as confirmed delivery date. please guide me if you can share some inputs so that i can go in right direct and fix the issue.
    Please respond it is critical Issue.
    Thanks,
    Farhan.

    Hello All Experts,
    Many Thanks for all the Inputs you have given.
    Finally we have replicated the Issue in Quality 2 Days Back and Indeed it was great Achievement.
    Finally We have given to Abaper to debug it find the root cause.
    Let me summarise the actual Issue.
    Issue : Sales Order Schedule Line showing future date for the Materials which are having Product Allocation even though the Stock is available and Allocation Qty also available in the PA Master Data we maintained..
    We created one Sales Order for Line Item A and B. Line Item A is having Product Allocation. When we created Sales Order for both Line Item A and B we got Schedule Line Date as 13.06.2014. Then we Schedule the Re-Scheduling Job in V_V2 and check the effect. For Line Item A the Schedule Line Date got changed to 01.07.2014 and Line Item B it was same as before.
    Would like to know is there any config setting at Schedule Line Level we have missed just want to cross check if there is any or something in Product Allocation Configuration.
    Please refer screen shots below for more details of Sales Order before and after effect in Re-Scheduling.
    Please provide your inputs on this.
    Thanks,
    Farhan.

Maybe you are looking for

  • Error in BEx Broadcaster

    Hi All, I am using BI 7.0 and SAP NetWeaver    Portal 7.0. i have created settings for broadcasting query and scheduled it successfully. But when i execute it i came across the below error. Java system error: call FM RSRD_X_PRODUCE_PROXY to ProgId MC

  • Photo Album -  Photo View Count-

    i am using php mysql and create Photo Album now i want to show no of user view by photo if someone know please tell me Thanks in Advance

  • Convert executable and supporting files to msi

    Hello all, Wanting to know if it is possible, or if anyone has tried, to roll a labview executable and supporting files into a .msi microsoft installer package.  Wanting to do this for its auto exection and encryption.  I have attempted using third p

  • Error in Leave Application

    Hi, We are getting the following error in the Leave Application. Application error occurred during request processing.  Details:          com.sap.tc.webdynpro.services.sal.core.DispatcherException: Wrong WebDynpro-URL: no application name specified E

  • Embedding an Interview into a webpage

    We can embed the wizard within a page using an iFrame, but when we do this it keeps saying that "The interview session has expired.".  Can anyone assist in troubleshooting this issue?