Using BAPI_SALESORDER_CHANGE to update the delivery date

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
Please try to use a meaningful subject.
Edited by: Rob Burbank on Feb 25, 2009 2:08 PM

give a meaningful title to ur thread, so that, people get u back quickly. Just tip that, try to do ur requirement online, then Observe How the system is behaving....thanq

Similar Messages

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

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

  • Using DTW to update the Item Master Data attachment tab

    Hi Experts,
    Has anyone tried using DTW to update the Attachments Tab on the Item Master Data please?  I tried a few things (similar to importing an attachment to an activity) and couldn't get it to work.
    I couldn't see that anything to do with the Attachments Tab was exposed in DTW when looking at the mapping fields and also when looking through the options available in the Items Object under Customize Templates - but then I might not be seeing it correctly!
    Any ideas or solutions would be great.
    Many thanks,
    Caroline

    Hi Caroline,
    AtcEntry is correct for the document, this relates to the AbsEntry in OATC, which then in turn links to AbsEntry in ATC1.
    There are a few fields that need to be populated in ATC1:
    AbsEntry
    Line - To be used if more than 1 Attachment
    SrcPath - for the file path
    Filename - for the file name
    FileExt - for file type - i.e. .pdf
    You may be able to configure DTW to import these as a manually created DTW but I suspect that OATC and ATC1 are not open to the Di which will stop it. Coincidently I have been looking at Task Centre to update these but have encountered the same problem
    Regards
    Sean Martin

  • Update of delivery date on purchase order line

    Hi,
    Is it possible that the delivery date in the purchase order is automatically updated. When the required delivery date changes in the sales order when there is a link between the two?
    If yes, how?

    Thank You!
    My problem is solved regarding DELIVERY_DATE but I am getting new problem .
    I am getting error message
    "Control indicators for controlling area UPS do not exist"
    when I use BAPI BAPI_PO_CREATE1 . 'UPS' is the new controlling area that in which I am creating the Purchase order.
    Please suggest me some solution.
    Thanks,
    Sonali.

  • Material availability date can not be after the delivery date

    Dear Experts,
    we are using the following scnario,
    1. Once the user creates the sales order, automatically system creates PO in the background.
    we have created Bapi program for creation of Background PO in SD User Exit.
    The following issue occurs in Prd, DS1, QS1 server, We have done Technical upgradation project, Now when we creates sales order automatically po created with error message of Material availablity date can not be after the delivery date. even sales order no also not updated in the PO.
    QAS server (without technical upgrade) i refered the same input parameter and used the same and create the sales order system generates PO automatically without error message.
    Does any one can through lights on this issue,
    Thanks and Best Regards,
    Muralidharan S

    Hi
    The dates are determined due to shipping and transportation scheduling settings. So check whether the shipping and transportation scheduling is being performed as per the cofiguration settings after Technical upgrade. Since the MAD date should not be after Delivery date but it seems that the dates are not determined properly.
    Also check the Transit  time, Loading time, Pick/Pack time and Lead time are retained as same as before the technical upgrade. Use the QAS server settings to validate the settings in other servers.
    Regards
    Rajkumar K

  • Updating the delivery document once the picking is done :

    Hi Iam designing a custom screen,
    Here i have a icon for automatic picking, should be a check box for that, if it is once checked all the lines items in the transaction should be automatically picked as of the delivery quantity.(The delivery quantity should be copied automatically in picking column if auto Picking is selected).
         Once the picking is done, and hit SAVE, then the data should be updated automatically to delivery document, all the picking quantities should be copied to delivery document for those concerned line item. The picking quantity should update field LIPSD-PIKMG, in delivery picking tab.
    Please advice how we can achieve this.
    Edited by: vinay raj on Jun 19, 2009 12:52 PM

    yes iam using the same function module.
    But for some reasons this function module is not updating the delivery document.
    Any suggestions.
    iam writing the code like this :
    LOOP AT IT_PICK.
        hvbpok-vbeln_vl = it_pick-vbeln.----
    delivery number
        hvbpok-posnr_vl = it_pick-posnr.----
    delivery item
        hvbpok-posnn = it_pick-posnr.----
    i have doubt here
        hvbpok-vbeln = it_pick-vgbel.----
    doubt here.
        hvbpok-vbtyp_n = 'Q'.
        hvbpok-ndifm = 0.
        hvbpok-taqui = ' '.
        hvbpok-charg = it_pick-charg.
        hvbpok-matnr = it_pick-matnr.
        hvbpok-lfimg = it_pick-lfimg.
        hvbpok-pikmg = it_pick-PICQTY.----
    picking quantity
        hvbpok-brgew = it_pick-brgew.
        hvbpok-gewei = tvblkp-gewei.
        hvbpok-volum = tvblkp-volum.
        hvbpok-voleh = tvblkp-voleh.
        hvbpok-orpos = 0.
        APPEND hvbpok.
      ENDLOOP.
      VBKOK-KZLSP = 'X'.
    *insert default value for test
      VBKOK-VBELN_VL = l_vbeln.----
    Delivery number.
    BREAK SKUMAR.
      CALL FUNCTION 'SD_DELIVERY_UPDATE_PICKING'
        EXPORTING
          VBKOK_WA                     = vbkok
          NICHT_SPERREN                = 'X'
          AUFRUFER_T                   = 'X'
        TABLES
          VBPOK_TAB                    = hvbpok.
      IF SY-SUBRC EQ 0.
        COMMIT WORK.
    Edited by: vinay raj on Jun 23, 2009 6:58 AM

  • How to get the Delivery date in PO line Item in SAPScript

    Hi Gurus,
    I am working on PO Script (MEDRUCK). I copied the Standard to a Z form. ZMM_MEDRUCK, Now I need to print the the Header text at the end of MAIN window.  I put Iem number along with the other line Item informmation like stanadrd PO Script MEDRUCK. I also want to show the delivey date with line Item, so Itried to use EKET-EINDT but it is returning the delivery date of last line item, means while printing the first line and other information it is showing the delivery date of the last line item, I tried with the  PEKPO-EINDT it is also not working.
    Can any body suggest me how i can get the delivery date for the respective line Item  ?
    Regards
    Sony

    actually your are picking up the correct data from Table EKET (EKET-EINDT) but your are printing that in item data loop for EKET might have already executed in your script and the header of that internal table consist the last entry of the table so for that. Fetch the delivery date explicite from the Table EKET when your in item level processing and print that.
    For Example u can use this code.
    To print you have write the this code in Script item level printing window "MAIN" window
    Following perform is called to get the line item delivery date in PO
    {/: PERFORM GET_DEL_DATE IN PROGRAM ZPerform_prog
    /: USING &EKPO-EBELN&
    /: USING &EKPO-EBELP&
    /: CHANGING &DEL_DATE&
    /: ENDPERFORM}
    {* Dellivery date &DEL_DATE& }
    write the below code in the Z program "ZPerform_prog"
    { FORM get_del_date  TABLES in_par STRUCTURE itcsy
                             out_par STRUCTURE itcsy.
      READ TABLE in_par WITH KEY 'EKPO-EBELN'.
      CHECK sy-subrc = 0.
      $_po_no = in_par-value.
      READ TABLE in_par WITH KEY 'EKPO-EBELP'.
      CHECK sy-subrc = 0.
      $_po_line = in_par-value.
      SELECT *
      FROM eket UP TO 1 ROWS WHERE ebeln EQ $_po_no AND ebelp EQ $_po_line.
        $_del_date = eket-eindt.
        CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
          EXPORTING
            date_internal            = eket-eindt
          IMPORTING
            date_external            = $_del_date
          EXCEPTIONS
            date_internal_is_invalid = 1
            OTHERS                   = 2.
        READ TABLE out_par WITH KEY 'DEL_DATE'.
        CHECK sy-subrc EQ 0.
        out_par-value = $_del_date.
        MODIFY out_par
                    INDEX sy-tabix.
        CLEAR : $_po_no , $_po_line ,$_del_date.
      ENDSELECT.
    ENDFORM.                    "GET_DEL_DATE }

  • How to adjust the delivery date in PR generated by MRP

    Hi.
    We use MRP to generate PRs. The PRs are generated and the delivery date is also being calculated based on PR processing time + planned del. time + GR process.time.
    However my requirement is that the delivery date in the PR should be always Tuesday for the week we need the parts.
    E.G. Say MRP run has created a PR with delivery date as 28.02.2008, then system should automatically shift that date to Tuesday's date 26.02.2008 for that week.
    IF PR delivery date as per MRP is say 03.03.2008 (Monday), then system should automatically make it to Tuesday's date 04.03.2008.
    so in short , each and every PR generated for any vendor , the delivery date should be always the tuesday's date in front of the week we need the parts.
    So is there any standard setting or functionality available in SAP to achieve the same.?
    IF not, then is there any user exit to achive the same.?
    Pls help.
    Thanks and regards

    Can you please help me by informaing how can I run Time phased planning.
    My requirement is that MRP Run should give me the PRs with delivery date as Tuesday. Say planned del.time is 28 days . Pur.proc.time is 2 days and GR procee.time is 1 day.
    I want to run MRP every week. and. How can I set up period and what to set.?
    Questions:
    1) Calculation rule: Weekly with 'perid begins on (2)  Tuesday?
    2) Minimum period: 1 day. Is it right?
    3) Valid from and valid to date: I am specifying as per my requirement: (how much it should be?)
    4) How to run MD03.
    Any general guideline on how timephased planning woks?
    Like we need to run every week on spcified day , it generates requirement for the weeks in question only , or etc etc. .
    I have never used timephased planning. So can you please help me.
    Thanks
    Bharat

  • System does not propose the delivery date based on factory calendar

    Hi,
    I am creating a sales order for a delivery date for this sat which is (2/22/09)
    I have maintained 2 separate calendars for
    1) shipping point
    2) for the route
    The route has a transit time of 1 day and the calendar has sat and sunday as non working.
    the Shipping point has a pick/pack time of 1 day and the calendar has sat and sunday as non working
    The material is available in the warehouse
    Now when i create this sales order i enter the delivery date as 2/22/09, the system does not propose me the delivery date of monday (i.e 2/23/09) It accepts the 2/22/09 delivery date.
    In the schedule line i do see the date as 2/22/09 only.
    The delivery was created with the following dates
    Picking = 2/17/09
    Transportation Planning = 02/18/2009
    Loading =02/18/2009 
    Planned GI= 02/18/2009
    Delivery Date = 02/22/2009
    How can the system give me the delivery date of a sunday when the calendar doesnt allow sunday as working day.
    Also the route time is 1 day in transit so i am not sure why the system is proposing a 3 day transit time?
    Can any one explain the behaviour of SAP for the delivery date logic

    Dspsac,
    Delivery date can be any date.  For instance, if your customer insisted on a Sunday delivery, you would accommodate him, regardless of any calendar.
    From the delivery date, the system counts backwards USING THE FACTORY CALENDAR ASSIGNED TO THE ROUTE by the number of days in the route.  You have to consult the FC assigned to your Route to determine if the GI date has been properly calculated.
    From the GI date, the system counts backward Pick/pack time, using the shipping point calendar, to arrive at Material availability date.
    Calculations are explained in SAP online help
    [Transportation and Delivery Scheduling|http://help.sap.com/erp2005_ehp_04/helpdata/EN/dd/5607e7545a11d1a7020000e829fd11/frameset.htm]
    Regards,
    DB49

  • How to prevent multiple users from updating the same data in coherence

    Hi,
    I have a Java Web Application and for data cache am using coherence 3.5. The same data maybe shared by multiple users which maybe in hundreds. Now how do I prevent multiple users from updating the same data in coherence i.e. is there something in coherence that will only allow one user a time to update. If one user is in a process of updating a data in coherence and some other user also tries to update then the second user should get an error.
    Thanks

    I have a question on the same line. How can I restrict someone from updating a cache value when I a process is already working on it. I tried locking the cache key but it does not stop other process to update it , it only does not allow other process to get lock on it.

  • Block GR if GR date before the delivery date in the PO

    Dear all,
    A key-user would like to avoid goods receipts to be posted if the date of the goods receipts is before the delivery date in the PO. The key-user wants to refuse systematically delivery from the supplier which is sooner than the delivery date in the PO.
    For example, in the PO, the delivery date is August 7th 2010. To make a GR for this PO, the user uses MIGO, inputs the PO. As today is August 5th 2010, the GR should not be accepted by the system. How to customize that?
    Another solution is to display the delivery date of the PO in MIGO so that the storehouse person can check directly the date of the delivery in the PO. That way, this person can check by itself whether the GR should be done or not.
    Thanks a lot.
    Olivier

    Hi
    This is standard SAP Customization.You an set message as Warning or Error message .
    The customization path is MM-Purchasing-Environment Data-Define attributes of system messages.
    Please let me know if it helps.
    Regards

  • Why the delivery date is the same date as 'transptn plan date" & loading date' & ' good issue' & GR end date'

    Hi Experts,
    why the delivery date is the same date as ‘transptn plan date” & loading date’ & ‘ good issue’ & GR end date’.
    in shipping tab i can see Planned Deliv. Time  170 Days ... wat could be the reason.
    Many Thanks:
    Raj Kashyap

    Hi Jurgen,,
    Thanks for quick reply!!
    But i didnot find any things like that .. what could be the customizing .. and we are using GATP from APO side.
    \Raj Kashyap

  • While i send the delivery date to BAPI for PO create,it still going for ATP

    Hi Friends,
    while creating PO through BAPI I am sending delivery date to "BAPI_PO_CREATE1" in the schedule lines ,but still it is picking the delivery dates from the ATP.
    I want my delivery dates to be populated in the PO rather than the ATP.
    Please suggest.
    Do we have any new BAPI i am using R/3 version 4.7.
    Thanks Regards,
    Sandipan Jena

    There seems to be lot of threads in SDN and OSS Notes( 770120)
    bapi_po_create1 - enjoy purchase orders

  • Can the Delivery Date be left with no value in Purchasing Order?

    Hi SAP Experts,
    Good day!  I just want to ask if it is possible for the Delivery Date in the Purchase Order to be left with no value?  Whenever we remove the delivery date, it comes back when we save the PO.  Is there a way for it to be blank?
    Thanks,
    Matt

    hi Senthil P,
    Here is the situation.  For most of the PO that we are creating, we rarely use the delivery time.  However, there are rare occasions where we put the delivery date.  We made an enhancement of our PO print out and the date in the delivery date field was taken from the table.  Is there a way where the delivery date in the printout can be left blank and show it when we need to?
    Thanks,
    Matt

Maybe you are looking for

  • PFS status in ALV report.

    Hi, How can we set PFS status in ALV report.Please tell the procedure. Thanks in advance.

  • Regular Expression replacement not working

    I am trying to use a regular expression to replace non-ascii characters on a file, and I'm afraid I've reached the end of my regex knowledge.  Here is the specific code 'Set the Regular Expression paramaters Set RegEx = CreateObject("VBScript.Regexp"

  • Music app on iPad With iOS 5

    I updated my iPad to iOS 5 and when I went to the music app I couldn't find the shuffle button so I was wondering if their is one and if their is where is it

  • Vlan on asa-5585

    Hi, Is there any way to create vlans on cisco asa 5585 similar way we do for cisco switches. The asa in this case is an interface for subsidary users to connect into this new network. We require few vlans to be created for some servers on the firewal

  • Include DFF in Notifications Detail page

    Hi, We have added a DFF in the Intercompany transaction creation in AGIS. We would like to display this DFF in the Notifications Detail page when the approver recieves the notification so that the information in DFF can be used for this purpose. Is t