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

BDC Problem

Former Member
0 Likes
315

Hi Gurus,

I just want to ask on whats the use of the code below.

DELETE it_sales_details WHERE NOT delno IN s_dr.

DELETE it_sales_details WHERE NOT mtsnr IN s_mblnr.

DELETE it_sales_details WHERE NOT budat IN s_budat.

DELETE it_sales_details WHERE NOT matnr IN s_matnr.

DELETE it_return_details WHERE NOT delno IN s_dr.

DELETE it_return_details WHERE NOT mtsnr IN s_mblnr.

DELETE it_return_details WHERE NOT budat IN s_budat.

DELETE it_return_details WHERE NOT matnr IN s_matnr.

Thanks in advance.

Gerald

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
297

Hi this code is getting the data of Sales Orders and Returns from Database.

AFter getting the data into internal table, they wrote code to DELETE the internal table data where it is not matching with SELECTION-SCREEN data.

That's why they are using select-options values in DELETE using NOT IN S_* statements.

So finally the tables will have data which is valid based on the Selection-SCreen data.

1 REPLY 1
Read only

Former Member
0 Likes
298

Hi this code is getting the data of Sales Orders and Returns from Database.

AFter getting the data into internal table, they wrote code to DELETE the internal table data where it is not matching with SELECTION-SCREEN data.

That's why they are using select-options values in DELETE using NOT IN S_* statements.

So finally the tables will have data which is valid based on the Selection-SCreen data.