cancel
Showing results for 
Search instead for 
Did you mean: 

Delete a sales order position using BAPI

javier_rodruez
Participant
0 Kudos

Hi experts.

Is it possible to delete a position of the sales order using BAPI_SALESORDER_CHANGE??? In afirmative case, how can I do it?

I made debugging and don't understand what the system is performing... because I see that it seems SAP is using another standard functions like RV_XVBUP_DELETE and other RV_* functions to do it.

I would appreciate your help.

Thanks.

Javier

Accepted Solutions (1)

Accepted Solutions (1)

paul_quinn
Participant
0 Kudos

hi Javier,

test this in SE37

set order_header_inx flag to U as you wish to update the sales order

set order_item_inx to flag to D for the relevant sales order position as you want to delete the line item

kind regards

Paul Quinn

javier_rodruez
Participant
0 Kudos

Setting this flag to" D" solved my problem.

Thanks, Paul

Answers (0)