Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI_PO_CHANGE cannot change delivery date

I tried to use BAPI_PO_CHANGE to change the delivery date, although I get "Standard PO xxxxxxxxxx changed" (i have called BAPI_TRANSACTION_COMMIT), i find that the PO hasn't been changed.

My codes:

write sy-datum dd/mm/yyyy to d_date. "delivery date

it_bapimeposchedule-po_item = '00010'.

it_bapimeposchedule-sched_line = '0001'.

it_bapimeposchedule-delivery_date = d_date.

append it_bapimeposchedule.

it_bapimeposchedulx-po_item = '00010'.

it_bapimeposchedulx-sched_line = '0001'.

it_bapimeposchedulx-po_itemx = 'X'.

*it_bapimeposchedulx-sched_linex = 'X'.

it_bapimeposchedulx-delivery_date = 'X'.

append it_bapimeposchedulx.

call function 'BAPI_PO_CHANGE'


purchaseorder = '1234567890'


return = it_bapiret2

poschedule = it_bapimeposchedule

poschedulex = it_bapimeposchedulx.


Can any experts advise how to get this function work properly to change delivery date?

Not what you were looking for? View more on this topic or Ask a question