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 Command in Internal table

Former Member
0 Likes
341

Hi Friends,

Currently i am using DELETE command in internal table. My main requirement is delete the records in internal table based on the select -options given in Selection screen.

Synatx is given below.

DELETE i_list WHERElifsk NOT in S_lifsk[].

It is working fine if we give positive values ie EQ 24 etc.

if we give negetive values if NE 23(in select options) here

sy-subrc is failing.

Can any one kindly suggest.

Regards,

DVNS.

1 REPLY 1
Read only

Former Member
0 Likes
318

Hi DV

Its so simple... u r requirement is to delete all the entries which are not in the select options.

Ur sintax is working correct. Because, even if u hit a database table with select querry using this select option, it will fetch all the positive entries and excludes all negative entries....

if still u feel problem is persisting... then fetch the lifsk from db table using this select option into an internal table and then filter how ever u want.

Venkata Raju Duggirala