SAP SQLT_TABSUM_PREP Function Module for
SQLT_TABSUM_PREP is a standard sqlt tabsum prep 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 sqlt tabsum prep FM, simply by entering the name SQLT_TABSUM_PREP into the relevant SAP transaction such as SE37 or SE38.
Function Group: SSQ0
Program Name: SAPLSSQ0
Main Program: SAPLSSQ0
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SQLT_TABSUM_PREP 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 'SQLT_TABSUM_PREP'".
EXPORTING
* FIELDCAT_GEN = ' ' "
SORTFIELD = "
* PROG_NAME = SY-REPID "
STRUCTURE_NAME = "
* TABLE_NAME = ' ' "Name of internal table
MEM_PF_STATUS = "
VARIANT_NAME = "Variant Name
VARIANT_TEXT = "Variant Description
IMPORTING
I_SAVE = "
VARIANT = "Variant name
LAYOUT = "
FILTER = "
SORT = "List sort
EVENTS = "
IT_EVENT_EXIT = "
LT_TOP_OF_PAGE = "
CHANGING
FIELDCAT = "
EXCEPTIONS
ALV_HLP_ERROR = 1
IMPORTING Parameters details for SQLT_TABSUM_PREP
FIELDCAT_GEN -
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SORTFIELD -
Data type: DD03L-FIELDNAMEOptional: No
Call by Reference: No ( called with pass by value option)
PROG_NAME -
Data type: SY-REPIDDefault: SY-REPID
Optional: Yes
Call by Reference: No ( called with pass by value option)
STRUCTURE_NAME -
Data type: DD02L-TABNAMEOptional: No
Call by Reference: No ( called with pass by value option)
TABLE_NAME - Name of internal table
Data type: DD02L-TABNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MEM_PF_STATUS -
Data type: CHAR20Optional: No
Call by Reference: No ( called with pass by value option)
VARIANT_NAME - Variant Name
Data type: DISVARIANT-VARIANTOptional: No
Call by Reference: No ( called with pass by value option)
VARIANT_TEXT - Variant Description
Data type: DISVARIANT-TEXTOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SQLT_TABSUM_PREP
I_SAVE -
Data type: CHAR1Optional: No
Call by Reference: Yes
VARIANT - Variant name
Data type: DISVARIANTOptional: No
Call by Reference: Yes
LAYOUT -
Data type: SLIS_LAYOUT_ALVOptional: No
Call by Reference: Yes
FILTER -
Data type: SLIS_T_FILTER_ALVOptional: No
Call by Reference: Yes
SORT - List sort
Data type: SLIS_T_SORTINFO_ALVOptional: No
Call by Reference: Yes
EVENTS -
Data type: SLIS_T_EVENTOptional: No
Call by Reference: Yes
IT_EVENT_EXIT -
Data type: SLIS_T_EVENT_EXITOptional: No
Call by Reference: Yes
LT_TOP_OF_PAGE -
Data type: SLIS_T_LISTHEADEROptional: No
Call by Reference: Yes
CHANGING Parameters details for SQLT_TABSUM_PREP
FIELDCAT -
Data type: SLIS_T_FIELDCAT_ALVOptional: No
Call by Reference: Yes
EXCEPTIONS details
ALV_HLP_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SQLT_TABSUM_PREP 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_i_save | TYPE CHAR1, " | |||
| lv_fieldcat | TYPE SLIS_T_FIELDCAT_ALV, " | |||
| lv_fieldcat_gen | TYPE CHAR1, " SPACE | |||
| lv_alv_hlp_error | TYPE CHAR1, " | |||
| lv_variant | TYPE DISVARIANT, " | |||
| lv_sortfield | TYPE DD03L-FIELDNAME, " | |||
| lv_layout | TYPE SLIS_LAYOUT_ALV, " | |||
| lv_prog_name | TYPE SY-REPID, " SY-REPID | |||
| lv_filter | TYPE SLIS_T_FILTER_ALV, " | |||
| lv_structure_name | TYPE DD02L-TABNAME, " | |||
| lv_sort | TYPE SLIS_T_SORTINFO_ALV, " | |||
| lv_table_name | TYPE DD02L-TABNAME, " SPACE | |||
| lv_events | TYPE SLIS_T_EVENT, " | |||
| lv_mem_pf_status | TYPE CHAR20, " | |||
| lv_variant_name | TYPE DISVARIANT-VARIANT, " | |||
| lv_it_event_exit | TYPE SLIS_T_EVENT_EXIT, " | |||
| lv_variant_text | TYPE DISVARIANT-TEXT, " | |||
| lv_lt_top_of_page | TYPE SLIS_T_LISTHEADER. " |
|   CALL FUNCTION 'SQLT_TABSUM_PREP' " |
| EXPORTING | ||
| FIELDCAT_GEN | = lv_fieldcat_gen | |
| SORTFIELD | = lv_sortfield | |
| PROG_NAME | = lv_prog_name | |
| STRUCTURE_NAME | = lv_structure_name | |
| TABLE_NAME | = lv_table_name | |
| MEM_PF_STATUS | = lv_mem_pf_status | |
| VARIANT_NAME | = lv_variant_name | |
| VARIANT_TEXT | = lv_variant_text | |
| IMPORTING | ||
| I_SAVE | = lv_i_save | |
| VARIANT | = lv_variant | |
| LAYOUT | = lv_layout | |
| FILTER | = lv_filter | |
| SORT | = lv_sort | |
| EVENTS | = lv_events | |
| IT_EVENT_EXIT | = lv_it_event_exit | |
| LT_TOP_OF_PAGE | = lv_lt_top_of_page | |
| CHANGING | ||
| FIELDCAT | = lv_fieldcat | |
| EXCEPTIONS | ||
| ALV_HLP_ERROR = 1 | ||
| . " SQLT_TABSUM_PREP | ||
ABAP code using 7.40 inline data declarations to call FM SQLT_TABSUM_PREP
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_fieldcat_gen) | = ' '. | |||
| "SELECT single FIELDNAME FROM DD03L INTO @DATA(ld_sortfield). | ||||
| "SELECT single REPID FROM SY INTO @DATA(ld_prog_name). | ||||
| DATA(ld_prog_name) | = SY-REPID. | |||
| "SELECT single TABNAME FROM DD02L INTO @DATA(ld_structure_name). | ||||
| "SELECT single TABNAME FROM DD02L INTO @DATA(ld_table_name). | ||||
| DATA(ld_table_name) | = ' '. | |||
| "SELECT single VARIANT FROM DISVARIANT INTO @DATA(ld_variant_name). | ||||
| "SELECT single TEXT FROM DISVARIANT INTO @DATA(ld_variant_text). | ||||
Search for further information about these or an SAP related objects