Skip to Content
0
Aug 05, 2008 at 01:25 PM

Dynamical IF condition

25 Views

Hi friends,

Does anyone know if it is possible to define an IF condition dinamically?

For example, instead of doing this:

IF 1 = 1.
  WRITE 'OK'.
ENDIF.

Do something like this (like in SELECT statements):

DATA lv_condition TYPE string VALUE '1 = 1'.

IF ( lv_condition ).
  WRITE 'OK'.
ENDIF.

Thanks in advance for any help.

Kind regards,

Bruno