SAP WHERE LOGEXP IN



Get Example source ABAP code based on a different SAP table
  


Short Reference
• IN ( ... ) ABAP_OSQL_COND
• NOT IN ( ... ) ABAP_OSQL_COND
• , ABAP_OSQL_COND
• IN ( SELECT ... ) ABAP_OSQL_COND
• NOT IN ( SELECT ... ) ABAP_OSQL_COND

ABAP_SQLCOND - IN ( ... )

ABAP_SYNTAX_FORMS

Single Operand
1 ... operand $[NOT$] IN ${ (operand1$[, operand2$[, ...$]$]) $}
$| ${ ( SELECT subquery_clauses $[UNION$|INTERSECT$|EXCEPT ...$] ) $} ...

Operand List
2 ... ( operand1, operand2$[, ...$] ) IN ${ ( ( operand11, operand21$[, ...$] )$[,
( operand12, operand22$[, ...$] )$] ) $}
$| ${ ( SELECT subquery_clauses $[ UNION$|INTERSECT$|EXCEPT ...$] ) $} ...

What does it do?
This variant of the operator IN checks whether the operands on the left side match a value from a set of values specified in parentheses. A single operand or an operand list can be specified on the left side. The set of values on the right side is determined using either comma-separated lists or subqueries.