BAPI to change Inbound delivery - Delivery Date.

Hi Expert,
I wanna change the  Inbound delivery - Delivery Date .
i have check the BAPI_INB_DELIVERY_CHANGE and WS_DELIVERY_UPDATE but both seems to be not useful for me or i have mis sumthing.
so kindly suggest BAPI or any other solution.
thx in advance.

Hi guys,
plz get following code,
REPORT  ztest_inboun_deli.
TYPES : lty_dead TYPE STANDARD TABLE OF bapidlvdeadln.
DATA :lt_header_deadlines TYPE lty_dead,
      wa_header_deadlines TYPE bapidlvdeadln,
      wa_header_control TYPE bapiibdlvhdrctrlchg,
      it_return TYPE STANDARD TABLE OF bapiret2,
      wa_delivery TYPE bapiibdlvhdrchg-deliv_numb,
      wa_header_data TYPE bapiibdlvhdrchg.
write : sy-datum.
wa_header_deadlines-deliv_numb = '0080000069'.
wa_header_deadlines-timetype    = 'WSHDRLFDAT'. "Delivery date
wa_header_deadlines-timestamp_utc = 20120909000000. "YYYYMMDDHHMMSS
wa_header_deadlines-timezone    = 'ALA'. "Western Europe
APPEND wa_header_deadlines TO lt_header_deadlines.
wa_header_data-deliv_numb = '0080000069'.
wa_header_control-deliv_numb     = '0080000069'.
wa_header_control-deliv_date_flg = 'X'.
CALL FUNCTION 'BAPI_INB_DELIVERY_CHANGE'
  EXPORTING
    header_data                = wa_header_data
    header_control             = wa_header_control
    delivery                   = wa_delivery
  TABLES
   header_deadlines           = lt_header_deadlines
    return                     = it_return.
IF sy-subrc EQ 0.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.

Similar Messages

  • Fm or BAPI for Change Customer: Sales area data

    Hello All,
    I need to change tax classification in Sales area data of Changing Customer ( transaction XD02 ).
    Function BAPI_CUSTOMERCRM_CHANGE looks like is ok for this, but I've try it and is not working, maybe i'm forgeting something or is not proper for this.
    Do you know a function for this or an sample with BAPI_CUSTOMERCRM_CHANGE ?
    Note: Function must not be for online store and Internet Sales.
    Any help will be appreciated and rewarded.
    Thank you a lot!
    Bogdan

    Hi again,
    Not the BAPI COMMIT was the problem,
    But I found FM SD_CUSTOMER_MAINTAIN_ALL, which is working realy fine.
    All the bests!

  • BAPI to change notification task completion date and time

    Hi,
    I am looking for a BAPI which will modifiy completion date and time of an existing task of a notification.
    I was trying with BAPI_ALM_NOTIF_DATA_MODIFY but it doesn't have fields which can modify those fields.
    Looking for your help. Can directly update QMSM table
    should be a way?
    Thanks,
    Mainak

    Hi,
    Use the Method ISUSMORDER.technicalcompletion.
    Hope it helps.
    KR,
    AAL!

  • Are there any standard BAPIs to change/create/delete quote data on CRM side

    Hello Friends
    I am getting prepared for the XI integration of the data (quotes related) from our application to CRM. Are there any specific BAPIs that you guys are using to create, modify, delete a quote in CRM.
    Any feedback or advice will be highly appreciated.
    Tks
    Ram

    Hi Ram,
    Check these BAPIs:
    BAPI_QUOTATION_CREATEFROMDATA2
    BAPI_CONTRACT_CREATEFROMDATA
    Hope this helps you.
    Regards,
    Chandra Sekhar

  • Mass Change fuctionality for Delivery Documents

    Hi all,
    I want to carry out a mass change for a field in the delivery document header.
    I know the transaction MASS is not catering for that.
    Is that any other standard  transaction to do a mass change in the delivery document header level, other than do it through a LSMW?
    Appreciate your help on this!
    Best regards,
    Anupa

    hi,
    MASS is not there.
    As per my knowledge
    BAPI_OUTB_DELIVERY_CHANGE - BAPI for Change to Outbound Delivery
    BAPI_INB_DELIVERY_SAVEREPLICA - Create Inbound Delivery
    RV_DELIVERY_CREATE - Create Delivery
    GN_DELIVERY_CREATE - Create an Outbound Delivery
    REGARDS,
    BALAJIA

  • Change Sales Order Contract Data FM

    Hi Friends
    Kindly let me know if there is any function module or BAPI to change Sales order Contract Data of each line item. 'BAPI_SALESORDER_CHANGE' dosent have that.
    Thanks

    Hi Ram,
    Check will this helps you ...
    call function 'BAPI_CUSTOMERCONTRACT_CHANGE'
    exporting
    SALESDOCUMENT = vbeln
    CONTRACT_HEADER_IN = w_header
    CONTRACT_HEADER_INX = w_headerin
    INT_NUMBER_ASSIGNMENT = 'X'
    ORDER_HEADER_INX
    BEHAVE_WHEN_ERROR = 'P'
    LOGIC_SWITCH
    TESTRUN = 'X'
    convert = 'X'
    importing
    salesdocument = v_order
    salesdocument = vbeln
    tables
    return = t_return
    CONTRACT_items_in = t_items
    CONTRACT_ITEMS_INX = r_items
    CONTRACT_partners = t_partners
    CONTRACT_schedules_in = t_sched
    CONTRACT_conditions_in = t_conds
    CONTRACT_text = t_texts .
    Regards,
    Poornima

  • QM Orders - Funktions/BAPI for Changing

    Dear all,
    I have to mass change the Profit Center and the Cost Center in the QM Orders.
    I can not find a function or BAPI to change the data. Can anybody give me a tip - please.
    Thanks for help.
    Best regards
    Roman

    Dear Roman
    Please check this link. I couldnt find anything to change
    Link: [Bapi for changing internal order master data]
    My recommendation will
    1) Write a program to change the costcenter and profit center  in the table
    2) You can replace the existing order by creating new QM order using the BAPI BAPI_INTERNALORDER_CREATE
    Regards
    Gajesh

  • Need Fm/BAPI to change Actual GR date(WADAT_IST_LA) in inbound delivery

    Hi ,
    Need a function module/BAPi to change the Actual Goods Receipt date for inbound delivery . Any suggestion would be appreciated . Have tried with WS_DELIVERY_UPDATE and BAPI_INB_DELIVERY_CHANGE . Am I missing something here ?
    Regds,
    Sanjeev

    Hello Sanjeev,
    Need a function module/BAPi to change the Actual Goods Receipt
    date for inbound delivery . Any suggestion would be appreciated .
    Have tried with WS_DELIVERY_UPDATE and BAPI_INB_DELIVERY_CHANGE .
    Am I missing something here ?
    I am not a ABAP expert but may be upon calling BAPI_TRANSACTION_COMMIT, try using UPDATE command to insert the Actual GR date. Please explore around this pointer and post an update on this thread.
    Regards,
    Sarthak

  • Change Inbound Delivery(VL32N) using BAPI.

    Hi Experts,
                      Which BAPI can I use to change the Shiping & Administration data of Inbound Delivery (VL32N).
                      I would be passing the Inbound delivery No. as the input to BAPI.
                      Please suggest me the BAPI thru which I can change the above Inbound delivery data.
                      Thanks in advance for your answer & support.
    Regards
    Jitendra Gujarathi.

    Hi,
       Please try the BAPI BAPI_SHIPMENT_CHANGE.
    Regards
    Raj.

  • BAPI for changing delivery date and delivery time fields in LIKP table

    Hi All,
         Is there any BAPI or function module to change the delivery date and delivery time in LIKP table ?
    Please tell me experts if exists.
    Thank you,
    Raghu.

    try these:
    BAPI/FM to update LIKP and VTTK tables
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi-for-changing-sales-headertable-likp-662800

  • Change Inbound Delivery(BAPI_INB_DELIVERY_CHANGE )

    Hi All,
    I want to change Inbound delivery Header and Item Data By useing BAPI- BAPI_INB_DELIVERY_CHANGE. But its not able to change.
    Plz help me for changeing  Inbound delivery by useing BAPI in my program.
    Reagards,
    Sunil Sahoo

    Hi Sunil,
    Have you used BAPI_TRANSACTION_COMMIT after your BAPI ?
    Regards,
    Nitin.

  • Delivery date from PO not updated with inbound delivery (EDI) date

    Dear all,
    The delivery date in the purchase order (as per my understanding) is the purchase order creation date + the planned delivery time.
    We are using EDI and an inbound delivery gets created when the shipping notification is received from the vendor.
    The real inbound delivery (EDI) date is usually different from the planned delivery date of the purchase order. But the problem is that the delivery date from the PO is not getting updated with the EDI delivery date.
    Is it possible to have the delivery date from the PO updated with the real EDI delivery date?
    I need this because I want to calculate planned delivery costs based on the EDI delivery date, and so far when I post the goods receipt (Price Date Category = "Delivery date" in the PO), the system is taking the price valid at the delivery date from the PO instead of taking the price valid at the delivery date of the EDI message.
    Thanks a lot,
    Annabelle R.

    We have applied the note 793478 "Change of the pricing date in EXIT SAPLEINR 003".
    In our process flow, an inbound delivery is created with reference to the PO, then the goods receipt is done with reference to this inbound delivery.
    When the option 5 "Goods receipt date" is selected in the Conditions Control tab of the purchase order, now when the goods receipt is posted, the price is calculated based on the inbound delivery date, which is what we wanted.

  • BAPI to get inbound delivery from material serial number

    BAPI to get inbound delivery number from material serial number?
    input---material serial number.
    output--inbound delivery number.

    Perhaps instead of using a BAPI you can code it like this.
    DATA:serial(10) TYPE n VALUE '0000340078',
    pos TYPE i VALUE 1.
    START-OF-SELECTION.
      WHILE pos <= 10 AND serial+pos(1) = 0.
        pos = pos + 1.
      ENDWHILE.
      REPLACE ALL OCCURRENCES OF '0' IN serial(pos) WITH space.
      WRITE serial.

  • Bapi for creation of delivery by using SO,shipping point,delivery creation date

    Hi experts,
    I am looking for bapi that takes sales order,shipping point and delivery creation date and generates delivery.
    I have tried with bapi GN_DELIVERY_CREATE but i am not able to understand whether this bapi is used for inbound or outbound deliveries.If this bapi is ok then what are the mandatory fields for this bapi.
    Regards,
    Pankaj Jain

    Hi Pankaj,
    Please try to use BAPI 'BAPI_DELIVERYPROCESSING_EXEC' for creating delivery form sales order , you can pass value and create delivery.
    you can refer below code, it may be helpfull for you to create delivery.
    DATA: BEGIN OF t_vbap OCCURS 0,
            vbeln LIKE vbap-vbeln,
            posnr LIKE vbap-posnr,
      zmeng LIKE vbap-kwmeng,
            matnr  LIKE vbap-matnr,
            werks  LIKE vbap-werks,
          END OF t_vbap.
    DATA: t_request TYPE STANDARD TABLE OF bapideliciousrequest
          WITH HEADER LINE.
    DATA: t_created TYPE STANDARD TABLE OF bapideliciouscreateditems
          WITH HEADER LINE.
    DATA: t_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    SELECT vbeln posnr zmeng matnr werks
           INTO TABLE t_vbap
           FROM vbap
           WHERE vbeln = v_vbeln.
    LOOP AT t_vbap.
      t_request-document_numb = t_vbap-vbeln.
      t_request-document_item = t_vbap-posnr.
      t_request-quantity_sales_uom = t_vbap-zmeng.
      t_request-quantity_base__uom  = t_vbap-zmeng.
      t_request-id = 1.
      t_request-document_type = 'A'.
      t_request-delivery_date      = sy-datum.
      t_request-material = t_vbap-matnr.
      t_request-plant = t_vbap-werks.
      t_request-date = sy-datum.
      t_request-goods_issue_date = sy-datum.
      t_request-goods_issue_time = sy-uzeit.
      APPEND t_request.
    ENDLOOP.
    CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
         TABLES
              request      = t_request
              createditems = t_created
              return       = t_return.
    READ TABLE t_return WITH KEY type = 'E'.
    IF sy-subrc = 0.
      MESSAGE e208(00) WITH 'Delivery creation error'.
    ENDIF.
    COMMIT WORK.
    Regards,
    Prasenjit

  • Schedule lines are not modified when i change the requested delivery date

    Hi  
    i have a issue when i am created sales order with requested delivery date 10.11.2011
    and the same is copied in to item schedule lines as a 10.11.2011
    before saving the order i change the requested derlivery date to 11.11.2011
    this new requested delivery date is not dopied to schedule lines at item level (still is having 10.11.2011)
    can any one tell me this is system standard behaviour or can we correct this
    Thanks and Regards
    Kishore

    Hi DevarapalliKK,
    I tried this solution & problem is solved.
    --Go to VA01 & enter the material & qty
    --Select the line item in VA01 & click on Edit
    --Select Fast Change of & click on Delivery date & mention the Delivery date as 11.11.2011. & click on copy.
    --Check the request delivery date in header level in sales tab it will change to 11.11.2011 & also check the Schedule lines in Item level the date will be 11.11.2011 & Save it.
    Please let me know if your problem is solved
    Regards
    Pradeep

Maybe you are looking for

  • Sapscript translated in non-english language - Garbled output as Email

    Hi Experts, I've translated a SAPscript  to Chinese and Thai language. As per my requirement, the output can either be printed, emailed or faxed. I'm using the standard include  RVADOPFO for Open form. For the english version, I'm able to recieve the

  • Import statement in .java files and .jsp files

    Guys I have few mysteries about this import statement. Please correct me if I am wrong. 1)Suppose if I have a folder c:\SourceFolder it has one.java and two.java files.If I compile one.java then one.class files is created in c:\ClassFolder .Now two.j

  • FDM Import: create 4 fields from single chartfield in source file

    Hi Experts , In my requirement, i have single member in Source file which i have to split into 4 filds (Target dimension) ex "1234 44 55555 456" , this string should be "1234" "44" "55555" "456" to represent 4 dimension members in Essbase. I tried pu

  • Ipad 1 wifi problems

    My iPad 1 shows me as being connected to my wifi and I know that the password I inputted was correct because when I put in an incorrect one it refuses to connect. However there is clearly no internet connection reaching my iPad. When I try to refresh

  • Print Screen while using dual view monitors on Tecra M5

    I've got a Tecra M5, in a docking station, and I am using the laptop screen as primary monitor and an external LCD as the secondary. Whenever I use the Print Screen function I find it copies both screens into the clipboard. Is there a setting on the