SAP Function G_SET_GET_ALL_VALUES - Read All Values in a Set Hierarchy

Parameter Reference Type Length Default Optional Text
CLASS RGSBS-CLASS C 4 SPACE X Obsolete, Use ID in SETNR Parameter
CLIENT SYST-MANDT C 3 SPACE X Client of the Set
DATE_FROM DATAB D 8 X Selection Date for Dynamic Sets (From Value)
DATE_TO DATBI D 8 X Selection Date for Dynamic Sets (From Value)
FIELDNAME FIELDNAME C 30 SPACE X Different Reference Field, if Required (only with TABLE)
FORMULA_RETRIEVAL RGSBS-UNIQUE C 1 SPACE X 'X' --> Return of Formula Lines
LEVEL SYST-TABIX I 4 0 X Number of Desired Levels (DEFAULT = all)
NO_DESCRIPTIONS SYST-DATAR C 1 'X' X "X" --> No Short Descriptions
NO_RW_INFO SYST-DATAR C 1 'X' X Obsolete, Do Not Use
SETNR C C 0 Set ID
TABLE RGSBS-TABLE C 30 SPACE X Obsolete, Use ID in SETNR Parameter
VARIABLES_REPLACEMENT RGSBS-UNIQUE C 1 SPACE X Replace Value Variable with Default Values

Parameter Reference Length Optional Text
SET_VALUES RGSB4 232 Set Value Table

Exception Text
SET_NOT_FOUND Set Not Found


This function module determines all the values of a set or itssubordinate sets. The required call parameter is the set ID (SETNR).The other parameters are optional:
  • FORMULA_RETRIEVAL: 'X' => The formulas in the set are also returned
  • (default ' ' requires fewer database accesses)
    • LEVEL: The default value is 0 and means "expand all levels". Values
    • other than 0 determine the level to which they are to be expanded
      • VARIABLES_REPLACEMENT: 'X' => The value variables in the set hierarchy
      • are replaced by their default values (this means additional databaseaccesses for each variable)
        • NO_DESCRIPTIONS: 'X' => The short descriptions of the sets and set
        • lines are not read from the database. For performance reasons youshould only set this parameter to ' ' if you need the texts
          The values determined are returned to the internal table SET_VALUES.

500136EXIT_SAPFGRWX_001 - Technical information