SAP LOGEXP IN SHORT FORM
Get Example source ABAP code based on a different SAP table
ARTICLE
• IN - Kurzform ABAP Statement
Obsolete Syntax
Effect
This relational expression has the same effect as the comparison expression
To use this short form,
with the data object
Note
Using this short form makes a program more difficult to understand. In particular, using this short form in processing blocks not in the immediate vicinity of the selection table's declaration can make the program confusing.
Example
Fills a selection table
SELECT-OPTIONS s_number FOR number NO-DISPLAY.
s_number-sign = 'I'.
s_number-option = 'EQ'.
s_number-low = 9.
APPEND s_number TO s_number.
s_number-sign = 'I'.
s_number-option = 'BT'.
s_number-low = 3.
s_number-high = 7.
APPEND s_number TO s_number.
s_number-sign = 'E'.
s_number-option = 'EQ'.
s_number-low = 6.
APPEND s_number TO s_number.
s_number-sign = 'E'.
s_number-option = 'BT'.
s_number-low = 1.
s_number-high = 4.
APPEND s_number TO s_number.
DO 10 TIMES.
number = sy-index.
IF s_number.
cl_demo_output=>write_data( sy-index ).
ENDIF.
ENDDO.
cl_demo_output=>display( ).