sel
selection criterion of the
same program defined using PARAMETERS or
SELECT-OPTIONS . The name sel
must be specified directly. When this association is made, the field
help or input help for sel is displayed when the user selects the
output field using the function keys F1 and F4 . It also
means that the output field is assigned to the same
modification group . The output
field is also hidden if sel is made invisible using a
variant . If FOR FIELD is specified,
text does not have to be specified. The output field is then
filled either with the specified name sel , or, if it exists in
the current text pool , with the
corresponding selection text.
Latest notes: The addition FOR FIELD causes the output field
output field to behave in exactly the same way as the output fields
generated automatically by PARAMETERS or SELECT-OPTIONS in
response to parameters or selection criteria. Automatically generated
fields are not displayed in a line if multiple elements are included in
the output, and can thus be replaced by associated user-defined output
fields.
The FOR FIELD addition is also important for creating
accessible selection screens, since it assigns an accessible descriptor
to an input field.
ABAP_ADDITION_3 ... VISIBLE LENGTH vlen
What does it do? The addition VISIBLE LENGTH defines the visible
length vlen of the output field. vlen must be specified
directly as a positive integer. If vlen is greater than len
, the visible length is set to len . If vlen is less
than len , the output field is displayed in the length of vlen
with movable content and a tooltip of
the whole content.
Example ABAP Coding Output fields, horizontal lines, and empty lines on the
standard selection screen of an
executable program. The first output field is highlighted in the
display.
SELECTION-SCREEN COMMENT /1(50) comm1 MODIF ID mg1.
SELECTION-SCREEN ULINE.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN COMMENT /1(30) comm2.
SELECTION-SCREEN ULINE /1(50).
PARAMETERS: r1 RADIOBUTTON GROUP rad1,
r2 RADIOBUTTON GROUP rad1,
r3 RADIOBUTTON GROUP rad1.
SELECTION-SCREEN ULINE /1(50).
AT SELECTION-SCREEN OUTPUT.
comm1 = 'Selection Screen'.
comm2 = 'Select one'.
LOOP AT SCREEN INTO DATA(screen_wa).
IF screen_wa-group1 = 'MG1'.
screen_wa-intensified = '1'.
MODIFY SCREEN FROM screen_wa.
ENDIF.
ENDLOOP.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved