SAP G_SET_LIST_SELECT Function Module for Selection of a List fo Sets according to the Specified Selection Criteria









G_SET_LIST_SELECT is a standard g set list select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Selection of a List fo Sets according to the Specified Selection Criteria processing and below is the pattern details for this FM, 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 set list select FM, simply by entering the name G_SET_LIST_SELECT into the relevant SAP transaction such as SE37 or SE38.

Function Group: GSBD
Program Name: SAPLGSBD
Main Program: SAPLGSBD
Appliation area: G
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function G_SET_LIST_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_SET_LIST_SELECT'"Selection of a List fo Sets according to the Specified Selection Criteria
EXPORTING
* CLIENT = "Set Client
* ECCS_ITCLG = '*' "SAP Cons: Consolidation Chart of Accounts
* ECCS_SITYP = '*' "SAP Cons: Subitem Category
* SUBCLASS = "
* TYPELIST = 'BSMD' "List of Set Types 'BSMD'
* TABNAME = "Table for which Sets were Created (Mask)
* FIELDNAME = "Field hor which Sets were Created (Mask)
* ROLLNAME = "Dimension of Sets (Mask possible)
* DESCRIPT = "Short Text of Set (Mask possible)
* CREUSER = "Created by (Mask possible)
* UPDUSER = "Last Changed by (Mask possible)
* SETCLASS = "Class of Sets (Mask possible)
* NO_DYNAMIC_SETS = ' ' "Do not Select Dynamic Sets
* SHORTNAME = "Short Name of Sets (Mask possible)
* KOKRS = '*' "Controlling Area for CO Groups
* KTOPL = '*' "Chart of Account, if necessary Derived from CoArea
* FIKRS = '*' "
* LIB = "RW Report Library for Generated Sets
* RNAME = "Report for Generated RW Sets
* ECCS_DIMEN = '*' "SAP Cons: Dimension

TABLES
MATCHING_SETS = "List of Set Ids found
.



IMPORTING Parameters details for G_SET_LIST_SELECT

CLIENT - Set Client

Data type: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

ECCS_ITCLG - SAP Cons: Consolidation Chart of Accounts

Data type: SETHIER-ECCS_ITCLG
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ECCS_SITYP - SAP Cons: Subitem Category

Data type: SETHIER-ECCS_SITYP
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SUBCLASS -

Data type: SETSUBCLS
Optional: Yes
Call by Reference: No ( called with pass by value option)

TYPELIST - List of Set Types 'BSMD'

Data type: C
Default: 'BSMD'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABNAME - Table for which Sets were Created (Mask)

Data type: SETHIER-TABNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

FIELDNAME - Field hor which Sets were Created (Mask)

Data type: SETHIER-FIELDNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

ROLLNAME - Dimension of Sets (Mask possible)

Data type: SETHIER-ROLLNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

DESCRIPT - Short Text of Set (Mask possible)

Data type: SETHIER-DESCRIPT
Optional: Yes
Call by Reference: No ( called with pass by value option)

CREUSER - Created by (Mask possible)

Data type: SETHIER-CREUSER
Optional: Yes
Call by Reference: No ( called with pass by value option)

UPDUSER - Last Changed by (Mask possible)

Data type: SETHIER-UPDUSER
Optional: Yes
Call by Reference: No ( called with pass by value option)

SETCLASS - Class of Sets (Mask possible)

Data type: RGSBS-CLASS
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_DYNAMIC_SETS - Do not Select Dynamic Sets

Data type: SY-DATAR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SHORTNAME - Short Name of Sets (Mask possible)

Data type: C
Optional: Yes
Call by Reference: No ( called with pass by value option)

KOKRS - Controlling Area for CO Groups

Data type: SETHIER-KOKRS
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

KTOPL - Chart of Account, if necessary Derived from CoArea

Data type: SETHIER-KTOPL
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FIKRS -

Data type: SETHIER-FIKRS
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

LIB - RW Report Library for Generated Sets

Data type: SETHIER-LIB
Optional: Yes
Call by Reference: No ( called with pass by value option)

RNAME - Report for Generated RW Sets

Data type: SETHIER-RNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

ECCS_DIMEN - SAP Cons: Dimension

Data type: SETHIER-ECCS_DIMEN
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for G_SET_LIST_SELECT

MATCHING_SETS - List of Set Ids found

Data type: SETLIST
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for G_SET_LIST_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_client  TYPE SY-MANDT, "   
lt_matching_sets  TYPE STANDARD TABLE OF SETLIST, "   
lv_eccs_itclg  TYPE SETHIER-ECCS_ITCLG, "   '*'
lv_eccs_sityp  TYPE SETHIER-ECCS_SITYP, "   '*'
lv_subclass  TYPE SETSUBCLS, "   
lv_typelist  TYPE C, "   'BSMD'
lv_tabname  TYPE SETHIER-TABNAME, "   
lv_fieldname  TYPE SETHIER-FIELDNAME, "   
lv_rollname  TYPE SETHIER-ROLLNAME, "   
lv_descript  TYPE SETHIER-DESCRIPT, "   
lv_creuser  TYPE SETHIER-CREUSER, "   
lv_upduser  TYPE SETHIER-UPDUSER, "   
lv_setclass  TYPE RGSBS-CLASS, "   
lv_no_dynamic_sets  TYPE SY-DATAR, "   SPACE
lv_shortname  TYPE C, "   
lv_kokrs  TYPE SETHIER-KOKRS, "   '*'
lv_ktopl  TYPE SETHIER-KTOPL, "   '*'
lv_fikrs  TYPE SETHIER-FIKRS, "   '*'
lv_lib  TYPE SETHIER-LIB, "   
lv_rname  TYPE SETHIER-RNAME, "   
lv_eccs_dimen  TYPE SETHIER-ECCS_DIMEN. "   '*'

  CALL FUNCTION 'G_SET_LIST_SELECT'  "Selection of a List fo Sets according to the Specified Selection Criteria
    EXPORTING
         CLIENT = lv_client
         ECCS_ITCLG = lv_eccs_itclg
         ECCS_SITYP = lv_eccs_sityp
         SUBCLASS = lv_subclass
         TYPELIST = lv_typelist
         TABNAME = lv_tabname
         FIELDNAME = lv_fieldname
         ROLLNAME = lv_rollname
         DESCRIPT = lv_descript
         CREUSER = lv_creuser
         UPDUSER = lv_upduser
         SETCLASS = lv_setclass
         NO_DYNAMIC_SETS = lv_no_dynamic_sets
         SHORTNAME = lv_shortname
         KOKRS = lv_kokrs
         KTOPL = lv_ktopl
         FIKRS = lv_fikrs
         LIB = lv_lib
         RNAME = lv_rname
         ECCS_DIMEN = lv_eccs_dimen
    TABLES
         MATCHING_SETS = lt_matching_sets
. " G_SET_LIST_SELECT




ABAP code using 7.40 inline data declarations to call FM G_SET_LIST_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 MANDT FROM SY INTO @DATA(ld_client).
 
 
"SELECT single ECCS_ITCLG FROM SETHIER INTO @DATA(ld_eccs_itclg).
DATA(ld_eccs_itclg) = '*'.
 
"SELECT single ECCS_SITYP FROM SETHIER INTO @DATA(ld_eccs_sityp).
DATA(ld_eccs_sityp) = '*'.
 
 
DATA(ld_typelist) = 'BSMD'.
 
"SELECT single TABNAME FROM SETHIER INTO @DATA(ld_tabname).
 
"SELECT single FIELDNAME FROM SETHIER INTO @DATA(ld_fieldname).
 
"SELECT single ROLLNAME FROM SETHIER INTO @DATA(ld_rollname).
 
"SELECT single DESCRIPT FROM SETHIER INTO @DATA(ld_descript).
 
"SELECT single CREUSER FROM SETHIER INTO @DATA(ld_creuser).
 
"SELECT single UPDUSER FROM SETHIER INTO @DATA(ld_upduser).
 
"SELECT single CLASS FROM RGSBS INTO @DATA(ld_setclass).
 
"SELECT single DATAR FROM SY INTO @DATA(ld_no_dynamic_sets).
DATA(ld_no_dynamic_sets) = ' '.
 
 
"SELECT single KOKRS FROM SETHIER INTO @DATA(ld_kokrs).
DATA(ld_kokrs) = '*'.
 
"SELECT single KTOPL FROM SETHIER INTO @DATA(ld_ktopl).
DATA(ld_ktopl) = '*'.
 
"SELECT single FIKRS FROM SETHIER INTO @DATA(ld_fikrs).
DATA(ld_fikrs) = '*'.
 
"SELECT single LIB FROM SETHIER INTO @DATA(ld_lib).
 
"SELECT single RNAME FROM SETHIER INTO @DATA(ld_rname).
 
"SELECT single ECCS_DIMEN FROM SETHIER INTO @DATA(ld_eccs_dimen).
DATA(ld_eccs_dimen) = '*'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!