Skip to Content
0
Former Member
Feb 11, 2015 at 11:24 AM

Restrict the access in a LOOP using field symbols & WHERE clause

799 Views

Hi,

I have a doubt related when I want to restrict the access to the table in a LOOP using field symbols.

Can you help me, please?

The case is, I have this

<it_table> is type ANY, I don't know the structure in advance.

LOOP AT <it_table> ASSIGNING <wa_table>.

ASSIGN COMPONENT <fs_field of_table> OF STRUCTURE <wa_table> TO <fs_value of_table>.

IF <fs_value of_table> NE lv_constant.

CONTINUE.

ENDIF.

* Process my code

ENDLOOP.

I would like putting a WHERE clause in the LOOP line, but I'm not able to do it.

Is it possible?

Thanks in advance,

Antonio.