Updating delivery date in PO

How can I update the delivery date in Purchase Order after getting confirmation from vendor ? If I update item delivery date, I loose the original delivery date.

Hi,
You have to use this ASN or inbound delivery functionality for your requirement.
If you change the delivery date in PO it becomes a amended PO
Thanks
suresh

Similar Messages

  • Function Module or BAPI to update Delivery Date (LIKP-lfdat)

    Hello friends,
    I have a requirement to update Delivery Date (LIKP-lfdat) , is there any Function Module or BAPI to do that? any sample codes are appreciated.
    Thanks a lot!
    Edited by: Qiwei Yin on Dec 11, 2008 8:50 AM

    hi
    try this
    BAPI_SALESORDER_CHANGE
    hope this helps
    regards
    Aakash Banga

  • Bapi to update delivery date in confirmation tab in purchase order me22n tc

    Hi All,
    I am writing a BDC to update the data in confirmation tab for puchase orders for enjoy transaction.
    Please let me know how to updated delivery date in confirmation tab in purchase order(ME22N) using a bapi.
    I tried using BAPI_PO_CHANGE but found no parameter related to confirmations tab.  this BAPI has every thing to update like header data, item data, scheduling data..... except confirmation.
    So please let me know how to update the data in confirmation.
    We need to use only enjoy transaction ME22N not ME22 in BDC thats why we are looking for a BAPI.
    Regards,
    Venkat

    Hi
    Check the table parameter POCONFIRMATION in BAPI_PO_CHANGE
    U can see the field DELIV_DATE in the structure BAPIEKES.
    DELIVERY_DATE in the structure BAPIMEPOSCHEDULE as well.
    Regards,
    Dwaraka.S
    Edited by: Dwarakanath Sankarayogi on Feb 5, 2009 7:57 AM

  • Problem while updating Delivery date uisng BAPI_PO_CHANGE

    Hi friends,
    Iam facing a problem while updating delivery date of a purchase order using the bapi BAPI_PO_CHANGE
    After the bapi is getting triggered iam geting sy-subrc = 0
    But in the return parameters iam getting 3 error messages so iam unable to update the  delivery date..
    Error meesage which iam getting are
    a) Purchase order still contains faulty items
    b) Enter Tax Code
    c) Instance 1000001 of object type PurchaseOrder could not be changed.
    How can i correct it..
    Please find my code below
    LOOP AT it_eket INTO wa_eket.
        wa_poschedule-po_item = wa_eket-ebelp.
        wa_poschedule-sched_line = wa_eket-etenr.
        wa_poschedule-delivery_date = wa_eket-eindt.
        APPEND wa_poschedule TO poschedule.
        wa_poschedulex-po_item = wa_eket-ebelp.
        wa_poschedulex-sched_line = wa_eket-etenr.
        wa_poschedulex-po_itemX = 'X'.
        wa_poschedulex-sched_lineX = 'X'.
        wa_poschedulex-delivery_date = 'X'.
        APPEND wa_poschedulex TO poschedulex.
    READ TABLE IT_EKPO INTO WA_EKPO WITH KEY EBELN  = WA_EKET-EBELN
                                             EBELP = WA_EKET-EBELP.
          IF SY-SUBRC = 0.
          WA_POITEM-PO_ITEM = WA_EKPO-EBELP.
          APPEND WA_POITEM TO POITEM.
          WA_POITEMX-PO_ITEM = WA_EKPO-EBELP.
          WA_POITEMX-PO_ITEMX = 'X'.
          APPEND WA_POITEMX TO POITEMX.
         ENDIF.
        CALL FUNCTION 'BAPI_PO_CHANGE'
          EXPORTING
            purchaseorder = wa_eket-ebeln
          TABLES
            return        = t_bapiret2
            POITEM        = POITEM
            POITEMX       = POITEMX
            poschedule    = poschedule
            poschedulex   = poschedulex.
        READ TABLE t_bapiret2 INTO wa_bapiret2 WITH KEY type = 'E'.
        IF sy-subrc NE 0.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =.
          IF sy-subrc = 0.
            WRITE :  'DELIVERY DATE UPDATED'.
          ENDIF.
        ENDIF.
    how can i correct it...
    Regards
    Kumar

    Hi,
    Pass the following values...
    POACCOUNT LIKE BAPIMEPOACCOUNT...
    poaccount-TAX_CODE = ? (value)....
    That should take care of the missing field.
    Regards,
    Madan..

  • Problem in updating delivery date in va02

    hi abapers,
    my requirement is to update the delivery date in va02 at header level. i have this code in sapmv45a, include is mv45afzz,
    written code in move_fields_to_vbak.
    when ever iam running the va02 tcode i am getting my updated delivery date , when iam saving again this exit triggering so that again delivery date is updatting.
    here x is the updated date getting from z function module. iam pasing this value to below statement
    vbak-vdatu = x.
    so that how to stop triggering the code  while saving.

    hi abapers i posted the code, here the problem iam facing is that, when ever iam opening the va02  tcode updated delivery date  is coming but when ia msaving again this is triggering so that first updated date is again updating .
    here x is the day no comes from function module  in below code , iwll compare x with following zroutern  function module .
    suppose .
    updated date is 17.12.2010 so that i will push to vbak-vdatu = 17.12.2010. but here again date_compute_day is again calcultaing day from 17.12.2010 so that again that day  which is stored is x again compared to zroutern function module .
    here i aim is when ever i get updated date then  it shuold come out of this application .
    plese suggest .
    READ TABLE XVBAP INDEX 1.
    READ TABLE XVBPA WITH KEY  VBELN = XVBAP-VBELN
                               "POSNR = XVBAP-POSNR
                               PARVW = 'WE'.
    IF SY-SUBRC = 0.
      L_KUNNR = XVBPA-KUNNR.
      ENDIF.
      IF SY-UZEIT+0(2) >= 15.
        E_RDD = SY-DATUM + 2.
        ELSE.
          E_RDD = SY-DATUM + 1.
          ENDIF.
          IF E_RDD > VBAK-VDATU.
            OP_RDD = E_RDD.
            ELSE.
              OP_RDD = VBAK-VDATU.
         endif.
              CALL FUNCTION 'DATE_COMPUTE_DAY'
                EXPORTING
                  DATE          = OP_RDD
               IMPORTING
                DAY           = X.
      CALL FUNCTION 'ZROUTESCHEDULE'
        EXPORTING
         KUNNR         = L_KUNNR
        VSBED         =
          VSTEL         = VBAP-VSTEL
          ROUTE         = VBAP-ROUTE
       IMPORTING
         ZRETURN       = IT_RETURN.
    READ TABLE IT_RETURN INTO WA_RETURN INDEX 1 .
            IF       WA_RETURN-MONDAY    = 'X'.
                     wa_days-num = '1'.
             append  wa_days to it_days.
            ENDIF.
           IF        WA_RETURN-TUESDAY   = 'X'.
                     wa_days-num = '2'.
            append   wa_days to it_days.
           ENDIF.
           IF        WA_RETURN-WEDNESDAY = 'X'.
                     wa_days-num = '3'.
            append   wa_days to it_days.
         ENDIF.
           IF        WA_RETURN-THURSDAY  = 'X'.
                     wa_days-num = '4'.
           append    wa_days to it_days.
             ENDIF.
            IF       WA_RETURN-FRIDAY    = 'X'.
                     wa_days-num = '5'.
            append  wa_days to it_days.
             ENDIF.
           IF     WA_RETURN-SATURDAY  = 'X'.
                  wa_days-num = '6'.
         append  wa_days to it_days.
         ENDIF.
           IF    WA_RETURN-SUNDAY    = 'X'.
                 wa_days-num = '7'.
         append  wa_days to it_days.
            ENDIF.
    SORT IT_DAYS BY NUM.
    CLEAR WA_DAYS.
    IF NOT IT_DAYS[] IS INITIAL.    "#1 CHECKING
    READ TABLE IT_DAYS INTO WA_DAYS WITH KEY NUM = X.
    IF SY-SUBRC <> 0.
    IF NOT IT_DAYS[] IS INITIAL.
    LOOP AT IT_DAYS INTO WA_DAYS.
    IF WA_DAYS-NUM GT X.
      Z  = ( WA_DAYS-NUM ) - X.
      UP_DATE  = OP_RDD + Z.
      EXIT.
    ENDIF.
    ENDLOOP.
    ENDIF.
    SORT IT_DAYS BY NUM DESCENDING.
    IF UP_DATE IS INITIAL.
      IF NOT IT_DAYS IS INITIAL.
      READ TABLE IT_DAYS INTO WA_DAYS INDEX 1.
      Y = X - WA_DAYS-NUM.
      UP_DATE = OP_RDD + 7 - Y.
    ENDIF.
        ENDIF.
       VBAK-VDATU  = UP_DATE.
    ENDIF.
    CLEAR: X,UP_DATE,Y.
    ENDIF.   "#1 CHECKING
    ENDIF.    "1 YVBAK
    ENDIF.

  • Inbound idoc for updating delivery date of purchase order

    Hi All,
    Our vendor sends a delivery file consisting of delivery date and quantity(could be partial) for line items of a purchase order.
    I need to update the Purchase order line item with the delivery date and quantity sent from the Vendor. It should add a new confirmation line with custom confirmation category in the confirmation tab of the line item in the Purchase order.
    Each time we get a delivery file we need to add a new confirmation line in the confirmation tab of the purchase order line item.
    How can I get this working using inbound idoc processing? Which Idoc type should I use to solve my issue. Will ORDERSP work for my scenario?
    Thank you,
    Sonali.

    >
    sonali ashi wrote:
    > We have all EDI set up done for ORDERSP idoc in our system. Problem when I use this idoc type by default system is always adding confirmation catgeory 'AB' but we want our custom  category to be added instead of 'AB'.
    > Edited by: sonali ashi on Dec 23, 2010 9:47 PM
    Confirmation category used for order acknowledgement is define in configuation. You can change that from AB to your custom condition and EDI should pickup that.
    SPRO->Material Management->Purchasing->Confirmation->Define Internal Confirmation Category
    >
    sonali ashi wrote:
    > I have also noticed that 'AB' confirmation accepts only full quantity order acknowledgement through Idoc processing.
    > Manually I can add a "AB" confirmation for partial quantity but in the idoc processing it fails.
    > Edited by: sonali ashi on Dec 23, 2010 9:47 PM
    Check tolerance limit defined for confirmation category in 'Conformation Control' Node in SPRO at same level as above.
    Regards,
    Pawan.

  • Program to update Delivery dates of STO based on Material availability

    Hi,
    We have requireement in which, we need to material availability check for the materials on daily basis. This is only for Stock Trasnfer orders.
    Suppose there is STO ( Stock Transfer Order) 1 that has been created for material M1 for qty 20. The scheduled delivery date for the material is tomorrow. Now I create another STO 2 today for the same material and same quantity. The scheduled delivery date that was proposed was 7 days from today.
    Some one deletes the STO 1. Now Material M1 with qty 20 is avaiable to use. I then go in the system, open STO 2 in change mode. Select the line item and click on Material availability check. When I do this, the new delivery dates are proposed.
    This is standard sap functionality.
    We have required to do this programmatically. Is there any standard SAP program which will check all the STO's by there creation date and do the material avaibility check automatically and re-set STO dates.
    Regards,
    Shahu

    Instead of all that, you could just use stock transport scheduling agreements.  MRP can update those automatically during its processing.

  • Update Delivery date programatically for inbound delivery

    Hi all,
    I need to update the delivery date in the inbound delivery programatically...How cna i do that?any FM available?
    The field to be updated is LIKP-LFDAT.
    Thanks.

    Check WS_DELIVERY_UPDATE ,   BAPI_INB_DELIVERY_SAVEREPLICA
    ALso check how to change delivery date (LFDAT) in a inbound delivery

  • Updating delivery date on Purchase order line items  Urgent

    Hi,
    I have same problem with update the Delivery date in ME22N transaction. I have used BAPI_PO_CHANGE function module. but it does not working properly. Can anybody please send the sample code.
    my maild id is [email protected]
    it_POSCHDULE-PO_ITEM = '10'. "PO item number
    it_POSCHDULE-DELIVERY_DATE = '08/28/2007'. "changed delivery date
    it_POSCHDULE-SCHED_LINE = '1'.
    append it_POSCHDULE.
    IT_POSCHDULEX-PO_ITEMX = 'X'. "PO item number
    IT_POSCHDULEX-DELIVERY_DATE = 'X'. "changed delivery date
    IT_POSCHDULEX-SCHED_LINEX = 'X'. "schedule line
    append IT_POSCHDULEX.
    CALL FUNCTION 'BAPI_PO_CHANGE'
    EXPORTING
    PURCHASEORDER = '4500232997'
    TABLES
    RETURN = return
    POSCHEDULE = IT_POSCHDULE
    POSCHEDULEX = IT_POSCHDULEX
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    is any more parameters i have to pass for update the delivery date
    Thanks
    Gopal.

    This is my code.
    it_POSCHDULE-PO_ITEM = '00010'. "PO item number
    it_POSCHDULE-DELIVERY_DATE = '08.28.2007'. "changed delivery date
    it_POSCHDULE-SCHED_LINE = '0001'.
    append it_POSCHDULE.
    it_poschdulex-po_item = '00010'.
    IT_POSCHDULEX-SCHED_LINE = '0001'.
    IT_POSCHDULEX-PO_ITEMX = 'X'. "PO item number
    IT_POSCHDULEX-DELIVERY_DATE = 'X'. "changed delivery date
    IT_POSCHDULEX-SCHED_LINEX = 'X'. "schedule line
    append IT_POSCHDULEX.
    CALL FUNCTION 'BAPI_PO_CHANGE'
    EXPORTING
    PURCHASEORDER = '4500002299'
    TABLES
    RETURN = return
    POSCHEDULE = IT_POSCHDULE
    POSCHEDULEX = IT_POSCHDULEX
    commit work.
    and messages in RETURN are
    TYPE     ID     NUMBER     MESSAGE
    I          0     Changing of PO using Enjoy BAPI unsuccessful 
    E     MEPO     0     Purchase order still contains faulty items
    I     VD     345     Date 08.28.2007 period D is not valid
    E     6     70     Enter a quantity
    E     MEPO     43     Please enter an order quantity

  • To update Delivery date in PR through IW32

    Hi All,
    I have a requirement to update Reqt.date whihc i achieved by writitng the logic to update RESB table in WORKORDERupdate BADI.
    whenever i create new order or change a existing orders and add components and try to save. the Reqt date get changed based on the calculation i have written .. i.e . for checking the planned delivery time/days..
    this was automatically getting reflected for delivery date field when PR was created.
    Once PR is released and i try to add component and save, PR gets created automatically and the requirement date is also updated but Delivery date field is not gettin update in PR.
    Please suggest ideas.

    Hi,
          To modify the delivery dates as per our logic the below user exit might be  suitable :-
    COZF0002 Change purchase req. for externally procured component
    Note :- If the component has material master record then system will take Planner delivery time into consideration for calculation of delivery time into consideration for calculation of delivery date i believe so
    You can also check  BADI :-IWO1_PREQ_BADI BAdI for Manipulation of P.Reqs from Orders + Networks
    regrds
    pushpa

  • Updating delivery date on Purchase order line items

    Hi,
    I am using BAPI_PO_CREATE1 to create purchase order. It is creating fine except I want the delivery date on line item to be overwritten instead of system determining from MRP view of material on each line item.
    I am passing delivery date to DELIVERY_DATE parameter of POSCHEDULE  table of the BAPI, but instead of taking the value that I passed it is calculating from material master.
    Is there any other parameter for BAPI that I need to set ?
    Please suggest me a solution.
    Thanks,
    Sonali.

    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.

  • Problem updating delivery date onto quotation

    Hi All-
    We have process, After creating sales order, will convert that into purchase req and again convert purchase req into STO's..
    Problem here is, if we make change delivery date onto STO's, should be reflect onto Purchase Req and also onto sales order...
    Anyone if you know the solution, please reply to my question and also let me know if there any user-exits to the sameissue...
    Thanks,
    Sony

    Hi,
    Pass the following values...
    POACCOUNT LIKE BAPIMEPOACCOUNT...
    poaccount-TAX_CODE = ? (value)....
    That should take care of the missing field.
    Regards,
    Madan..

  • MASS update delivery date in Sales Order

    Hi All,
    I want to add the field VBEP-EDATU to the MASS function object type  BUS2032, table name MASSVBAP,
    I've added it using the SM30 successfully, but I cannot see it under the "select fields" function in the MASS Maintenance : Sales Order screen.
    My steps:
    1. SM30 maintain the table MASSFLDLST
    2. add the object type BUS2032, table MASSVBAP, Field name EDATU.
    Please help.
    Terry

    Hi ,
    Take help of ur ABAPer to change the delivery date by using BDC.We can do this easily by using recording method in BDC.
    Hope it helps.
    Regards,
    Pasapula.
    Edited by: Pasapula on Jul 23, 2009 10:15 AM

  • Functional Module for Delivery date update

    Hi all,
    Can anybody help me to solve my problem. My requirement is to update order delivery date for a partner. But I am not getting any FM for that and not getting the table name also where I can update delivery date value. If you have any known FM or any suggestion please tell me.
    Thanks in advance
    Chandan

    Hi all,
    Can anybody help me to solve my problem. My requirement is to update order delivery date for a partner. But I am not getting any FM for that and not getting the table name also where I can update delivery date value. If you have any known FM or any suggestion please tell me.
    Thanks in advance
    Chandan

  • Function Module for Delivery date update

    Hi all,
    Can anybody help me to solve my problem. My requirement is to update order delivery date for a partner. But I am not getting any FM for that and not getting the table name also where I can update delivery date value. If you have any known FM or any suggestion please tell me.
    Thanks in advance
    Chandan

    Hi,
    The function module is
    <b>/1CRMG0/CUST_CHAN_WRT_I01</b>
    Best Regards,
    Johnny.

Maybe you are looking for

  • Crystal Report XI R2 version 11.5 not run on Windows Vista 64 bit OS

    We have created the Windows Vista 64 bit Development Environment with u201CCrystal Report XI R2u201D version 11.5 .  When we try to run report it gives following error "An error has ocured while attempting to load Crystal Reports runtime. Either the

  • Create webservice in ABAP

    Dear All, We have scenario in which we have SAP ECC 6.0 system with only ABAP stack. We tried to create a webservice in SE80. In transaction WSADMIN we are not able to Test or generate the WSDL. We get the ICF_ERROR. In the transaction WSADMIN Goto->

  • File was not deleteing  in my file adapter

    Hi,    in my File adapter (<b>sender side</b>) is not working fine..  if i put  the processing mode is  '<b>DELETE'</b>   my adapter is not working.. if i put the processing mode is  'TEST'  then  my file is polling and  outfile was generating.. why

  • Example of Streams for Messaging?

    Does anyone have a list of setup steps (maybe scripts?) they would be willling to share that use streams to trap LCR DML changes on a table and place the messages in a queue that will be read by a Java (possibly JMS) process? All the examples I can f

  • CALLING BUSINESS OBJECT FROM AN ABAP REPORT

    Hi friends,            I have a business object to which a Custom Function Module is assigned in one of its method.This Function Module calls a Bapi to update a Service Order.I need to capture the status of Idocs regarding success or failure from the