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: 

Dynamical IF condition

BGarcia
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Did you check these threads?

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

/community [original link is broken]

1 REPLY 1

Former Member
0 Kudos

Did you check these threads?

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

/community [original link is broken]