SAP Function Modules

Share |

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

Pattern for FM RS_SELECTIONSCREEN_READ - RS SELECTIONSCREEN READ
Associated Function Group: ALDB
Released Date: 26.02.1998
CALL FUNCTION 'RS_SELECTIONSCREEN_READ' "Function Module for individual F4 on a multiple selection screen
  EXPORTING
    program =                   " sy-repid      Current program name
*   dynnr =                     " sy-dynnr      Screen Number
  TABLES
    fieldvalues =               " rsselread     Table with field name, type, position
    .  "  RS_SELECTIONSCREEN_READ

SAP Documentation for FM RS_SELECTIONSCREEN_READ


FUNCTIONALITY

The function module returns the current values of the field names specified in the table FIELDVALUES. On the standard selection screen, you can retrieve the values of any number of fields (select-options and parameters). On the multiple selection screen, you can only retrieve the 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 each field.
Documentation extract taken from SAP system, Copyright (c) SAP AG






Share |