SAP WHERE LOGEXP DYNAMIC



Get Example source ABAP code based on a different SAP table
  


• (...) ABAP_OSQL_COND

ABAP_SQLCOND - (cond_syntax)
Short Reference

ABAP_SYNTAX
... (cond_syntax) ...

What does it do?
A relational expression can be specified dynamically as a parenthesized data object cond_syntax that contains the syntax of a logical expression sql_cond valid here or is initial when the statement is executed. The result of the relational expression (cond_syntax) is determined by the result of the contained logical expression. If cond_syntax is initial when the statement is executed, the relational expression is true.
The data object cond_syntax can be a character-like data object or a standard table with a character-like line type. The syntax in cond_syntax is not case-sensitive as in the static syntax. When specifying an internal table, the syntax can be distributed across multiple rows. Invalid syntax raises a catchable exception from the class CX_SY_DYNAMIC_OSQL_ERROR.
The logical expression in cond_syntax can be joined using AND or OR or negated using NOT and a dynamic logical expression (cond_syntax) can be specified as a single relational expression of a composite logical expression. Host expressions are not allowed in dynamic logical expressions.
If a dynamic SQL condition (cond_syntax) is used for a read, the content of cond_syntax is evaluated once for each query. Any changes made to the content of cond_syntax in a SELECT loop or WITH loop are ignored by the relational expression.