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: 

hi guru's how can i delete from internal table index 5, 11, 15 records

Former Member
0 Kudos

hi guru's how can i delete from internal table index 5, 11, 15 records at a time plz help me

6 REPLIES 6

former_member386202
Active Contributor
0 Kudos

Hi,

Do like this

Delete itab index 11.

Regards,

Prashant

Former Member
0 Kudos

hi,

try the following code:

delete int_tab index 5.

delete int_tab index 11.

delete int_tab index 15.

it should work now.

reward if helpful..

Former Member
0 Kudos

hi

loop at itab.

if sy-index = 5

delete itab index 5.

delete itab index 11.

delete itab index 15.

endif

or you can do directly

delete itab index 5.

delete itab index 11.

delete itab index 15.

Dependents on interval

regards,

pavan

REWARD POINTS IF USEFUL

0 Kudos

hi guru's how can i delete from internal table index 5, 11, 15 records not lke hat so many

more records are their i want to delete more at that time also do like that help me my question

0 Kudos

Hi,

then try using some condition,

Loop at ITAB.

DELETE ITAB WHERE <condition>.

Endloop.

0 Kudos

Hi,

Keep all your lines you want delete put in an internal table called i_index.(this intenal have a field index)


loop at itab.
v_tabix = sy-tabix.
  read table i_index with index = sy-tabix.
  if sy-subrc eq 0.
     delete itab index v_tabix.
  endif.
endloop.