SAP G_RW_FILL_SELECTION_SCREEN Function Module for
G_RW_FILL_SELECTION_SCREEN is a standard g rw fill selection screen 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 fill selection screen FM, simply by entering the name G_RW_FILL_SELECTION_SCREEN into the relevant SAP transaction such as SE37 or SE38.
Function Group: GRWT
Program Name: SAPLGRWT
Main Program: SAPLGRWT
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function G_RW_FILL_SELECTION_SCREEN 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_FILL_SELECTION_SCREEN'".
EXPORTING
RGJNR = "Report group
TABLE = "Report Writer table
* IS_T801K = "Report Writer: Libraries
OK_CODE = "
* CALLED_BY_MULTSEL = ' ' "
CHANGING
* INDXN = "
* OUT_FORM = "
* OUT_FORM1 = "Output Format (Addition)
* OUT_TYPE = "
* OUT_FILE = "
* OUT_APPD = "
* RECIPIENT_KEY = "
* XUSEDB = "
* XUSEAR = "
* XUSEAS = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
* OUT_GRIX = "
* INDXPWD = "
* OUT_GREP = "
* SUBMIT_P = "
* OUT_PRINTER = "
* C_MODE = "
* C_CURR = "
* C_RATE = "
* C_DATE = SY-DATUM "
* C_KEYF = "
* CS_RGRWE = "Report Writer: Interactive settings for output
* INDXT = "
* EDITION = "
* VALDATE = "
* VALPERIO = "
* STATUS_AU = '3' "Priority of Extract
* DATE = "
* OUT_DEVI = "
TABLES
* VARITAB = "
* REPTAB = "
* ARCH_SEL = "
* ARCHOBJS = "Objects for Archiving and Reorganization
* I_GRIX_SELP = "
* I_GRIX_RSD = "
* VARIATION = "
* VARIATION_REP = "
* T_KEYF = "
EXCEPTIONS
VARIATION_CANCELED = 1 NO_VARIATION_POSSIBLE = 2
IMPORTING Parameters details for G_RW_FILL_SELECTION_SCREEN
RGJNR - Report group
Data type: T803L-RGJNROptional: No
Call by Reference: No ( called with pass by value option)
TABLE - Report Writer table
Data type: T804A-TABOptional: No
Call by Reference: No ( called with pass by value option)
IS_T801K - Report Writer: Libraries
Data type: T801KOptional: Yes
Call by Reference: No ( called with pass by value option)
OK_CODE -
Data type: SY-UCOMMOptional: No
Call by Reference: No ( called with pass by value option)
CALLED_BY_MULTSEL -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for G_RW_FILL_SELECTION_SCREEN
INDXN -
Data type: GRIX_TXT-LTEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
OUT_FORM -
Data type: RGRWA-OUT_FORMOptional: Yes
Call by Reference: No ( called with pass by value option)
OUT_FORM1 - Output Format (Addition)
Data type: OUT_FORM1Optional: Yes
Call by Reference: No ( called with pass by value option)
OUT_TYPE -
Data type: LGRWO-PC_FORMATOptional: Yes
Call by Reference: No ( called with pass by value option)
OUT_FILE -
Data type: LGRWO-OUT_FILEOptional: Yes
Call by Reference: No ( called with pass by value option)
OUT_APPD -
Data type: RW_OUT_APPDOptional: Yes
Call by Reference: No ( called with pass by value option)
RECIPIENT_KEY -
Data type: SWOTOBJID-OBJKEYOptional: Yes
Call by Reference: No ( called with pass by value option)
XUSEDB -
Data type: DTINP-XUSEAROptional: Yes
Call by Reference: No ( called with pass by value option)
XUSEAR -
Data type: DTINP-XUSEAROptional: Yes
Call by Reference: No ( called with pass by value option)
XUSEAS - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DOptional: Yes
Call by Reference: No ( called with pass by value option)
OUT_GRIX -
Data type: GRIXOptional: Yes
Call by Reference: No ( called with pass by value option)
INDXPWD -
Data type: RGRWA-INDXPWDOptional: Yes
Call by Reference: No ( called with pass by value option)
OUT_GREP -
Data type: GREPOptional: Yes
Call by Reference: No ( called with pass by value option)
SUBMIT_P -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
OUT_PRINTER -
Data type: RGRWA-OUT_PRINTEROptional: Yes
Call by Reference: No ( called with pass by value option)
C_MODE -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
C_CURR -
Data type: RGRWA-RW_CURROptional: Yes
Call by Reference: No ( called with pass by value option)
C_RATE -
Data type: RGRWA-RW_RATEOptional: Yes
Call by Reference: No ( called with pass by value option)
C_DATE -
Data type: RGRWA-RW_DATEDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
C_KEYF -
Data type: GRWTE_SO_KEY_FIGUREOptional: Yes
Call by Reference: No ( called with pass by value option)
CS_RGRWE - Report Writer: Interactive settings for output
Data type: RGRWEOptional: Yes
Call by Reference: No ( called with pass by value option)
INDXT -
Data type: RGRWA-INDXTOptional: Yes
Call by Reference: No ( called with pass by value option)
EDITION -
Data type: RGRWA-EDITIONOptional: Yes
Call by Reference: No ( called with pass by value option)
VALDATE -
Data type: GREP_PARAM-VALDATEOptional: Yes
Call by Reference: No ( called with pass by value option)
VALPERIO -
Data type: GREP_PARAM-VALPERIOOptional: Yes
Call by Reference: No ( called with pass by value option)
STATUS_AU - Priority of Extract
Data type: GREP_PARAM-STATUS_AUDefault: '3'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATE -
Data type: RGRWA-MASTERDATEOptional: Yes
Call by Reference: No ( called with pass by value option)
OUT_DEVI -
Data type: RGRWA-OUT_DEVIOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for G_RW_FILL_SELECTION_SCREEN
VARITAB -
Data type: VARTABOptional: Yes
Call by Reference: No ( called with pass by value option)
REPTAB -
Data type: T803LOptional: Yes
Call by Reference: No ( called with pass by value option)
ARCH_SEL -
Data type: RWARCHOptional: Yes
Call by Reference: No ( called with pass by value option)
ARCHOBJS - Objects for Archiving and Reorganization
Data type: RWARCHOBJSOptional: Yes
Call by Reference: Yes
I_GRIX_SELP -
Data type: GRIX_SELPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_GRIX_RSD -
Data type: GRIX_RSDOptional: Yes
Call by Reference: No ( called with pass by value option)
VARIATION -
Data type: VARDOptional: Yes
Call by Reference: No ( called with pass by value option)
VARIATION_REP -
Data type: VARDROptional: Yes
Call by Reference: No ( called with pass by value option)
T_KEYF -
Data type: RGRW_KEYFOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
VARIATION_CANCELED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VARIATION_POSSIBLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for G_RW_FILL_SELECTION_SCREEN 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_indxn | TYPE GRIX_TXT-LTEXT, " | |||
| lv_rgjnr | TYPE T803L-RGJNR, " | |||
| lt_varitab | TYPE STANDARD TABLE OF VARTAB, " | |||
| lv_variation_canceled | TYPE VARTAB, " | |||
| lv_out_form | TYPE RGRWA-OUT_FORM, " | |||
| lv_out_form1 | TYPE OUT_FORM1, " | |||
| lv_out_type | TYPE LGRWO-PC_FORMAT, " | |||
| lv_out_file | TYPE LGRWO-OUT_FILE, " | |||
| lv_out_appd | TYPE RW_OUT_APPD, " | |||
| lv_recipient_key | TYPE SWOTOBJID-OBJKEY, " | |||
| lv_xusedb | TYPE DTINP-XUSEAR, " | |||
| lv_xusear | TYPE DTINP-XUSEAR, " | |||
| lv_xuseas | TYPE BOOLE_D, " | |||
| lv_out_grix | TYPE GRIX, " | |||
| lv_table | TYPE T804A-TAB, " | |||
| lt_reptab | TYPE STANDARD TABLE OF T803L, " | |||
| lv_indxpwd | TYPE RGRWA-INDXPWD, " | |||
| lv_no_variation_possible | TYPE RGRWA, " | |||
| lv_out_grep | TYPE GREP, " | |||
| lv_submit_p | TYPE C, " | |||
| lv_out_printer | TYPE RGRWA-OUT_PRINTER, " | |||
| lv_c_mode | TYPE C, " | |||
| lv_c_curr | TYPE RGRWA-RW_CURR, " | |||
| lv_c_rate | TYPE RGRWA-RW_RATE, " | |||
| lv_c_date | TYPE RGRWA-RW_DATE, " SY-DATUM | |||
| lv_c_keyf | TYPE GRWTE_SO_KEY_FIGURE, " | |||
| lv_cs_rgrwe | TYPE RGRWE, " | |||
| lv_indxt | TYPE RGRWA-INDXT, " | |||
| lt_arch_sel | TYPE STANDARD TABLE OF RWARCH, " | |||
| lv_is_t801k | TYPE T801K, " | |||
| lv_edition | TYPE RGRWA-EDITION, " | |||
| lv_ok_code | TYPE SY-UCOMM, " | |||
| lt_archobjs | TYPE STANDARD TABLE OF RWARCHOBJS, " | |||
| lv_valdate | TYPE GREP_PARAM-VALDATE, " | |||
| lt_i_grix_selp | TYPE STANDARD TABLE OF GRIX_SELP, " | |||
| lv_called_by_multsel | TYPE C, " SPACE | |||
| lv_valperio | TYPE GREP_PARAM-VALPERIO, " | |||
| lt_i_grix_rsd | TYPE STANDARD TABLE OF GRIX_RSD, " | |||
| lv_status_au | TYPE GREP_PARAM-STATUS_AU, " '3' | |||
| lt_variation | TYPE STANDARD TABLE OF VARD, " | |||
| lv_date | TYPE RGRWA-MASTERDATE, " | |||
| lt_variation_rep | TYPE STANDARD TABLE OF VARDR, " | |||
| lt_t_keyf | TYPE STANDARD TABLE OF RGRW_KEYF, " | |||
| lv_out_devi | TYPE RGRWA-OUT_DEVI. " |
|   CALL FUNCTION 'G_RW_FILL_SELECTION_SCREEN' " |
| EXPORTING | ||
| RGJNR | = lv_rgjnr | |
| TABLE | = lv_table | |
| IS_T801K | = lv_is_t801k | |
| OK_CODE | = lv_ok_code | |
| CALLED_BY_MULTSEL | = lv_called_by_multsel | |
| CHANGING | ||
| INDXN | = lv_indxn | |
| OUT_FORM | = lv_out_form | |
| OUT_FORM1 | = lv_out_form1 | |
| OUT_TYPE | = lv_out_type | |
| OUT_FILE | = lv_out_file | |
| OUT_APPD | = lv_out_appd | |
| RECIPIENT_KEY | = lv_recipient_key | |
| XUSEDB | = lv_xusedb | |
| XUSEAR | = lv_xusear | |
| XUSEAS | = lv_xuseas | |
| OUT_GRIX | = lv_out_grix | |
| INDXPWD | = lv_indxpwd | |
| OUT_GREP | = lv_out_grep | |
| SUBMIT_P | = lv_submit_p | |
| OUT_PRINTER | = lv_out_printer | |
| C_MODE | = lv_c_mode | |
| C_CURR | = lv_c_curr | |
| C_RATE | = lv_c_rate | |
| C_DATE | = lv_c_date | |
| C_KEYF | = lv_c_keyf | |
| CS_RGRWE | = lv_cs_rgrwe | |
| INDXT | = lv_indxt | |
| EDITION | = lv_edition | |
| VALDATE | = lv_valdate | |
| VALPERIO | = lv_valperio | |
| STATUS_AU | = lv_status_au | |
| DATE | = lv_date | |
| OUT_DEVI | = lv_out_devi | |
| TABLES | ||
| VARITAB | = lt_varitab | |
| REPTAB | = lt_reptab | |
| ARCH_SEL | = lt_arch_sel | |
| ARCHOBJS | = lt_archobjs | |
| I_GRIX_SELP | = lt_i_grix_selp | |
| I_GRIX_RSD | = lt_i_grix_rsd | |
| VARIATION | = lt_variation | |
| VARIATION_REP | = lt_variation_rep | |
| T_KEYF | = lt_t_keyf | |
| EXCEPTIONS | ||
| VARIATION_CANCELED = 1 | ||
| NO_VARIATION_POSSIBLE = 2 | ||
| . " G_RW_FILL_SELECTION_SCREEN | ||
ABAP code using 7.40 inline data declarations to call FM G_RW_FILL_SELECTION_SCREEN
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 LTEXT FROM GRIX_TXT INTO @DATA(ld_indxn). | ||||
| "SELECT single RGJNR FROM T803L INTO @DATA(ld_rgjnr). | ||||
| "SELECT single OUT_FORM FROM RGRWA INTO @DATA(ld_out_form). | ||||
| "SELECT single PC_FORMAT FROM LGRWO INTO @DATA(ld_out_type). | ||||
| "SELECT single OUT_FILE FROM LGRWO INTO @DATA(ld_out_file). | ||||
| "SELECT single OBJKEY FROM SWOTOBJID INTO @DATA(ld_recipient_key). | ||||
| "SELECT single XUSEAR FROM DTINP INTO @DATA(ld_xusedb). | ||||
| "SELECT single XUSEAR FROM DTINP INTO @DATA(ld_xusear). | ||||
| "SELECT single TAB FROM T804A INTO @DATA(ld_table). | ||||
| "SELECT single INDXPWD FROM RGRWA INTO @DATA(ld_indxpwd). | ||||
| "SELECT single OUT_PRINTER FROM RGRWA INTO @DATA(ld_out_printer). | ||||
| "SELECT single RW_CURR FROM RGRWA INTO @DATA(ld_c_curr). | ||||
| "SELECT single RW_RATE FROM RGRWA INTO @DATA(ld_c_rate). | ||||
| "SELECT single RW_DATE FROM RGRWA INTO @DATA(ld_c_date). | ||||
| DATA(ld_c_date) | = SY-DATUM. | |||
| "SELECT single INDXT FROM RGRWA INTO @DATA(ld_indxt). | ||||
| "SELECT single EDITION FROM RGRWA INTO @DATA(ld_edition). | ||||
| "SELECT single UCOMM FROM SY INTO @DATA(ld_ok_code). | ||||
| "SELECT single VALDATE FROM GREP_PARAM INTO @DATA(ld_valdate). | ||||
| DATA(ld_called_by_multsel) | = ' '. | |||
| "SELECT single VALPERIO FROM GREP_PARAM INTO @DATA(ld_valperio). | ||||
| "SELECT single STATUS_AU FROM GREP_PARAM INTO @DATA(ld_status_au). | ||||
| DATA(ld_status_au) | = '3'. | |||
| "SELECT single MASTERDATE FROM RGRWA INTO @DATA(ld_date). | ||||
| "SELECT single OUT_DEVI FROM RGRWA INTO @DATA(ld_out_devi). | ||||
Search for further information about these or an SAP related objects