Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI to change Inbound delivery - Delivery Date.

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Please check the below link.

http://forums.sdn.sap.com/thread.jspa?threadID=1217363.

this will helpfull.

Regards,

Mufee

2 REPLIES 2

Former Member
0 Kudos

Please check the below link.

http://forums.sdn.sap.com/thread.jspa?threadID=1217363.

this will helpfull.

Regards,

Mufee

0 Kudos

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.