Get Example source ABAP code based on a different SAP table
• IN ABAP_RELAT_EXPR • NOT IN ABAP_RELAT_EXPR
ABAP_RELEXP > - Tabular Comparison Operator IN>
ABAP_SYNTAX ABAP_KEY ... operand $[NOT$] IN range_tab ...>
What does it do? In a comparison expression with the comparison operator IN>, the conditions of a ranges table> or a table of this structure are checked. This means whether an operand operand > is checked to see whether it meets the conditions in the lines of the ranges table or not, if the addition NOT > is specified. The tabular comparison expression is equivalent to a combination of binary> or ternary> comparison expressions whose number is determined by the number of lines in the internal table. Any internal table whose line type matches that of a ranges table or a functional method> with the corresponding type of return value can be specified as a table range_tab>. BEGIN_SECTION VERSION 5 OUT This includes, in particular, selection tables>. END_SECTION VERSION 5 OUT The ranges table can be of any table type. For the structure of a ranges tables, see TYPES RANGE OF>>. The evaluation of a ranges table requires it to contain the valid values listed there in the columns sign> and option>. If the ranges table contains invalid values, an uncatchable exception is raised. If the ranges table is initial, the comparison expression is always true. Each line of a non-initial ranges table is included in the combination using one of the following comparison expressions. Depending on the operator in the column option>, this is a comparison between two operands using a binary comparison operator > or an interval restriction using the ternary operator> BETWEEN>.