SAP ARCHIVE_ADMX_SELECT_SESSIONS Function Module for
ARCHIVE_ADMX_SELECT_SESSIONS is a standard archive admx select sessions 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 admx select sessions FM, simply by entering the name ARCHIVE_ADMX_SELECT_SESSIONS 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): Remote-Enabled
Update:

Function ARCHIVE_ADMX_SELECT_SESSIONS 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_ADMX_SELECT_SESSIONS'".
EXPORTING
* WRITING = "Write Phase Running
* REPLACED = ' ' "Single-Character Flag
* TO_BE_ARCHIVED = ' ' "Single-Character Flag
* INVALID = ' ' "Single-Character Flag
* INTERRUPTED_INCOMPLETE = ' ' "Single-Character Flag
* INTERRUPTED_COMPLETE = ' ' "Single-Character Flag
* RUNS_WITHOUT_RESOURCES = 'X' "Single-Character Flag
* INDICATE_PROGRESS = ' ' "Single-Character Flag
* CLIENT_DEPENDENCE = 'X' "Single-Character Flag
* INCORRECT = ' ' "Single-Character Flag
* INCOMPLETE = ' ' "Single-Character Flag
* COMPLETE = ' ' "Single-Character Flag
* BEING_RELOADED = ' ' "Single-Character Flag
* CREATED_BY_RELOAD = ' ' "Single-Character Flag
TABLES
* OBJECT = "
* CLIENT = "Ranking table for client field
* DATE = "Ranking table for date field
* DOCUMENT = "Ranking table for archiving sessions
* USER = "
* SELECTED_RUNS = "XML Archiving: Archiving Sessions
* SELECTED_FILES = "XML Archiving: Resources
* XML_SELECTED_RUNS = "Archiving Runs: Header Information, Jobs, and Status
* XML_SELECTED_FILES = "Archive Files: Header Information, Jobs, and Status
EXCEPTIONS
OBJECT_NOT_FOUND = 1
IMPORTING Parameters details for ARCHIVE_ADMX_SELECT_SESSIONS
WRITING - Write Phase Running
Data type: ADMI_RUN-WRITINGOptional: Yes
Call by Reference: No ( called with pass by value option)
REPLACED - Single-Character Flag
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TO_BE_ARCHIVED - Single-Character Flag
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
INVALID - Single-Character Flag
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
INTERRUPTED_INCOMPLETE - Single-Character Flag
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
INTERRUPTED_COMPLETE - Single-Character Flag
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RUNS_WITHOUT_RESOURCES - Single-Character Flag
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
INDICATE_PROGRESS - Single-Character Flag
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CLIENT_DEPENDENCE - Single-Character Flag
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
INCORRECT - Single-Character Flag
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
INCOMPLETE - Single-Character Flag
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
COMPLETE - Single-Character Flag
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
BEING_RELOADED - Single-Character Flag
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CREATED_BY_RELOAD - Single-Character Flag
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ARCHIVE_ADMX_SELECT_SESSIONS
OBJECT -
Data type: RNG_OBJECTOptional: Yes
Call by Reference: Yes
CLIENT - Ranking table for client field
Data type: RNG_CLIENTOptional: Yes
Call by Reference: Yes
DATE - Ranking table for date field
Data type: RNG_DATEOptional: Yes
Call by Reference: Yes
DOCUMENT - Ranking table for archiving sessions
Data type: RNG_RUNOptional: Yes
Call by Reference: Yes
USER -
Data type: RNG_USEROptional: Yes
Call by Reference: Yes
SELECTED_RUNS - XML Archiving: Archiving Sessions
Data type: ADMI_XRUNOptional: Yes
Call by Reference: Yes
SELECTED_FILES - XML Archiving: Resources
Data type: ADMI_XDOCSOptional: Yes
Call by Reference: Yes
XML_SELECTED_RUNS - Archiving Runs: Header Information, Jobs, and Status
Data type: ADMX_RUNSTOptional: Yes
Call by Reference: Yes
XML_SELECTED_FILES - Archive Files: Header Information, Jobs, and Status
Data type: ADMX_FILSTOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
OBJECT_NOT_FOUND - Unknown Object
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ARCHIVE_ADMX_SELECT_SESSIONS 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_object | TYPE STANDARD TABLE OF RNG_OBJECT, " | |||
| lv_writing | TYPE ADMI_RUN-WRITING, " | |||
| lv_object_not_found | TYPE ADMI_RUN, " | |||
| lv_replaced | TYPE CHAR1, " SPACE | |||
| lv_to_be_archived | TYPE CHAR1, " SPACE | |||
| lv_invalid | TYPE CHAR1, " SPACE | |||
| lv_interrupted_incomplete | TYPE CHAR1, " SPACE | |||
| lv_interrupted_complete | TYPE CHAR1, " SPACE | |||
| lt_client | TYPE STANDARD TABLE OF RNG_CLIENT, " | |||
| lv_runs_without_resources | TYPE CHAR1, " 'X' | |||
| lt_date | TYPE STANDARD TABLE OF RNG_DATE, " | |||
| lv_indicate_progress | TYPE CHAR1, " SPACE | |||
| lt_document | TYPE STANDARD TABLE OF RNG_RUN, " | |||
| lv_client_dependence | TYPE CHAR1, " 'X' | |||
| lt_user | TYPE STANDARD TABLE OF RNG_USER, " | |||
| lv_incorrect | TYPE CHAR1, " SPACE | |||
| lv_incomplete | TYPE CHAR1, " SPACE | |||
| lt_selected_runs | TYPE STANDARD TABLE OF ADMI_XRUN, " | |||
| lv_complete | TYPE CHAR1, " SPACE | |||
| lt_selected_files | TYPE STANDARD TABLE OF ADMI_XDOCS, " | |||
| lv_being_reloaded | TYPE CHAR1, " SPACE | |||
| lt_xml_selected_runs | TYPE STANDARD TABLE OF ADMX_RUNST, " | |||
| lv_created_by_reload | TYPE CHAR1, " SPACE | |||
| lt_xml_selected_files | TYPE STANDARD TABLE OF ADMX_FILST. " |
|   CALL FUNCTION 'ARCHIVE_ADMX_SELECT_SESSIONS' " |
| EXPORTING | ||
| WRITING | = lv_writing | |
| REPLACED | = lv_replaced | |
| TO_BE_ARCHIVED | = lv_to_be_archived | |
| INVALID | = lv_invalid | |
| INTERRUPTED_INCOMPLETE | = lv_interrupted_incomplete | |
| INTERRUPTED_COMPLETE | = lv_interrupted_complete | |
| RUNS_WITHOUT_RESOURCES | = lv_runs_without_resources | |
| INDICATE_PROGRESS | = lv_indicate_progress | |
| CLIENT_DEPENDENCE | = lv_client_dependence | |
| INCORRECT | = lv_incorrect | |
| INCOMPLETE | = lv_incomplete | |
| COMPLETE | = lv_complete | |
| BEING_RELOADED | = lv_being_reloaded | |
| CREATED_BY_RELOAD | = lv_created_by_reload | |
| TABLES | ||
| OBJECT | = lt_object | |
| CLIENT | = lt_client | |
| DATE | = lt_date | |
| DOCUMENT | = lt_document | |
| USER | = lt_user | |
| SELECTED_RUNS | = lt_selected_runs | |
| SELECTED_FILES | = lt_selected_files | |
| XML_SELECTED_RUNS | = lt_xml_selected_runs | |
| XML_SELECTED_FILES | = lt_xml_selected_files | |
| EXCEPTIONS | ||
| OBJECT_NOT_FOUND = 1 | ||
| . " ARCHIVE_ADMX_SELECT_SESSIONS | ||
ABAP code using 7.40 inline data declarations to call FM ARCHIVE_ADMX_SELECT_SESSIONS
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 WRITING FROM ADMI_RUN INTO @DATA(ld_writing). | ||||
| DATA(ld_replaced) | = ' '. | |||
| DATA(ld_to_be_archived) | = ' '. | |||
| DATA(ld_invalid) | = ' '. | |||
| DATA(ld_interrupted_incomplete) | = ' '. | |||
| DATA(ld_interrupted_complete) | = ' '. | |||
| DATA(ld_runs_without_resources) | = 'X'. | |||
| DATA(ld_indicate_progress) | = ' '. | |||
| DATA(ld_client_dependence) | = 'X'. | |||
| DATA(ld_incorrect) | = ' '. | |||
| DATA(ld_incomplete) | = ' '. | |||
| DATA(ld_complete) | = ' '. | |||
| DATA(ld_being_reloaded) | = ' '. | |||
| DATA(ld_created_by_reload) | = ' '. | |||
Search for further information about these or an SAP related objects