SAP Function RS_SELECTIONSCREEN_READ - Function Module for individual F4 on a multiple selection screen

Parameter Reference Type Length Default Optional Text
DYNNR SYST-DYNNR C 4 X Screen Number
PROGRAM SYST-REPID C 40 Current program name

Parameter Reference Length Optional Text
FIELDVALUES RSSELREAD 58 Table with field name, type, position

Functionality
The function module returns the current values of the field namesspecified in the table FIELDVALUES. On the standard selection screen,you can retrieve the values of any number of fields (select-options andparameters). On the multiple selection screen, you can only retrievethe values of the LOW and HIGH fields in the current cursor line.

Example
AT SELECTION-SCREEN ON VALUE-REQUEST FOR budat-high.
CLEAR fieldvalues. REFRESH fieldvalues.
MOVE: 'BUDAT' TO fieldvalues-name,
'S' TO fieldvalues-kind,
'LOW' TO fieldvalues-position.
APPEND fieldvalues. CLEAR fieldvalues.
MOVE: 'PARAM' TO fieldvalues-name,
'P' TO fieldvalues-kind.
APPEND fieldvalues. CLEAR fieldvalues.
MOVE: 'ERWIN' TO fieldvalues-name,
'S' TO fieldvalues-kind,
'HIGH' TO fieldvalues-position.
APPEND fieldvalues.
CALL FUNCTION 'RS_SELECTIONSCREEN_READ'
EXPORTING
program = 'TEST'
TABLES
fieldvalues = fieldvalues.
The field FIELDVALUES-fieldvalue contains the current value of eachfield.