SAP LOGEXP IN SHORT FORM



Get Example source ABAP code based on a different SAP table
  


• IN - short form ABAP Statement

ABAP_RELEXP - IN, Short Form

Obsolete Syntax
... selcrit ...

What does it do?
This relational expression has the same effect as the comparison expression
... operand IN selcrit ...
Here, operand is the data object for which the selection table selcrit was declared using
SELECT-OPTIONS selcrit FOR operand.
The short form is only possible for selections tables declared using the statement SELECT-OPTIONS and with a statically specified data object. More specifically, the short form is not possible for ranges tables.



Latest notes:

Using this short form makes a program more difficult to understand. In particular, using this short form in processing blocks that are not immediately adjacent to the declaration of the selection table declaration can make the program confusing.
More specifically, this short form should not be confused with a predicative method call. A call of this type is false if its result is initial, whereas the short form shown here is always true for an initial selection table.
ABAP_HINT_END



Example ABAP Coding

Fills a selection table s_number and evaluates it using the short form number IN s_number. The output consists of the numbers 5, 7, and 9.
ABEXA 01100
ABAP_EXAMPLE_END