SAP SCROLL_GRAPHIC Function Module for Scrolling in the graphic
SCROLL_GRAPHIC is a standard scroll graphic SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Scrolling in the graphic 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 scroll graphic FM, simply by entering the name SCROLL_GRAPHIC into the relevant SAP transaction such as SE37 or SE38.
Function Group: KYGR
Program Name: SAPLKYGR
Main Program:
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SCROLL_GRAPHIC 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 'SCROLL_GRAPHIC'"Scrolling in the graphic.
EXPORTING
I_FUNCTION = "Function in the graphic
I_GRAPHIC_TYPE = "Graphic type (2D, 3D)
IMPORTING
E_BEGIN_INDEX = "Index for dimension table
E_BEGIN_INDEX_DIM2 = "Index for dimension table with 2 dim.
CHANGING
* C_2D = "'X' = Function keys offered
* C_3D = "Data table 2D graphic
EXCEPTIONS
NO_SCROLL = 1
IMPORTING Parameters details for SCROLL_GRAPHIC
I_FUNCTION - Function in the graphic
Data type: RKD1_GRAPHIC_FUNCTIONOptional: No
Call by Reference: No ( called with pass by value option)
I_GRAPHIC_TYPE - Graphic type (2D, 3D)
Data type: RKD1_GRAPHIC_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SCROLL_GRAPHIC
E_BEGIN_INDEX - Index for dimension table
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
E_BEGIN_INDEX_DIM2 - Index for dimension table with 2 dim.
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for SCROLL_GRAPHIC
C_2D - 'X' = Function keys offered
Data type: RKD1_T_2DOptional: Yes
Call by Reference: No ( called with pass by value option)
C_3D - Data table 2D graphic
Data type: RKD1_SC_3DOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_SCROLL - No scrolling possible
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SCROLL_GRAPHIC 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_2d | TYPE RKD1_T_2D, " | |||
| lv_no_scroll | TYPE RKD1_T_2D, " | |||
| lv_i_function | TYPE RKD1_GRAPHIC_FUNCTION, " | |||
| lv_e_begin_index | TYPE SY-TABIX, " | |||
| lv_c_3d | TYPE RKD1_SC_3D, " | |||
| lv_i_graphic_type | TYPE RKD1_GRAPHIC_TYPE, " | |||
| lv_e_begin_index_dim2 | TYPE SY-TABIX. " |
|   CALL FUNCTION 'SCROLL_GRAPHIC' "Scrolling in the graphic |
| EXPORTING | ||
| I_FUNCTION | = lv_i_function | |
| I_GRAPHIC_TYPE | = lv_i_graphic_type | |
| IMPORTING | ||
| E_BEGIN_INDEX | = lv_e_begin_index | |
| E_BEGIN_INDEX_DIM2 | = lv_e_begin_index_dim2 | |
| CHANGING | ||
| C_2D | = lv_c_2d | |
| C_3D | = lv_c_3d | |
| EXCEPTIONS | ||
| NO_SCROLL = 1 | ||
| . " SCROLL_GRAPHIC | ||
ABAP code using 7.40 inline data declarations to call FM SCROLL_GRAPHIC
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 TABIX FROM SY INTO @DATA(ld_e_begin_index). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_e_begin_index_dim2). | ||||
Search for further information about these or an SAP related objects