To position a set of parameters or comments in a single line on the selection screen, you must declare the elements in a block enclosed by the following two statements:
SELECTION-SCREEN BEGIN OF LINE.
...
SELECTION-SCREEN END OF LINE.
Note that the selection text is not displayed when you use this option. To describe the elements, you must use the COMMENT addition of the SELECTION-SCREEN statement.
In the <pos(len)> formatting option of the SELECTION-SCREEN statement, you can omit <pos> between the statements specified above. The element is placed at the current position in the line. Between the statements specified above, you must not use a slash (/) in the <pos(len)> formatting option.
To determine the position of an element in a line, you use:
SELECTION-SCREEN POSITION <pos>.
For <pos>, you can specify a number or either one of the expressions POS_LOW and POS_HIGH. POS_LOW and POS_HIGH mark the positions of the input fields of a selection criterion. Use the POSITION addition only between BEGIN OF LINE and END OF LINE.
Examples
REPORT DEMO.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) TEXT-001.
PARAMETERS: P1(3), P2(5), P3(1).
SELECTION-SCREEN END OF LINE.
The following selection screen appears:
The line starts with the 'Title' contents of text symbol 001 and is followed by the input fields for parameters P1, P2, and P3.
REPORT DEMO.
DATA WA_SPFLI TYPE SPFLI.
SELECT-OPTIONS AIRLINE FOR WA_SPFLI-CARRID.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION POS_HIGH.
PARAMETERS FIELD(5).
SELECTION-SCREEN END OF LINE.
The following selection screen appears:
The input field for the FIELD parameter appears below the second field of selection criterion AIRLINE. For FIELD, no selection text is displayed.