SAP ARCHIVE_DELETE_INDEX Function Module for
ARCHIVE_DELETE_INDEX is a standard archive delete index 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 archive delete index FM, simply by entering the name ARCHIVE_DELETE_INDEX into the relevant SAP transaction such as SE37 or SE38.
Function Group: GARX
Program Name: SAPLGARX
Main Program: SAPLGARX
Appliation area: G
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ARCHIVE_DELETE_INDEX 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 'ARCHIVE_DELETE_INDEX'".
EXPORTING
I_ARCHIVEKEY_FIELDNAME = "
I_INDEX_TABLE_NAME = "
I_PACKAGE_SIZE = "
IMPORTING
E_DELETED_LINES = "
TABLES
* S_FILES = "
* T_ADMI_FILES = "
EXCEPTIONS
EX_INVALID_TABLE = 1 EX_FIELD_INFO_NOT_FOUND = 2 EX_MISSING_FILES = 3 EX_INVALID_KEYNAME = 4
IMPORTING Parameters details for ARCHIVE_DELETE_INDEX
I_ARCHIVEKEY_FIELDNAME -
Data type: DD03L-FIELDNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_INDEX_TABLE_NAME -
Data type: DD02L-TABNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_PACKAGE_SIZE -
Data type: SY-DBCNTOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ARCHIVE_DELETE_INDEX
E_DELETED_LINES -
Data type: SY-DBCNTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ARCHIVE_DELETE_INDEX
S_FILES -
Data type: RNG_ARCHIVOptional: Yes
Call by Reference: No ( called with pass by value option)
T_ADMI_FILES -
Data type: ADMI_FILESOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
EX_INVALID_TABLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EX_FIELD_INFO_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EX_MISSING_FILES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EX_INVALID_KEYNAME -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ARCHIVE_DELETE_INDEX 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_s_files | TYPE STANDARD TABLE OF RNG_ARCHIV, " | |||
| lv_e_deleted_lines | TYPE SY-DBCNT, " | |||
| lv_ex_invalid_table | TYPE SY, " | |||
| lv_i_archivekey_fieldname | TYPE DD03L-FIELDNAME, " | |||
| lt_t_admi_files | TYPE STANDARD TABLE OF ADMI_FILES, " | |||
| lv_i_index_table_name | TYPE DD02L-TABNAME, " | |||
| lv_ex_field_info_not_found | TYPE DD02L, " | |||
| lv_i_package_size | TYPE SY-DBCNT, " | |||
| lv_ex_missing_files | TYPE SY, " | |||
| lv_ex_invalid_keyname | TYPE SY. " |
|   CALL FUNCTION 'ARCHIVE_DELETE_INDEX' " |
| EXPORTING | ||
| I_ARCHIVEKEY_FIELDNAME | = lv_i_archivekey_fieldname | |
| I_INDEX_TABLE_NAME | = lv_i_index_table_name | |
| I_PACKAGE_SIZE | = lv_i_package_size | |
| IMPORTING | ||
| E_DELETED_LINES | = lv_e_deleted_lines | |
| TABLES | ||
| S_FILES | = lt_s_files | |
| T_ADMI_FILES | = lt_t_admi_files | |
| EXCEPTIONS | ||
| EX_INVALID_TABLE = 1 | ||
| EX_FIELD_INFO_NOT_FOUND = 2 | ||
| EX_MISSING_FILES = 3 | ||
| EX_INVALID_KEYNAME = 4 | ||
| . " ARCHIVE_DELETE_INDEX | ||
ABAP code using 7.40 inline data declarations to call FM ARCHIVE_DELETE_INDEX
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 DBCNT FROM SY INTO @DATA(ld_e_deleted_lines). | ||||
| "SELECT single FIELDNAME FROM DD03L INTO @DATA(ld_i_archivekey_fieldname). | ||||
| "SELECT single TABNAME FROM DD02L INTO @DATA(ld_i_index_table_name). | ||||
| "SELECT single DBCNT FROM SY INTO @DATA(ld_i_package_size). | ||||
Search for further information about these or an SAP related objects