Hi,
We are using BAPI_SALESORDER_CHANGE for updating the delivery block information present in Shipping tab of sales order header.
We are updating the below parameters and then calling the bapi.
ls_header-DLV_BLOCK = 'Z1'.
ls_head_update-updateflag = 'U'.
ls_head_update-DLV_BLOCK = 'X'.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = gs_vbak-vbeln
ORDER_HEADER_IN = ls_header
ORDER_HEADER_INX = ls_head_update
behave_when_error = ' '
int_number_assignment = ' '
TABLES
RETURN = lt_return.
But during execution we could see the messages in parameter return as below
ORDER_HEADER_IN has been processed successfully
No data was changed
But we want to update the delivery block with Z1 which is not happening.
Please let us know if we missed anything.
Thanks in advance,
Poornima