SAP G_RW_SET_SELECT Function Module for
G_RW_SET_SELECT is a standard g rw set select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for g rw set select FM, simply by entering the name G_RW_SET_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: GRWD
Program Name: SAPLGRWD
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function G_RW_SET_SELECT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'G_RW_SET_SELECT'".
EXPORTING
* CLASS = ' ' "
* SHOW_FIELD_NAME = 'X' "
* SHOW_TABLE_NAME = ' ' "
* NO_DYNAMIC_SETS = "
* NO_MAINTENANCE = 'X' "
* DISPLAY_ONLY = ' ' "
* FIELD_NAME = '*' "
* NO_FIELD_NAME_CHANGE = ' ' "
* SET = '*' "
* TABLE = '*' "
* LIB = "
* RNAME = "
* NO_TABLE_NAME_CHANGE = ' ' "
* TYPELIST = 'BSMD' "Set types 'BSMD'; note sequence an
IMPORTING
SETID = "
CLASS_NAME = "
SET_NAME = "
SET_TITLE = "
TABLE_NAME = "
SET_TYPE = "
SET_FIELD = "
EXCEPTIONS
NO_SETS = 1 NO_SET_PICKED = 2
IMPORTING Parameters details for G_RW_SET_SELECT
CLASS -
Data type: RGSBS-CLASSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHOW_FIELD_NAME -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHOW_TABLE_NAME -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_DYNAMIC_SETS -
Data type: SY-DATAROptional: Yes
Call by Reference: No ( called with pass by value option)
NO_MAINTENANCE -
Data type: SY-DATARDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DISPLAY_ONLY -
Data type: SY-DATARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FIELD_NAME -
Data type: RGSBS-FIELDDefault: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_FIELD_NAME_CHANGE -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SET -
Data type: CDefault: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLE -
Data type: RGSBS-TABLEDefault: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)
LIB -
Data type: SETHIER-LIBOptional: Yes
Call by Reference: No ( called with pass by value option)
RNAME -
Data type: SETHIER-RNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
NO_TABLE_NAME_CHANGE -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TYPELIST - Set types 'BSMD'; note sequence an
Data type:Default: 'BSMD'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for G_RW_SET_SELECT
SETID -
Data type: RGSBS-SETNROptional: No
Call by Reference: No ( called with pass by value option)
CLASS_NAME -
Data type: RGSBS-CLASSOptional: No
Call by Reference: No ( called with pass by value option)
SET_NAME -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
SET_TITLE -
Data type: RGSBS-TITLEOptional: No
Call by Reference: No ( called with pass by value option)
TABLE_NAME -
Data type: RGSBS-TABLEOptional: No
Call by Reference: No ( called with pass by value option)
SET_TYPE -
Data type: RGSBS-TYPEOptional: No
Call by Reference: No ( called with pass by value option)
SET_FIELD -
Data type: RGSBS-FIELDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_SETS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_SET_PICKED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for G_RW_SET_SELECT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_class | TYPE RGSBS-CLASS, " SPACE | |||
lv_setid | TYPE RGSBS-SETNR, " | |||
lv_no_sets | TYPE RGSBS, " | |||
lv_show_field_name | TYPE RGSBS, " 'X' | |||
lv_show_table_name | TYPE C, " ' ' | |||
lv_no_dynamic_sets | TYPE SY-DATAR, " | |||
lv_no_maintenance | TYPE SY-DATAR, " 'X' | |||
lv_display_only | TYPE SY-DATAR, " SPACE | |||
lv_class_name | TYPE RGSBS-CLASS, " | |||
lv_field_name | TYPE RGSBS-FIELD, " '*' | |||
lv_no_set_picked | TYPE RGSBS, " | |||
lv_set_name | TYPE C, " | |||
lv_no_field_name_change | TYPE C, " ' ' | |||
lv_set | TYPE C, " '*' | |||
lv_set_title | TYPE RGSBS-TITLE, " | |||
lv_table | TYPE RGSBS-TABLE, " '*' | |||
lv_table_name | TYPE RGSBS-TABLE, " | |||
lv_lib | TYPE SETHIER-LIB, " | |||
lv_set_type | TYPE RGSBS-TYPE, " | |||
lv_rname | TYPE SETHIER-RNAME, " | |||
lv_set_field | TYPE RGSBS-FIELD, " | |||
lv_no_table_name_change | TYPE C, " ' ' | |||
lv_typelist | TYPE C. " 'BSMD' |
  CALL FUNCTION 'G_RW_SET_SELECT' " |
EXPORTING | ||
CLASS | = lv_class | |
SHOW_FIELD_NAME | = lv_show_field_name | |
SHOW_TABLE_NAME | = lv_show_table_name | |
NO_DYNAMIC_SETS | = lv_no_dynamic_sets | |
NO_MAINTENANCE | = lv_no_maintenance | |
DISPLAY_ONLY | = lv_display_only | |
FIELD_NAME | = lv_field_name | |
NO_FIELD_NAME_CHANGE | = lv_no_field_name_change | |
SET | = lv_set | |
TABLE | = lv_table | |
LIB | = lv_lib | |
RNAME | = lv_rname | |
NO_TABLE_NAME_CHANGE | = lv_no_table_name_change | |
TYPELIST | = lv_typelist | |
IMPORTING | ||
SETID | = lv_setid | |
CLASS_NAME | = lv_class_name | |
SET_NAME | = lv_set_name | |
SET_TITLE | = lv_set_title | |
TABLE_NAME | = lv_table_name | |
SET_TYPE | = lv_set_type | |
SET_FIELD | = lv_set_field | |
EXCEPTIONS | ||
NO_SETS = 1 | ||
NO_SET_PICKED = 2 | ||
. " G_RW_SET_SELECT |
ABAP code using 7.40 inline data declarations to call FM G_RW_SET_SELECT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8."SELECT single CLASS FROM RGSBS INTO @DATA(ld_class). | ||||
DATA(ld_class) | = ' '. | |||
"SELECT single SETNR FROM RGSBS INTO @DATA(ld_setid). | ||||
DATA(ld_show_field_name) | = 'X'. | |||
DATA(ld_show_table_name) | = ' '. | |||
"SELECT single DATAR FROM SY INTO @DATA(ld_no_dynamic_sets). | ||||
"SELECT single DATAR FROM SY INTO @DATA(ld_no_maintenance). | ||||
DATA(ld_no_maintenance) | = 'X'. | |||
"SELECT single DATAR FROM SY INTO @DATA(ld_display_only). | ||||
DATA(ld_display_only) | = ' '. | |||
"SELECT single CLASS FROM RGSBS INTO @DATA(ld_class_name). | ||||
"SELECT single FIELD FROM RGSBS INTO @DATA(ld_field_name). | ||||
DATA(ld_field_name) | = '*'. | |||
DATA(ld_no_field_name_change) | = ' '. | |||
DATA(ld_set) | = '*'. | |||
"SELECT single TITLE FROM RGSBS INTO @DATA(ld_set_title). | ||||
"SELECT single TABLE FROM RGSBS INTO @DATA(ld_table). | ||||
DATA(ld_table) | = '*'. | |||
"SELECT single TABLE FROM RGSBS INTO @DATA(ld_table_name). | ||||
"SELECT single LIB FROM SETHIER INTO @DATA(ld_lib). | ||||
"SELECT single TYPE FROM RGSBS INTO @DATA(ld_set_type). | ||||
"SELECT single RNAME FROM SETHIER INTO @DATA(ld_rname). | ||||
"SELECT single FIELD FROM RGSBS INTO @DATA(ld_set_field). | ||||
DATA(ld_no_table_name_change) | = ' '. | |||
DATA(ld_typelist) | = 'BSMD'. | |||
Search for further information about these or an SAP related objects