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

Dynamical IF condition

BGarcia
Active Contributor
0 Likes
309

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
279

Did you check these threads?

https://forums.sdn.sap.com/click.jspa?searchID=14852341&messageID=2523639

/community [original link is broken]

1 REPLY 1
Read only

Former Member
0 Likes
280

Did you check these threads?

https://forums.sdn.sap.com/click.jspa?searchID=14852341&messageID=2523639

/community [original link is broken]