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: 

delete row in an internal table

Former Member
0 Kudos

Hi,

with key1 and key2 how do I delete a row in an internal table itab?

I want to do something like (but dont succeed) this:

DELETE itab WHERE x = key1 AND y = key2

thanks in advance

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

That is the correct syntax, but it will delete all rows that satisfy the WHERE condition. What exactly is the problem.

Regards,

Rich Heilman

Former Member
0 Kudos

DELETE TABLE itab WITH TABLE KEY k1 = v1 ... kn = vn.

ferry_lianto
Active Contributor
0 Kudos

Hi Baran,

Please try like this.

DELETE TABLE itab WITH TABLE KEY x = key1

y = key2.

Regards,

Ferry Lianto