Skip to Content
Sep 02, 2018 at 06:23 AM

Question on table operation


Hi Experts,

I have a internal table with 28 columns explaining class characteristics so my internal table looks like this.

where f1 f2.. are class characteristics

f1 f2 f3 f4 .. f28

I need to filter the table entries based on ranges r1 r2 .. r28

that means if field f1 is not in ranges r1 and r1 is not initial delete that table entrty because field f1 is not in the range of r1 and r1 is filled .

the procedure I am using is

loop internal table tb_tab into wa

if wa-f1 is not initial and r1 is not initial

check wa-f1 in r1


if wa-f2 is not initial and r2 is not initial.

check wa-f2 in r2.




.. similarly for fileds 28 till r28

append wa to tb_temp


finally delete table tb_tab and create an temp table tb_tab_temp and pass temp table contents to tb_tab.

please suggest if there is any other better way