Skip to Content
0
Jul 28, 2023 at 05:49 AM

How to add and delete an item/line in sales order via user exit?

22 Views

Under certain conditions I want an item to be added to SO, which I've managed. However, I cannot find information anywhere on how to also delete this very same item (if some conditions change).

I tried with XVBAP-UPDKT = 'D' but it does not work.

I also tried setting an ABGRU (Reason for cancellation) value on the item, and the item indeed shows as canceled in the sales order, however, the price does not get updated. The price stays the same as if the item was not cancelled.

Any advice?