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

Function ARCHIVE_VALUE_REQUEST 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_VALUE_REQUEST'".
EXPORTING
* DIALOG_TYPE = 'READ' "
OBJECT = "Archiving session object
* SHOW_HIDDEN_RUN = ' ' "Sessions which were 'hidden' in the management
IMPORTING
SELECTED_RUN = "selected archiving session
EXCEPTIONS
NO_RUNS_AVAILABLE = 1 NO_RUN_SELECTED = 2 OBJECT_NOT_FOUND = 3 UNKNOWN_DIALOG_TYPE = 4
IMPORTING Parameters details for ARCHIVE_VALUE_REQUEST
DIALOG_TYPE -
Data type:Default: 'READ'
Optional: Yes
Call by Reference: No ( called with pass by value option)
OBJECT - Archiving session object
Data type: ARCH_OBJ-OBJECTOptional: No
Call by Reference: No ( called with pass by value option)
SHOW_HIDDEN_RUN - Sessions which were 'hidden' in the management
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ARCHIVE_VALUE_REQUEST
SELECTED_RUN - selected archiving session
Data type: ADMI_RUN-DOCUMENTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_RUNS_AVAILABLE - no archiving sessions exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_RUN_SELECTED - the user has not selected any sessions
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OBJECT_NOT_FOUND - Object is not known
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNKNOWN_DIALOG_TYPE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ARCHIVE_VALUE_REQUEST 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_dialog_type | TYPE STRING, " 'READ' | |||
| lv_selected_run | TYPE ADMI_RUN-DOCUMENT, " | |||
| lv_no_runs_available | TYPE ADMI_RUN, " | |||
| lv_object | TYPE ARCH_OBJ-OBJECT, " | |||
| lv_no_run_selected | TYPE ARCH_OBJ, " | |||
| lv_show_hidden_run | TYPE ARCH_OBJ, " SPACE | |||
| lv_object_not_found | TYPE ARCH_OBJ, " | |||
| lv_unknown_dialog_type | TYPE ARCH_OBJ. " |
|   CALL FUNCTION 'ARCHIVE_VALUE_REQUEST' " |
| EXPORTING | ||
| DIALOG_TYPE | = lv_dialog_type | |
| OBJECT | = lv_object | |
| SHOW_HIDDEN_RUN | = lv_show_hidden_run | |
| IMPORTING | ||
| SELECTED_RUN | = lv_selected_run | |
| EXCEPTIONS | ||
| NO_RUNS_AVAILABLE = 1 | ||
| NO_RUN_SELECTED = 2 | ||
| OBJECT_NOT_FOUND = 3 | ||
| UNKNOWN_DIALOG_TYPE = 4 | ||
| . " ARCHIVE_VALUE_REQUEST | ||
ABAP code using 7.40 inline data declarations to call FM ARCHIVE_VALUE_REQUEST
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_dialog_type) | = 'READ'. | |||
| "SELECT single DOCUMENT FROM ADMI_RUN INTO @DATA(ld_selected_run). | ||||
| "SELECT single OBJECT FROM ARCH_OBJ INTO @DATA(ld_object). | ||||
| DATA(ld_show_hidden_run) | = ' '. | |||
Search for further information about these or an SAP related objects