SAP G_VSR_GET_SET_INFO Function Module for









G_VSR_GET_SET_INFO is a standard g vsr get set info 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 vsr get set info FM, simply by entering the name G_VSR_GET_SET_INFO into the relevant SAP transaction such as SE37 or SE38.

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



Function G_VSR_GET_SET_INFO 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_VSR_GET_SET_INFO'"
EXPORTING
SETID = "
* X_WITH_DIMLIST = ' ' "
* MANDT = ' ' "
* X_NO_SET_TITLE = 'X' "

IMPORTING
SETNAME = "
SET_DESCRIPTION = "
SET_FIELD = "
SET_TYPE = "

CHANGING
SET_TABLE = "

TABLES
* DIM_FIELD_LIST = "

EXCEPTIONS
SET_NOT_FOUND = 1
.



IMPORTING Parameters details for G_VSR_GET_SET_INFO

SETID -

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

X_WITH_DIMLIST -

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

MANDT -

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

X_NO_SET_TITLE -

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

EXPORTING Parameters details for G_VSR_GET_SET_INFO

SETNAME -

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

SET_DESCRIPTION -

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

SET_FIELD -

Data type: GB01-BCLFIELD
Optional: No
Call by Reference: No ( called with pass by value option)

SET_TYPE -

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

CHANGING Parameters details for G_VSR_GET_SET_INFO

SET_TABLE -

Data type: GB01-BCLTAB
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for G_VSR_GET_SET_INFO

DIM_FIELD_LIST -

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

EXCEPTIONS details

SET_NOT_FOUND -

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

Copy and paste ABAP code example for G_VSR_GET_SET_INFO 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_setid  TYPE SETID, "   
lv_setname  TYPE SETNAMENEW, "   
lv_set_table  TYPE GB01-BCLTAB, "   
lv_set_not_found  TYPE GB01, "   
lt_dim_field_list  TYPE STANDARD TABLE OF DFIES, "   
lv_x_with_dimlist  TYPE XFELD, "   ' '
lv_set_description  TYPE CHAR40, "   
lv_mandt  TYPE SY-MANDT, "   ' '
lv_set_field  TYPE GB01-BCLFIELD, "   
lv_set_type  TYPE CHAR1, "   
lv_x_no_set_title  TYPE XFELD. "   'X'

  CALL FUNCTION 'G_VSR_GET_SET_INFO'  "
    EXPORTING
         SETID = lv_setid
         X_WITH_DIMLIST = lv_x_with_dimlist
         MANDT = lv_mandt
         X_NO_SET_TITLE = lv_x_no_set_title
    IMPORTING
         SETNAME = lv_setname
         SET_DESCRIPTION = lv_set_description
         SET_FIELD = lv_set_field
         SET_TYPE = lv_set_type
    CHANGING
         SET_TABLE = lv_set_table
    TABLES
         DIM_FIELD_LIST = lt_dim_field_list
    EXCEPTIONS
        SET_NOT_FOUND = 1
. " G_VSR_GET_SET_INFO




ABAP code using 7.40 inline data declarations to call FM G_VSR_GET_SET_INFO

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 BCLTAB FROM GB01 INTO @DATA(ld_set_table).
 
 
 
DATA(ld_x_with_dimlist) = ' '.
 
 
"SELECT single MANDT FROM SY INTO @DATA(ld_mandt).
DATA(ld_mandt) = ' '.
 
"SELECT single BCLFIELD FROM GB01 INTO @DATA(ld_set_field).
 
 
DATA(ld_x_no_set_title) = 'X'.
 


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!