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

Loop at internal table

Former Member
0 Likes
426

Hi,

I am using a loop at internal table.I have to delete records from my internal table.Using delete within loop statement,gives performance issues.Please guide whether the delete will work outside the loop statement.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
399

Hi ,

You can delets entries outside the loop , either by using the index or the where condition along with the delete statement.

Regards,

Sunmit.

3 REPLIES 3
Read only

Former Member
0 Likes
399

Delete statement will work outside the loop.

delete itab where <condition>.

delete itab index <index>.

delete itab from <index1> to <index2>

Manoj

Read only

Former Member
0 Likes
399

Hi Sneha,

check the below link for all the forms of delete statements

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/delete.htm

Mark the points if u find it useful

~~Guduri

Read only

Former Member
0 Likes
400

Hi ,

You can delets entries outside the loop , either by using the index or the where condition along with the delete statement.

Regards,

Sunmit.