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

Function AIA_TOOL_APPREQ_READ_ARCHIVE 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 'AIA_TOOL_APPREQ_READ_ARCHIVE'".
EXPORTING
IS_APPREQUEST = "
* I_AUTH_CHECK = 'X' "
* I_OBJNR_IQ = "
* I_OBJNR_IO = "
* I_ARCHIVEKEY = "
* I_OFFSET = "
TABLES
* ET_IMAK = "
* ET_IMAKZS = "
* ET_IMAV = "
* ET_IMAVT = "
* ET_IMAVZ = "
* ET_IHPA = "
* ET_BPGE = "
* ET_BPJA = "
* ET_BPTR = "
* ET_BPHI = "
* ET_ANIA = "
* ET_IMAKT = "
* ET_ANIB = "
* ET_JSTO = "
* ET_JEST = "
* RETURN = "
* ET_IMAKA = "
* ET_IMAKZ = "
* ET_IMAKPA = "
* ET_IMAKPI = "
* ET_IMAKPS = "
* ET_IMAKPU = "
* ET_IMAKPW = "
EXCEPTIONS
ERROR_WHILE_READING_ARCHIVE = 1 NOT_FOUND = 2 NO_APPREQUEST = 3
IMPORTING Parameters details for AIA_TOOL_APPREQ_READ_ARCHIVE
IS_APPREQUEST -
Data type: IMAKOptional: No
Call by Reference: No ( called with pass by value option)
I_AUTH_CHECK -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OBJNR_IQ -
Data type: J_OBJNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_OBJNR_IO -
Data type: J_OBJNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_ARCHIVEKEY -
Data type: ADMI_FILES-ARCHIV_KEYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_OFFSET -
Data type: ARCH_IDX-OFFSETOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for AIA_TOOL_APPREQ_READ_ARCHIVE
ET_IMAK -
Data type: IMAKOptional: Yes
Call by Reference: Yes
ET_IMAKZS -
Data type: IMAKZSOptional: Yes
Call by Reference: Yes
ET_IMAV -
Data type: IMAVOptional: Yes
Call by Reference: Yes
ET_IMAVT -
Data type: IMAVTOptional: Yes
Call by Reference: Yes
ET_IMAVZ -
Data type: IMAVZOptional: Yes
Call by Reference: Yes
ET_IHPA -
Data type: IHPAOptional: Yes
Call by Reference: Yes
ET_BPGE -
Data type: BPGEOptional: Yes
Call by Reference: Yes
ET_BPJA -
Data type: BPJAOptional: Yes
Call by Reference: Yes
ET_BPTR -
Data type: BPTROptional: Yes
Call by Reference: Yes
ET_BPHI -
Data type: BPHIOptional: Yes
Call by Reference: Yes
ET_ANIA -
Data type: ANIAOptional: Yes
Call by Reference: Yes
ET_IMAKT -
Data type: IMAKTOptional: Yes
Call by Reference: Yes
ET_ANIB -
Data type: ANIBOptional: Yes
Call by Reference: Yes
ET_JSTO -
Data type: JSTOOptional: Yes
Call by Reference: Yes
ET_JEST -
Data type: JESTOptional: Yes
Call by Reference: Yes
RETURN -
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
ET_IMAKA -
Data type: IMAKAOptional: Yes
Call by Reference: Yes
ET_IMAKZ -
Data type: IMAKZOptional: Yes
Call by Reference: Yes
ET_IMAKPA -
Data type: IMAKPAOptional: Yes
Call by Reference: Yes
ET_IMAKPI -
Data type: IMAKPIOptional: Yes
Call by Reference: Yes
ET_IMAKPS -
Data type: IMAKPSOptional: Yes
Call by Reference: Yes
ET_IMAKPU -
Data type: IMAKPUOptional: Yes
Call by Reference: Yes
ET_IMAKPW -
Data type: IMAKPWOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ERROR_WHILE_READING_ARCHIVE -
Data type:Optional: No
Call by Reference: Yes
NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
NO_APPREQUEST -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for AIA_TOOL_APPREQ_READ_ARCHIVE 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_et_imak | TYPE STANDARD TABLE OF IMAK, " | |||
| lv_is_apprequest | TYPE IMAK, " | |||
| lv_error_while_reading_archive | TYPE IMAK, " | |||
| lt_et_imakzs | TYPE STANDARD TABLE OF IMAKZS, " | |||
| lt_et_imav | TYPE STANDARD TABLE OF IMAV, " | |||
| lt_et_imavt | TYPE STANDARD TABLE OF IMAVT, " | |||
| lt_et_imavz | TYPE STANDARD TABLE OF IMAVZ, " | |||
| lt_et_ihpa | TYPE STANDARD TABLE OF IHPA, " | |||
| lt_et_bpge | TYPE STANDARD TABLE OF BPGE, " | |||
| lt_et_bpja | TYPE STANDARD TABLE OF BPJA, " | |||
| lt_et_bptr | TYPE STANDARD TABLE OF BPTR, " | |||
| lt_et_bphi | TYPE STANDARD TABLE OF BPHI, " | |||
| lt_et_ania | TYPE STANDARD TABLE OF ANIA, " | |||
| lt_et_imakt | TYPE STANDARD TABLE OF IMAKT, " | |||
| lv_not_found | TYPE IMAKT, " | |||
| lv_i_auth_check | TYPE C, " 'X' | |||
| lt_et_anib | TYPE STANDARD TABLE OF ANIB, " | |||
| lt_et_jsto | TYPE STANDARD TABLE OF JSTO, " | |||
| lt_et_jest | TYPE STANDARD TABLE OF JEST, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_et_imaka | TYPE STANDARD TABLE OF IMAKA, " | |||
| lv_i_objnr_iq | TYPE J_OBJNR, " | |||
| lv_no_apprequest | TYPE J_OBJNR, " | |||
| lt_et_imakz | TYPE STANDARD TABLE OF IMAKZ, " | |||
| lv_i_objnr_io | TYPE J_OBJNR, " | |||
| lt_et_imakpa | TYPE STANDARD TABLE OF IMAKPA, " | |||
| lv_i_archivekey | TYPE ADMI_FILES-ARCHIV_KEY, " | |||
| lv_i_offset | TYPE ARCH_IDX-OFFSET, " | |||
| lt_et_imakpi | TYPE STANDARD TABLE OF IMAKPI, " | |||
| lt_et_imakps | TYPE STANDARD TABLE OF IMAKPS, " | |||
| lt_et_imakpu | TYPE STANDARD TABLE OF IMAKPU, " | |||
| lt_et_imakpw | TYPE STANDARD TABLE OF IMAKPW. " |
|   CALL FUNCTION 'AIA_TOOL_APPREQ_READ_ARCHIVE' " |
| EXPORTING | ||
| IS_APPREQUEST | = lv_is_apprequest | |
| I_AUTH_CHECK | = lv_i_auth_check | |
| I_OBJNR_IQ | = lv_i_objnr_iq | |
| I_OBJNR_IO | = lv_i_objnr_io | |
| I_ARCHIVEKEY | = lv_i_archivekey | |
| I_OFFSET | = lv_i_offset | |
| TABLES | ||
| ET_IMAK | = lt_et_imak | |
| ET_IMAKZS | = lt_et_imakzs | |
| ET_IMAV | = lt_et_imav | |
| ET_IMAVT | = lt_et_imavt | |
| ET_IMAVZ | = lt_et_imavz | |
| ET_IHPA | = lt_et_ihpa | |
| ET_BPGE | = lt_et_bpge | |
| ET_BPJA | = lt_et_bpja | |
| ET_BPTR | = lt_et_bptr | |
| ET_BPHI | = lt_et_bphi | |
| ET_ANIA | = lt_et_ania | |
| ET_IMAKT | = lt_et_imakt | |
| ET_ANIB | = lt_et_anib | |
| ET_JSTO | = lt_et_jsto | |
| ET_JEST | = lt_et_jest | |
| RETURN | = lt_return | |
| ET_IMAKA | = lt_et_imaka | |
| ET_IMAKZ | = lt_et_imakz | |
| ET_IMAKPA | = lt_et_imakpa | |
| ET_IMAKPI | = lt_et_imakpi | |
| ET_IMAKPS | = lt_et_imakps | |
| ET_IMAKPU | = lt_et_imakpu | |
| ET_IMAKPW | = lt_et_imakpw | |
| EXCEPTIONS | ||
| ERROR_WHILE_READING_ARCHIVE = 1 | ||
| NOT_FOUND = 2 | ||
| NO_APPREQUEST = 3 | ||
| . " AIA_TOOL_APPREQ_READ_ARCHIVE | ||
ABAP code using 7.40 inline data declarations to call FM AIA_TOOL_APPREQ_READ_ARCHIVE
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_i_auth_check) | = 'X'. | |||
| "SELECT single ARCHIV_KEY FROM ADMI_FILES INTO @DATA(ld_i_archivekey). | ||||
| "SELECT single OFFSET FROM ARCH_IDX INTO @DATA(ld_i_offset). | ||||
Search for further information about these or an SAP related objects