HI ,
I am using BAPI_SALESORDER_CHANGE to delete a bulk of order lines for an order.But the issue is...the entries are deleted in VBEP and VBUP tables for all the order lines where in VBAP only few order lines are deleted.This is happening repeatedly.
I am passing data like this...
CLEAR: l_vbap_inx.
l_vbap_inx-itm_number = t_vbap-posnr. " will have value
l_vbap_inx-updateflag = 'D'.
APPEND l_vbap_inx.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = i_vbeln "will have order number
order_header_inx = l_vbak_inx " will be paased with values 'U'
order_header_in = header "will not hold any value
simulation = i_simulate "space
TABLES
return = l_return
order_item_in = l_vbap "bulk of order lines with 'D' flag
order_item_inx = l_vbap_inx
extensionin = l_vbap_ext.
can you please suggest on this......
Thanks in advance.