Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

ABAPSELECTION-SCREEN_COMMENT - SELECTION-SCREEN COMMENT

ABAPSELECTION-SCREEN_COMMENT - SELECTION-SCREEN COMMENT

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

SELECTION-SCREEN, COMMENT

Short Reference



SELECTION-SCREEN COMMENT $[/$]$[pos$|POS_LOW$|POS_HIGH$](len)
                         ${text$|${$[text$] FOR FIELD sel$}$}
                         $[VISIBLE LENGTH vlen$]
$[MODIF ID modid$]
$[ldb_additions$].

Additions

1. ... $[/$]$[pos$|POS_LOW$|POS_HIGH$](len)

2. ... FOR FIELD sel

3. ... VISIBLE LENGTH vlen

Effect

This statement creates an output field on the current selection screen and produces the content of text as output in this field. text expects either the name of a text symbol of the program that can be specified in the form text-idf, where idf is the three-character ID for the text symbol, or a freely definable name with a maximum of eight characters. If a user-defined name is entered, the runtime framework generates an identically named global variable with type c and length 83. If the specified text symbol is not found, no text is produced as output field. The MODIF ID addition assigns the output field to the modification group modid.

The ldb_additions can only be used in the selection include of a logical database.

Addition 1

... $[/$]$[pos$|POS_LOW$|POS_HIGH$](len)

Effect

The position of the output field must be specified with this addition. The syntax and the meaning are the same as when creating horizontal lines. In this case, len defines the length of the output field in the dynpro of the selection screen. If an output field extends beyond position 83 or a block with a frame, the visible length is shortened accordingly and the content is displayed in the visible length.

Addition 2

... FOR FIELD sel

Effect

If the addition FOR FIELD is used, the output field is linked with a parameter or sel selection criterion of the same program defined using PARAMETERS or SELECT-OPTIONS. The name sel must be specified directly. When this link 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 selection screen 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.

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.

Addition 3

... VISIBLE LENGTH vlen

Effect

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

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.








RFUMSV00 - Advance Return for Tax on Sales/Purchases   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 6977 Date: 20230206 Time: 105604     sap01-206 ( 116 ms )