Application Development 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: 

How to write it in ABAP?

Former Member
0 Kudos

I wish to delete all those records from my internal table where bktxt <> 'UP' or 'up'.

How will I write it in ABAP? pls suggest.

Regards,

Alok.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

Just write

DELETE ITAB WHERE bktxt <> 'UP' .

DELETE ITAB WHERE bktxt <> 'up' .

DELETE ITAB WHERE ( bktxt <> 'UP' AND bktxt <> 'up' ).

REGARDS

ANJI

2 REPLIES 2

Former Member
0 Kudos

Hi

Just write

DELETE ITAB WHERE bktxt <> 'UP' .

DELETE ITAB WHERE bktxt <> 'up' .

DELETE ITAB WHERE ( bktxt <> 'UP' AND bktxt <> 'up' ).

REGARDS

ANJI

0 Kudos

Dear Anji,

Thanks a lot..The second one worked.

I too was trying with deleting them one after other by

DELETE ITAB WHERE bktxt <> 'UP' .

DELETE ITAB WHERE bktxt <> 'up' .

but the exection of first delete was also deleting the values with value 'up'.

Hope you understood.

Thanks once again. I am also rewarding your answer.

Regards,

Alok.