Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Delete line items using BAPI_SALESORDER_CHANGE

0 Likes
586

Hi,

I want to know how I can delete line items from VBAP using BAPI_SALESORDER_CHANGE function module.

I was tyring but in vain. Could any body post me some sample code to delete a line item so that I could learn how to use it. (In my program I have the values for VBELN and POSNR).

Thanks in Advance.

Hi,

I want to know how I can delete line items from VBAP using BAPI_SALESORDER_CHANGE function module.

I was tyring but in vain. Could any body post me some sample code to delete a line item so that I could learn how to use it. (In my program I have the values for VBELN and POSNR).

Thanks in Advance.

1 REPLY 1
Read only

vyende
Active Participant
0 Likes
372

Just make sure the field UPDATEFLAG is set to

D when you pass the table ORDER_ITEM_INX. Of course you wouls need to give the line item number.