SAP ARCHIVE_ADMIN_GET_JOB_INFO Function Module for Determine Status of the Last or Active Job in a File or in a Session
ARCHIVE_ADMIN_GET_JOB_INFO is a standard archive admin get job info SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine Status of the Last or Active Job in a File or in a Session processing and below is the pattern details for this FM, 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 admin get job info FM, simply by entering the name ARCHIVE_ADMIN_GET_JOB_INFO into the relevant SAP transaction such as SE37 or SE38.
Function Group: AADM
Program Name: SAPLAADM
Main Program: SAPLAADM
Appliation area:
Release date: 08-Mar-2000
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function ARCHIVE_ADMIN_GET_JOB_INFO 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_ADMIN_GET_JOB_INFO'"Determine Status of the Last or Active Job in a File or in a Session.
EXPORTING
* JOB_STATES = "Selection Values for Job Table Entry Selection
TABLES
INFO_REQUESTS = "Information on the Last or Active Job in a Session or in a File
EXCEPTIONS
NO_INPUT_DATA = 1 NEITHER_RUN_NOR_FILE_SPECIFIED = 2 JOBTYPE_NOT_SPECIFIED = 3 WRONG_JOBTYPE = 4
IMPORTING Parameters details for ARCHIVE_ADMIN_GET_JOB_INFO
JOB_STATES - Selection Values for Job Table Entry Selection
Data type: TBTCVOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ARCHIVE_ADMIN_GET_JOB_INFO
INFO_REQUESTS - Information on the Last or Active Job in a Session or in a File
Data type: ADMI_SLJOBOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_INPUT_DATA - The Table NFO_REQUESTS Was Empty When Transferred
Data type:Optional: No
Call by Reference: Yes
NEITHER_RUN_NOR_FILE_SPECIFIED - Session and File Are not Specified in an Entry in the Table INFO_REQUESTS
Data type:Optional: No
Call by Reference: Yes
JOBTYPE_NOT_SPECIFIED - The Job Type Is not Specified in an Entry in the Table INFO_REQUESTS
Data type:Optional: No
Call by Reference: Yes
WRONG_JOBTYPE - Incorrect Assignment of a Session or a File for a Job Type
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ARCHIVE_ADMIN_GET_JOB_INFO 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_job_states | TYPE TBTCV, " | |||
| lt_info_requests | TYPE STANDARD TABLE OF ADMI_SLJOB, " | |||
| lv_no_input_data | TYPE ADMI_SLJOB, " | |||
| lv_neither_run_nor_file_specified | TYPE ADMI_SLJOB, " | |||
| lv_jobtype_not_specified | TYPE ADMI_SLJOB, " | |||
| lv_wrong_jobtype | TYPE ADMI_SLJOB. " |
|   CALL FUNCTION 'ARCHIVE_ADMIN_GET_JOB_INFO' "Determine Status of the Last or Active Job in a File or in a Session |
| EXPORTING | ||
| JOB_STATES | = lv_job_states | |
| TABLES | ||
| INFO_REQUESTS | = lt_info_requests | |
| EXCEPTIONS | ||
| NO_INPUT_DATA = 1 | ||
| NEITHER_RUN_NOR_FILE_SPECIFIED = 2 | ||
| JOBTYPE_NOT_SPECIFIED = 3 | ||
| WRONG_JOBTYPE = 4 | ||
| . " ARCHIVE_ADMIN_GET_JOB_INFO | ||
ABAP code using 7.40 inline data declarations to call FM ARCHIVE_ADMIN_GET_JOB_INFO
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.Search for further information about these or an SAP related objects