Skip to Content
author's profile photo Former Member
Former Member

Updating dates through BAPI_OUTB_DELIVERY_CHANGE

Hi Experts,

I have created an outbound delivery.

I have to update the fields Picking date, Transportation loading date, Planned GI date and Delivery date.

These fields are at the header level.

I tried using the BAPI BAPI_OUTB_DELIVERY_CHANGE.

These dates are to be provided in the table HEADER_DEADLINES.

However, it seems like I am making some mistake due to which the dates are not getting updated.

Can you please tell me what values are to be passed in the table as an example?

The delivery shows theses dates as the schedule line date and not the one passed to the BAPI.

Please help.

Thanks,

Anusha

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 02, 2010 at 06:28 AM

    Hi Anusha,

    The values to be passed to internal table looks like below....

    HEADER_DEADLINES-DELIV_NUMB = <delivery no>.

    HEADER_DEADLINES-TIMETYPE = 'WSHDRWADAT'. "Planned goods issue date

    HEADER_DEADLINES-TIMESTAMP_UTC = '20100202115500'. "YYYYMMDDhhmmss

    HEADER_DEADLINES-TIMEZONE = 'CST'. "Central Time (Dallas) USA

    append HEADER_DEADLINES.

    Please check, it should work.

    Thanks,

    Savitha

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Please use the following types(available in FM documententation).

      Delivery date (WSHDRLFDAT)

      Planned goods issue date (WSHDRWADAT)

      Actual goods issue date (WSHDRWADTI)

      Loading date (WSHDRLDDAT)

      Transportation planning date (WSHDRTDDAT)

      Picking date (WSHDRKODAT)

      You are using the correct types. Please check in debugging what is happening with the other dates.

      Put a break point in include LV50IF04, line no 1050 in FORM vbkok_obdlv_fill_chg and debug.

      Regards,

      Savitha

      Edited by: Savitha Madhavagiri on Feb 2, 2010 1:56 AM

      Edited by: Savitha Madhavagiri on Feb 2, 2010 2:01 AM

  • Posted on Feb 02, 2010 at 06:34 AM

    Hi,

    Use the FM "WS_DELIVERY_UPDATE" and the structure u need to fill is VBKOK_WA... It has all the fields you require...

    Regards,

    Nagaraj

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi guys,

      if you want to update the field "wadat_ist" with the FM "WS_DELIVERY_UPDATE" you have to code:

      et_vbkok-vbeln_vl = p_vbeln.

      et_vbkok-vbtyp_vl = 'J'

      et_vbkok-borgr_kzwad = 'X'

      et_vbkok-wadat_ist = sy-datum.

      et_delivery = p_entrega_head-vbeln.

      CALL FUNCTION 'WS_DELIVERY_UPDATE'

      EXPORTING

      vbkok_wa = et_vbkok

      delivery = et_delivery

      cheers,

      JP

  • author's profile photo Former Member
    Former Member
    Posted on Feb 02, 2010 at 08:45 AM

    Thanks I found out the cause 😊

    Thanks,

    Anusha

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.