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

Remove a row from itab

Former Member
0 Likes
668

Hello,

may I know how can I remove a particular row, say row 1, from itab such that the rows that come after row 1, say 2, 3, 4 would promote by 1 row, i.e., row 2 becomes row 1 and row 3 becomes row 2 and so on?

Thanks a lot!

Regards,

Anyi

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
640

Try.....

delete itab index 1.

Regards,

Rich Heilman

Try.....

delete itab index 1.

Regards,

Rich Heilman

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
641

Try.....

delete itab index 1.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
640

You can use delete statement by passing the index.

delete i_itab index 1.

This will remove the first line of the internal table.

Read only

Former Member
0 Likes
640

Hi,

Delete the first record using DELETE statement..

Thanks,

naren

Read only

Former Member
0 Likes
640

Hi Anyi,

When you use a delete statement for an internal table the rows will be promoted automatically ie if you use Delete itab index 1.Then the first record gets deleted and the second record in the internal table now becomes the first record and so on.Hope its clear.

Thanks

Shyam