Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamic Logical Expressions in ABAP: IF (lt_cond)...

is it possible to have a dynamically constructured logical expression?

I have a condition I need to use in an IF, but I want to avoid hard-coding, so I dynamicallybuild it.

for a simple example:

CONCATENATE ITAB-f1
           'EQ'
           varValue
           INTO lt_cond SEPARATED BY SPACE.
IF (lt_cond).
  WRITE:/ 'Success'.
ENDIF.

Is it possible to do this?

NL

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question