09-09-2008 2:49 PM
Hi All,
I get the above error when I try to change an order using the following code. Can anyone think of a reason for this? I can change the PO manually.
MOVE xvbak-bstkd TO t_headerpo-purch_no_c.
MOVE 'U' TO t_hdr_inxpo-updateflag.
MOVE 'X' TO t_hdr_inxpo-purch_no_c.
CALL FUNCTION 'BAPI_SALESDOCUMENT_CHANGE'
EXPORTING
salesdocument = lv_vbeln
order_header_in = t_headerpo
order_header_inx = t_hdr_inxpo
TABLES
return = t_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
09-09-2008 8:59 PM
It works fine with BAPI_SALESORDER_CHANGE. I got the same error with BAPI_SALESDOCUMENT_CHANGE, not sure what's up with that...
09-09-2008 8:59 PM
It works fine with BAPI_SALESORDER_CHANGE. I got the same error with BAPI_SALESDOCUMENT_CHANGE, not sure what's up with that...
11-10-2020 10:42 AM
Hello all,
If I can complete, function BAPI_SALESDOCUMENT_CHANGE is not released (check Attributes in function), so it shouldn't be used.
Thanks for answer, it clearly helps.