SAP REPORT_VARIABLE_SET Function Module for
REPORT_VARIABLE_SET is a standard report variable set 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 report variable set FM, simply by entering the name REPORT_VARIABLE_SET into the relevant SAP transaction such as SE37 or SE38.
Function Group: KYP3
Program Name: SAPLKYP3
Main Program: SAPLKYP3
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function REPORT_VARIABLE_SET 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 'REPORT_VARIABLE_SET'".
EXPORTING
* I_BBINPUT = ' ' "
* I_FSKZ_X = ' ' "
* I_MODE = 'M' "
I_RKB1D = "
I_RKB1F = "RKB1F
I_RKB1X = "RKB1X
* I_STATUS = 'VARIABLE' "
I_ZEIT_F = "Structure with time fields
IMPORTING
E_CODE = "
E_RKB1X = "
TABLES
I_FDEP_TAB = "Dependency table
I_FIELD_TAB = "Table of the field information
I_FORM_TAB = "Table with row/column structure
I_SEIG = "Table of the characteristics
I_SH_TAB = "
I_TEXTE_TAB = "Table of the variable texts
I_TEXTPARAM_TAB = "Table of the text parameters
I_VAR_TAB = "Table of the variable
EXCEPTIONS
BREAKOFF = 1
IMPORTING Parameters details for REPORT_VARIABLE_SET
I_BBINPUT -
Data type: CCVALID-XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FSKZ_X -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MODE -
Data type: CDefault: 'M'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RKB1D -
Data type: RKB1DOptional: No
Call by Reference: No ( called with pass by value option)
I_RKB1F - RKB1F
Data type: RKB1FOptional: No
Call by Reference: No ( called with pass by value option)
I_RKB1X - RKB1X
Data type: RKB1XOptional: No
Call by Reference: No ( called with pass by value option)
I_STATUS -
Data type: SY-PFKEYDefault: 'VARIABLE'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ZEIT_F - Structure with time fields
Data type: CFTIMEOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for REPORT_VARIABLE_SET
E_CODE -
Data type: SY-UCOMMOptional: No
Call by Reference: No ( called with pass by value option)
E_RKB1X -
Data type: RKB1XOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for REPORT_VARIABLE_SET
I_FDEP_TAB - Dependency table
Data type: CDIDEPOptional: No
Call by Reference: No ( called with pass by value option)
I_FIELD_TAB - Table of the field information
Data type: CDIFIEOptional: No
Call by Reference: No ( called with pass by value option)
I_FORM_TAB - Table with row/column structure
Data type: CFBFO01Optional: No
Call by Reference: No ( called with pass by value option)
I_SEIG - Table of the characteristics
Data type: CFBSE01Optional: No
Call by Reference: No ( called with pass by value option)
I_SH_TAB -
Data type: CFBSH01Optional: No
Call by Reference: No ( called with pass by value option)
I_TEXTE_TAB - Table of the variable texts
Data type: RKB1WOptional: No
Call by Reference: No ( called with pass by value option)
I_TEXTPARAM_TAB - Table of the text parameters
Data type: CFBTP01Optional: No
Call by Reference: No ( called with pass by value option)
I_VAR_TAB - Table of the variable
Data type: CFBVP01Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
BREAKOFF - Terminate in the dialog box
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for REPORT_VARIABLE_SET 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_e_code | TYPE SY-UCOMM, " | |||
| lv_breakoff | TYPE SY, " | |||
| lv_i_bbinput | TYPE CCVALID-XFELD, " SPACE | |||
| lt_i_fdep_tab | TYPE STANDARD TABLE OF CDIDEP, " | |||
| lv_e_rkb1x | TYPE RKB1X, " | |||
| lv_i_fskz_x | TYPE C, " SPACE | |||
| lt_i_field_tab | TYPE STANDARD TABLE OF CDIFIE, " | |||
| lv_i_mode | TYPE C, " 'M' | |||
| lt_i_form_tab | TYPE STANDARD TABLE OF CFBFO01, " | |||
| lt_i_seig | TYPE STANDARD TABLE OF CFBSE01, " | |||
| lv_i_rkb1d | TYPE RKB1D, " | |||
| lv_i_rkb1f | TYPE RKB1F, " | |||
| lt_i_sh_tab | TYPE STANDARD TABLE OF CFBSH01, " | |||
| lv_i_rkb1x | TYPE RKB1X, " | |||
| lt_i_texte_tab | TYPE STANDARD TABLE OF RKB1W, " | |||
| lv_i_status | TYPE SY-PFKEY, " 'VARIABLE' | |||
| lt_i_textparam_tab | TYPE STANDARD TABLE OF CFBTP01, " | |||
| lv_i_zeit_f | TYPE CFTIME, " | |||
| lt_i_var_tab | TYPE STANDARD TABLE OF CFBVP01. " |
|   CALL FUNCTION 'REPORT_VARIABLE_SET' " |
| EXPORTING | ||
| I_BBINPUT | = lv_i_bbinput | |
| I_FSKZ_X | = lv_i_fskz_x | |
| I_MODE | = lv_i_mode | |
| I_RKB1D | = lv_i_rkb1d | |
| I_RKB1F | = lv_i_rkb1f | |
| I_RKB1X | = lv_i_rkb1x | |
| I_STATUS | = lv_i_status | |
| I_ZEIT_F | = lv_i_zeit_f | |
| IMPORTING | ||
| E_CODE | = lv_e_code | |
| E_RKB1X | = lv_e_rkb1x | |
| TABLES | ||
| I_FDEP_TAB | = lt_i_fdep_tab | |
| I_FIELD_TAB | = lt_i_field_tab | |
| I_FORM_TAB | = lt_i_form_tab | |
| I_SEIG | = lt_i_seig | |
| I_SH_TAB | = lt_i_sh_tab | |
| I_TEXTE_TAB | = lt_i_texte_tab | |
| I_TEXTPARAM_TAB | = lt_i_textparam_tab | |
| I_VAR_TAB | = lt_i_var_tab | |
| EXCEPTIONS | ||
| BREAKOFF = 1 | ||
| . " REPORT_VARIABLE_SET | ||
ABAP code using 7.40 inline data declarations to call FM REPORT_VARIABLE_SET
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 UCOMM FROM SY INTO @DATA(ld_e_code). | ||||
| "SELECT single XFELD FROM CCVALID INTO @DATA(ld_i_bbinput). | ||||
| DATA(ld_i_bbinput) | = ' '. | |||
| DATA(ld_i_fskz_x) | = ' '. | |||
| DATA(ld_i_mode) | = 'M'. | |||
| "SELECT single PFKEY FROM SY INTO @DATA(ld_i_status). | ||||
| DATA(ld_i_status) | = 'VARIABLE'. | |||
Search for further information about these or an SAP related objects