SAP G_REPORT_LAYOUT_PARAMETERS Function Module for Maintain Report Layout
G_REPORT_LAYOUT_PARAMETERS is a standard g report layout parameters SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Maintain Report Layout 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 report layout parameters FM, simply by entering the name G_REPORT_LAYOUT_PARAMETERS into the relevant SAP transaction such as SE37 or SE38.
Function Group: GRWF
Program Name: SAPLGRWF
Main Program:
Appliation area: G
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function G_REPORT_LAYOUT_PARAMETERS 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_REPORT_LAYOUT_PARAMETERS'"Maintain Report Layout.
EXPORTING
I_CALL_STATE = "1= report definition /3= report dialog
* I_FLAG_USE_FIX_PARMS = ' ' "
* I_DISPLAY_ONLY = "
* I_LEVEL = 99 "
I_MAINCODE = "Transaction code
* I_PARAMETER_SCREEN = "Screen which is to be displayed
I_T800 = "Structure T800
I_T801W = "Structure T801W
I_T801X = "Structure T801X
* I_FIX_PARMS = "Current values from report
* I_SHEET_SEQNR = "
IMPORTING
E_CHANGED = "CHANGED indicator (output)
E_SUM_LEVEL_CHANGED = "
E_T800 = "
OK_CODE = "Function code
CHANGING
* C_T801G = "
TABLES
* COLUMN_TITLES = "
IMPORTING Parameters details for G_REPORT_LAYOUT_PARAMETERS
I_CALL_STATE - 1= report definition /3= report dialog
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_FLAG_USE_FIX_PARMS -
Data type: SY-DATARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DISPLAY_ONLY -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
I_LEVEL -
Data type:Default: 99
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MAINCODE - Transaction code
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_PARAMETER_SCREEN - Screen which is to be displayed
Data type: SY-DYNNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_T800 - Structure T800
Data type: T800Optional: No
Call by Reference: No ( called with pass by value option)
I_T801W - Structure T801W
Data type: T801WOptional: No
Call by Reference: No ( called with pass by value option)
I_T801X - Structure T801X
Data type: T801XOptional: No
Call by Reference: No ( called with pass by value option)
I_FIX_PARMS - Current values from report
Data type: RGRWF_FIXOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SHEET_SEQNR -
Data type: T801G-SEQNROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for G_REPORT_LAYOUT_PARAMETERS
E_CHANGED - CHANGED indicator (output)
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E_SUM_LEVEL_CHANGED -
Data type: FLAGOptional: No
Call by Reference: No ( called with pass by value option)
E_T800 -
Data type: T800Optional: No
Call by Reference: No ( called with pass by value option)
OK_CODE - Function code
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for G_REPORT_LAYOUT_PARAMETERS
C_T801G -
Data type: IS801GOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for G_REPORT_LAYOUT_PARAMETERS
COLUMN_TITLES -
Data type:Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for G_REPORT_LAYOUT_PARAMETERS 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_c_t801g | TYPE IS801G, " | |||
| lv_e_changed | TYPE IS801G, " | |||
| lv_i_call_state | TYPE IS801G, " | |||
| lt_column_titles | TYPE STANDARD TABLE OF IS801G, " | |||
| lv_i_flag_use_fix_parms | TYPE SY-DATAR, " SPACE | |||
| lv_i_display_only | TYPE C, " | |||
| lv_i_level | TYPE C, " 99 | |||
| lv_e_sum_level_changed | TYPE FLAG, " | |||
| lv_e_t800 | TYPE T800, " | |||
| lv_i_maincode | TYPE T800, " | |||
| lv_ok_code | TYPE T800, " | |||
| lv_i_parameter_screen | TYPE SY-DYNNR, " | |||
| lv_i_t800 | TYPE T800, " | |||
| lv_i_t801w | TYPE T801W, " | |||
| lv_i_t801x | TYPE T801X, " | |||
| lv_i_fix_parms | TYPE RGRWF_FIX, " | |||
| lv_i_sheet_seqnr | TYPE T801G-SEQNR. " |
|   CALL FUNCTION 'G_REPORT_LAYOUT_PARAMETERS' "Maintain Report Layout |
| EXPORTING | ||
| I_CALL_STATE | = lv_i_call_state | |
| I_FLAG_USE_FIX_PARMS | = lv_i_flag_use_fix_parms | |
| I_DISPLAY_ONLY | = lv_i_display_only | |
| I_LEVEL | = lv_i_level | |
| I_MAINCODE | = lv_i_maincode | |
| I_PARAMETER_SCREEN | = lv_i_parameter_screen | |
| I_T800 | = lv_i_t800 | |
| I_T801W | = lv_i_t801w | |
| I_T801X | = lv_i_t801x | |
| I_FIX_PARMS | = lv_i_fix_parms | |
| I_SHEET_SEQNR | = lv_i_sheet_seqnr | |
| IMPORTING | ||
| E_CHANGED | = lv_e_changed | |
| E_SUM_LEVEL_CHANGED | = lv_e_sum_level_changed | |
| E_T800 | = lv_e_t800 | |
| OK_CODE | = lv_ok_code | |
| CHANGING | ||
| C_T801G | = lv_c_t801g | |
| TABLES | ||
| COLUMN_TITLES | = lt_column_titles | |
| . " G_REPORT_LAYOUT_PARAMETERS | ||
ABAP code using 7.40 inline data declarations to call FM G_REPORT_LAYOUT_PARAMETERS
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 DATAR FROM SY INTO @DATA(ld_i_flag_use_fix_parms). | ||||
| DATA(ld_i_flag_use_fix_parms) | = ' '. | |||
| DATA(ld_i_level) | = 99. | |||
| "SELECT single DYNNR FROM SY INTO @DATA(ld_i_parameter_screen). | ||||
| "SELECT single SEQNR FROM T801G INTO @DATA(ld_i_sheet_seqnr). | ||||
Search for further information about these or an SAP related objects