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.

Similar Messages

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

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

  • What is process through which schedule lines are cofirmed in Sales Order

    What is the process through which schedule lines are cofirmed in Sales Order

    Hi,
    Schedule lines get confirmed on the basis of backward or forward scheduling carried out by system based on Material Availability date.
    Regards
    SD
    Message was edited by:
            Samier Danish

  • Third Party process - billing date change in Sales order / Customer Invoice

    Dear Friends,
    In Third Party Sales Process , as we are aware  billing is order related billing and it will become due only after vendor invoice is received.
                   My situation is in the original sales order billing date is eg: 01.02.2009 . The subsequent vendor invoice ( Invoice receipt done based on PR --> and PO)  has a later date eg: 05.02.2009 .
    This means that the customer biling can be done only after this date.  
    How the system behaves in this case wrt to the billing date ( 01/02/2009) of the original sales order.
    Regards
    Mahesh
    Edited by: Mahesh sap on Feb 4, 2009 8:55 AM

    Hi all ,
             Thanx all for your responses . But my case is a bit peculiar . Here the vendor invoice is coming by IDoc through EDI . When EDI flow is confirmed, the billing date is pushed ahead. As per billing calendar  in CMR the customer can be invoiced only on the last date of the month. 
    As a result if the original billing date in the sales order is Feb end, when vendor invoice received through EDI , the billing date is shifting to march end .
    Is it because the date of vendor invoice is causing this?  Obviously the customer billing date falls only after vendor invoice date.
    Regards
    Mahesh

  • 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

  • Two schedule lines when release a sales order.

    I set complete delibery (so that it has just one schedule line) in a sales order but it has been blocked because of credit limit has been exceeded.
    Anybody can explain me why the system set more than one schedule line in an order which has been released after credit limit control blocked it?
    Thanks in advance.

    D     26.06.2008     50.000     50.000     15.217
    D     15.07.2008     0     0     34.783
    I don't that matters but anyway, here you have the requested data. I'm checking the availability control and credit control customizing, just in case there are some settings that I can make to solve it.

  • Material Staging time in Schedule Lines (Shipping Tab) of Sales order

    Hi Gurus,
    I would like to know how the time is arrived at, in the Schedule line of a sales order.
    I have maintained the Working times in the Factory Calendar. via Route Dependent with Pick Pack time as 3 Hrs 30 Min.
    and working time in Shipping point is from 08:00 to 20:00 hours.
    When i create a sales order now, i could see that material staging time is determined.
    But now i would like to know, what time should be determined here.
    Thanks in Advance,
    Regards,
    Vasim.

    Hi,'
    The following link
    http://help.sap.com/saphelp_scm70/helpdata/EN/3a/92e217b3f54a5eae7a4ac8a99e5e87/frameset.htm
    details on material staging in GATP.
    Regards,
    Mrinal

  • To Put a Schedule line block while saving Sales Order

    Hi Experts,
    I have a requirement of putting an 'AH' block at schedule line. In the User exit USEREXIT_SAVE_DOCUMENT_PREPARE  i have coded it in the following manner.
         loop at xvbep where posnr = xvbap-posnr.
           xvbep-lifsp = 'AH'.
           modify xvbep index sy-tabix.
          endloop.
    However it is not putting the block when the Sales order gets saved.
    Please help me out.
    Regards,
    Anjali
    Edited by: Anjali Steeve on Oct 7, 2009 1:26 PM

    HI anjali,
    Try doin the same in this Form Routine: FORM USEREXIT_MOVE_FIELD_TO_VBEP  
    Guess it should work.
    Best Regards,
    Navin Fernandes.

  • 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 Lines and Confirmation on Sales orders.

    Hi all, here is a teaser for you to think about and comment.
    Ok we have a order line for a material that needs to be ordered into stock so we use the Item Cat TAB, this in turmn gives me a schedule line of CB.
    How ever as we do not use leadtime for materials the Qty is confirmed and a delivery can be created but until the item is GR'ed.
    What my questyion is is there any option to allow a REQ / PO to be created butr on the schedule line do not at the Qty confirm therefore not allowing a delivery to be created, but once the goods re GR's then allow the confirmation.
    Regards

    Hi,
    What my questyion is is there any option to allow a REQ / PO to be created butr on the schedule line do not at the Qty confirm therefore not allowing a delivery to be created, but once the goods re GR's then allow the confirmation.
    Yes there is an option for REQ/PO to get created and it can be done by following the below settings:
    Go to VOV6 tcode:
    Then, for your Schedule Line Category - CB make sure that in the Order Type field you have NB as option and also ensure that the P.req.del.sched. check box is tcked.
    For your second question, as may be the stock is not available, and once your GR is done -- you have your stock and hence the schedule line is getting CONFIRMED...
    Regards

  • Stock deficit when line item changes in sales order

    Hi expert
    i am using 4.7,i am getting deficit when i am pgi for sales order
    Scenario
    i have assigned serial number for material
    i have sales order of 5 lines item with total QTY 5, with sales order, i make PR,purchase order and migo, now some reason one of of line item od sales order get rejected, so we reverse all the step of migo and PO, then we create a new line item for sales order, then PR,purchase order and migo.
    Now i am doing PG for that Quantity i show deficit of 1 Qty,
    But in MMBE be agiant the sales order its showing me 5 Qty.
    If it is development, how do we achieve this.
    Let me know if you need more details on this. Appreciate your possible solutions to this.
    Thanks
    Rgds
    Nabil

    solve by own

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

Maybe you are looking for

  • TS2537 mail doesn't open from dock on my iMac; I have to go through Yahoo to get mail

    Mail doesn't open from dock on my iMac, even though top left of screen indicates mail is open

  • Can't Use my tones that i bought.

    I synced my iPhone to my existing itunes account on my computer and after that, i couldnt find my ringtones on my phone. But when my phone is connected to my itunes and i click on 'On This Phone' It says that they are there i can't click on them to p

  • JDBC Adapter - Connectivity

    I connect to Oracle Database using JDBC Adapter and the adapter is configured to poll every 300 secs. The Oracle Database goes down over the week end for maintenance. By the time I come Monday morning the Adapters are down and I have to reactivate th

  • OSB10gR3 - Application Deployment

    Hi, I have my applications running in linux. I deploy the application jar from my local path in windows ( by accessing sbconsole through IE and deploying through Import resources of System Administration). I want to know where the details of the appl

  • Apple's lossless and WAV

    I've seen a number of postings declaring that Apple's lossless format is identical in quality (but of course smaller in size) compared with WAV. However, I haven't seen any links to any official statements by Apple or trusted third-party sources on t