SAP REUSE_ALV_BLOCK_LIST_APPEND Function Module for Append Simple List in Block Mode
REUSE_ALV_BLOCK_LIST_APPEND is a standard reuse alv block list append SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Append Simple List in Block Mode 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 block list append FM, simply by entering the name REUSE_ALV_BLOCK_LIST_APPEND into the relevant SAP transaction such as SE37 or SE38.
Function Group: SALV
Program Name: SAPLSALV
Main Program: SAPLSALV
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
![](https://www.se80.co.uk/training-education/wp-content/uploads/2019/07/normal-function-module.png)
Function REUSE_ALV_BLOCK_LIST_APPEND 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_BLOCK_LIST_APPEND'"Append Simple List in Block Mode.
EXPORTING
IS_LAYOUT = "List Layout Specifications
IT_FIELDCAT = "Field Catalog with Field Descriptions
I_TABNAME = "Name of Internal Output Table
IT_EVENTS = "Table of events to perform
* IT_SORT = "
* I_TEXT = ' ' "Text of This List for Overview Screen
TABLES
T_OUTTAB = "Table with data to be displayed
EXCEPTIONS
PROGRAM_ERROR = 1 MAXIMUM_OF_APPENDS_REACHED = 2
IMPORTING Parameters details for REUSE_ALV_BLOCK_LIST_APPEND
IS_LAYOUT - List Layout Specifications
Data type: SLIS_LAYOUT_ALVOptional: No
Call by Reference: No ( called with pass by value option)
IT_FIELDCAT - Field Catalog with Field Descriptions
Data type: SLIS_T_FIELDCAT_ALVOptional: No
Call by Reference: No ( called with pass by value option)
I_TABNAME - Name of Internal Output Table
Data type: SLIS_TABNAMEOptional: No
Call by Reference: No ( called with pass by value option)
IT_EVENTS - Table of events to perform
Data type: SLIS_T_EVENTOptional: No
Call by Reference: No ( called with pass by value option)
IT_SORT -
Data type: SLIS_T_SORTINFO_ALVOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TEXT - Text of This List for Overview Screen
Data type: SLIS_TEXT40Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for REUSE_ALV_BLOCK_LIST_APPEND
T_OUTTAB - Table with data to be displayed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PROGRAM_ERROR - Program Errors
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MAXIMUM_OF_APPENDS_REACHED - Maximum Number of Lists Reached
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for REUSE_ALV_BLOCK_LIST_APPEND 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: | ||||
lt_t_outtab | TYPE STANDARD TABLE OF STRING, " | |||
lv_is_layout | TYPE SLIS_LAYOUT_ALV, " | |||
lv_program_error | TYPE SLIS_LAYOUT_ALV, " | |||
lv_it_fieldcat | TYPE SLIS_T_FIELDCAT_ALV, " | |||
lv_maximum_of_appends_reached | TYPE SLIS_T_FIELDCAT_ALV, " | |||
lv_i_tabname | TYPE SLIS_TABNAME, " | |||
lv_it_events | TYPE SLIS_T_EVENT, " | |||
lv_it_sort | TYPE SLIS_T_SORTINFO_ALV, " | |||
lv_i_text | TYPE SLIS_TEXT40. " SPACE |
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND' "Append Simple List in Block Mode |
EXPORTING | ||
IS_LAYOUT | = lv_is_layout | |
IT_FIELDCAT | = lv_it_fieldcat | |
I_TABNAME | = lv_i_tabname | |
IT_EVENTS | = lv_it_events | |
IT_SORT | = lv_it_sort | |
I_TEXT | = lv_i_text | |
TABLES | ||
T_OUTTAB | = lt_t_outtab | |
EXCEPTIONS | ||
PROGRAM_ERROR = 1 | ||
MAXIMUM_OF_APPENDS_REACHED = 2 | ||
. " REUSE_ALV_BLOCK_LIST_APPEND |
ABAP code using 7.40 inline data declarations to call FM REUSE_ALV_BLOCK_LIST_APPEND
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.DATA(ld_i_text) | = ' '. | |||
Search for further information about these or an SAP related objects