SAP REUSE_ALV_GRID_LAYOUT_INFO_SET Function Module for Set current ALV list information









REUSE_ALV_GRID_LAYOUT_INFO_SET is a standard reuse alv grid layout info set SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Set current ALV list information 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 reuse alv grid layout info set FM, simply by entering the name REUSE_ALV_GRID_LAYOUT_INFO_SET into the relevant SAP transaction such as SE37 or SE38.

Function Group: SLVC_FULLSCREEN
Program Name: SAPLSLVC_FULLSCREEN
Main Program: SAPLSLVC_FULLSCREEN
Appliation area:
Release date: 16-Jul-1999
Mode(Normal, Remote etc): Normal Function Module
Update:



Function REUSE_ALV_GRID_LAYOUT_INFO_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 'REUSE_ALV_GRID_LAYOUT_INFO_SET'"Set current ALV list information
EXPORTING
* IS_LAYOUT = "List layout specifications
* IT_FIELDCAT = "Field catalog with field descriptions
* IT_SORT = "List output sort criteria
* IT_FILTER = "List output filter criteria
* IS_GRID_SCROLL = "Current list scroll status
* IS_PRINT = "
.



IMPORTING Parameters details for REUSE_ALV_GRID_LAYOUT_INFO_SET

IS_LAYOUT - List layout specifications

Data type: SLIS_LAYOUT_ALV
Optional: Yes
Call by Reference: Yes

IT_FIELDCAT - Field catalog with field descriptions

Data type: SLIS_T_FIELDCAT_ALV
Optional: Yes
Call by Reference: Yes

IT_SORT - List output sort criteria

Data type: SLIS_T_SORTINFO_ALV
Optional: Yes
Call by Reference: Yes

IT_FILTER - List output filter criteria

Data type: SLIS_T_FILTER_ALV
Optional: Yes
Call by Reference: Yes

IS_GRID_SCROLL - Current list scroll status

Data type: LVC_S_SCRL
Optional: Yes
Call by Reference: Yes

IS_PRINT -

Data type: SLIS_PRINT_ALV
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for REUSE_ALV_GRID_LAYOUT_INFO_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_is_layout  TYPE SLIS_LAYOUT_ALV, "   
lv_it_fieldcat  TYPE SLIS_T_FIELDCAT_ALV, "   
lv_it_sort  TYPE SLIS_T_SORTINFO_ALV, "   
lv_it_filter  TYPE SLIS_T_FILTER_ALV, "   
lv_is_grid_scroll  TYPE LVC_S_SCRL, "   
lv_is_print  TYPE SLIS_PRINT_ALV. "   

  CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_SET'  "Set current ALV list information
    EXPORTING
         IS_LAYOUT = lv_is_layout
         IT_FIELDCAT = lv_it_fieldcat
         IT_SORT = lv_it_sort
         IT_FILTER = lv_it_filter
         IS_GRID_SCROLL = lv_is_grid_scroll
         IS_PRINT = lv_is_print
. " REUSE_ALV_GRID_LAYOUT_INFO_SET




ABAP code using 7.40 inline data declarations to call FM REUSE_ALV_GRID_LAYOUT_INFO_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.

 
 
 
 
 
 


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!