cancel
Showing results for 
Search instead for 
Did you mean: 

Deletion of Sales Order using BAPI_SALESSUPDOCUMENT_DELETE is not reflecting in Sales Order

mfarrikjamal
Participant
0 Kudos

Hello Everyone,

Pls do advise how to use BAPI_SALESSUPDOCUMENT_DELETE to delete my sales order and advise what are the fields should i enter and execute.

Thanks & Regards,

SAP SD

Accepted Solutions (1)

Accepted Solutions (1)

VeselinaPeykova
Active Contributor

This FM is not released (at least not in the system where I checked) and there is no code in it which means that you cannot use it to delete sales orders.

Use BAPI_SALESORDER_CHANGE, populate the order number in SALESDOCUMENT, in ORDER_HEADER_INX set UPDATEFLAG = 'D'. Do not forget to call BAPI_TRANSACTION_COMMIT.

mfarrikjamal
Participant
0 Kudos

Got it...

Thanks a lot Veselina Peykova

Answers (0)