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 Statement

Former Member
0 Likes
578

I'm hoping someone can help me

What i want to do is delete all lines from a internal table where 'REL' in not contained in a field.

The problem is that there is other sets of letters in the field as well, so I can't use the NOT EQUAL statement.

Is there some kind of CONTAINS statement.

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
556

Hello,

Try this way,


DELETE itab where not field CP '*REL*'.

Vikranth

3 REPLIES 3
Read only

Former Member
0 Likes
557

Hello,

Try this way,


DELETE itab where not field CP '*REL*'.

Vikranth

Read only

Former Member
0 Likes
556

HI,

Delete from it_data where field+0(3) Eq 'REL'... if the REL is inthe first 3 letters.

try to use offet.

regards,

Aj

Read only

Former Member
0 Likes
556

Hi Mlockett,

You can make use of String operation like CO (Contains only), CA (Contains any) etc.

LOOP AT ITAB INTO WA.

IF WA CA 'REL'.

DELETE table ITAB FROM WA TRANSPORTING xxxx.

ENDIF.

Kindly set to resolved if it helps you..

Regards

Abhii

Edited by: Abhii on Nov 19, 2009 3:41 PM

Edited by: Abhii on Nov 19, 2009 3:42 PM