SAP ALV_CACHE_WRITE Function Module for
ALV_CACHE_WRITE is a standard alv cache write 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 alv cache write FM, simply by entering the name ALV_CACHE_WRITE into the relevant SAP transaction such as SE37 or SE38.
Function Group: SKBE
Program Name: SAPLSKBE
Main Program: SAPLSKBE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ALV_CACHE_WRITE 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 'ALV_CACHE_WRITE'".
EXPORTING
I_REPORT = "ABAP Program Name
* IT_HYPERLINKS = "ALV Control: Hyperlinks
* I_BDS_OBJID = "Object ID
* I_BDS_FILENAME = "Business Document Service: File Names
* I_HANDLE = "Mgt. ID for repeated calls from the same program
* I_LOG_GROUP = "Logical Group Name
* I_USERNAME = "User name for user-specific storage
* IS_VARIANT = "Layout (External Use)
* IS_LAYOUT = "ALV Control: Layout Structure
* I_SAVE = "Character Field Length 1
* IT_SORT = "ALV control: Table of Sort Criteria
* IT_FILTER = "ALV Control: Table of Filter Conditions
TABLES
* IT_SELECTIONS = "ABAP: General Structure for PARAMETERS and SELECT-OPTIONS
* IT_OUTTAB = "Data Table
* IT_HTML = "HTML
* IT_DATA = "Data
* IT_INFO = "Information
* IT_INT_DATA = "Internal data
* IT_FIELDS = "Field Catalog
IMPORTING Parameters details for ALV_CACHE_WRITE
I_REPORT - ABAP Program Name
Data type: LTEX-REPORTOptional: No
Call by Reference: Yes
IT_HYPERLINKS - ALV Control: Hyperlinks
Data type: LVC_T_HYPEOptional: Yes
Call by Reference: Yes
I_BDS_OBJID - Object ID
Data type: BDS_OBJIDOptional: Yes
Call by Reference: Yes
I_BDS_FILENAME - Business Document Service: File Names
Data type: BDS_FILENAOptional: Yes
Call by Reference: Yes
I_HANDLE - Mgt. ID for repeated calls from the same program
Data type: LTEX-HANDLEOptional: Yes
Call by Reference: Yes
I_LOG_GROUP - Logical Group Name
Data type: LTEX-LOG_GROUPOptional: Yes
Call by Reference: Yes
I_USERNAME - User name for user-specific storage
Data type: LTEX-USERNAMEOptional: Yes
Call by Reference: Yes
IS_VARIANT - Layout (External Use)
Data type: DISVARIANTOptional: Yes
Call by Reference: Yes
IS_LAYOUT - ALV Control: Layout Structure
Data type: LVC_S_LAYOOptional: Yes
Call by Reference: Yes
I_SAVE - Character Field Length 1
Data type: CHAR01Optional: Yes
Call by Reference: Yes
IT_SORT - ALV control: Table of Sort Criteria
Data type: LVC_T_SORTOptional: Yes
Call by Reference: Yes
IT_FILTER - ALV Control: Table of Filter Conditions
Data type: LVC_T_FILTOptional: Yes
Call by Reference: Yes
TABLES Parameters details for ALV_CACHE_WRITE
IT_SELECTIONS - ABAP: General Structure for PARAMETERS and SELECT-OPTIONS
Data type: RSPARAMSOptional: Yes
Call by Reference: Yes
IT_OUTTAB - Data Table
Data type: STANDARD TABLEOptional: Yes
Call by Reference: Yes
IT_HTML - HTML
Data type: W3HTMLOptional: Yes
Call by Reference: Yes
IT_DATA - Data
Data type: LVC_S_DATAOptional: Yes
Call by Reference: Yes
IT_INFO - Information
Data type: LVC_S_INFOOptional: Yes
Call by Reference: Yes
IT_INT_DATA - Internal data
Data type: LVC_S_TABLOptional: Yes
Call by Reference: Yes
IT_FIELDS - Field Catalog
Data type: LVC_S_FIELOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for ALV_CACHE_WRITE 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_report | TYPE LTEX-REPORT, " | |||
| lt_it_selections | TYPE STANDARD TABLE OF RSPARAMS, " | |||
| lv_it_hyperlinks | TYPE LVC_T_HYPE, " | |||
| lv_i_bds_objid | TYPE BDS_OBJID, " | |||
| lv_i_bds_filename | TYPE BDS_FILENA, " | |||
| lv_i_handle | TYPE LTEX-HANDLE, " | |||
| lt_it_outtab | TYPE STANDARD TABLE OF STANDARD TABLE, " | |||
| lt_it_html | TYPE STANDARD TABLE OF W3HTML, " | |||
| lv_i_log_group | TYPE LTEX-LOG_GROUP, " | |||
| lt_it_data | TYPE STANDARD TABLE OF LVC_S_DATA, " | |||
| lv_i_username | TYPE LTEX-USERNAME, " | |||
| lt_it_info | TYPE STANDARD TABLE OF LVC_S_INFO, " | |||
| lv_is_variant | TYPE DISVARIANT, " | |||
| lv_is_layout | TYPE LVC_S_LAYO, " | |||
| lt_it_int_data | TYPE STANDARD TABLE OF LVC_S_TABL, " | |||
| lv_i_save | TYPE CHAR01, " | |||
| lt_it_fields | TYPE STANDARD TABLE OF LVC_S_FIEL, " | |||
| lv_it_sort | TYPE LVC_T_SORT, " | |||
| lv_it_filter | TYPE LVC_T_FILT. " |
|   CALL FUNCTION 'ALV_CACHE_WRITE' " |
| EXPORTING | ||
| I_REPORT | = lv_i_report | |
| IT_HYPERLINKS | = lv_it_hyperlinks | |
| I_BDS_OBJID | = lv_i_bds_objid | |
| I_BDS_FILENAME | = lv_i_bds_filename | |
| I_HANDLE | = lv_i_handle | |
| I_LOG_GROUP | = lv_i_log_group | |
| I_USERNAME | = lv_i_username | |
| IS_VARIANT | = lv_is_variant | |
| IS_LAYOUT | = lv_is_layout | |
| I_SAVE | = lv_i_save | |
| IT_SORT | = lv_it_sort | |
| IT_FILTER | = lv_it_filter | |
| TABLES | ||
| IT_SELECTIONS | = lt_it_selections | |
| IT_OUTTAB | = lt_it_outtab | |
| IT_HTML | = lt_it_html | |
| IT_DATA | = lt_it_data | |
| IT_INFO | = lt_it_info | |
| IT_INT_DATA | = lt_it_int_data | |
| IT_FIELDS | = lt_it_fields | |
| . " ALV_CACHE_WRITE | ||
ABAP code using 7.40 inline data declarations to call FM ALV_CACHE_WRITE
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 REPORT FROM LTEX INTO @DATA(ld_i_report). | ||||
| "SELECT single HANDLE FROM LTEX INTO @DATA(ld_i_handle). | ||||
| "SELECT single LOG_GROUP FROM LTEX INTO @DATA(ld_i_log_group). | ||||
| "SELECT single USERNAME FROM LTEX INTO @DATA(ld_i_username). | ||||
Search for further information about these or an SAP related objects