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

BAPI Sales order change

Former Member
0 Likes
728

I want to delete Sales order line item but it deleting complete sales order

I am using bapi sales_order_change.

How to delete Line item insted of sales order ?

thanks

I want to delete Sales order line item but it deleting complete sales order

I am using bapi sales_order_change.

How to delete Line item insted of sales order ?

thanks

4 REPLIES 4
Read only

Former Member
0 Likes
659

Use the correct parameters (read the help documentation on this bapi).

Regards,

John.

Read only

Former Member
0 Likes
659

Hi Jim,

try with :

BAPI_SALESORDER_CHANGE

Sales Order: Change Sales Order

refer to the link below for other BAPI's:

http://www.sapbapi.com/bapi-list/

With luck,

Pritam.

Read only

pole_li
Active Participant
0 Likes
659

Hi,

Set UPDATEFLAG in ORDER_ITEM_INX.

Possible UPDATEFLAGS:

U = change

D = delete

I = add

Regards,

Pole

Read only

Former Member
0 Likes
659

Try with the below solution:

Set the field ORDER_HEADER_INX-UPDATEFLAG to 'U'.

Set the field ORDER_ITEM_INX-UPDATEFLAG to 'D'. Enter the line item details in the ORDER_ITEM_IN for deletion.

Regards,

Kiran Bobbala