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

Function ADDRESS_READ_ARCHIVE_OBJECT 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 'ADDRESS_READ_ARCHIVE_OBJECT'".
EXPORTING
ARCHIVE_HANDLE = "Handle on Open Archive Files
TABLES
* IADRC = "
IADR8 = "X.400
IADR9 = "RFC
IADR10 = "Printer
IADR11 = "SSF
IADR12 = "
IADR13 = "Pager
IADRCT = "
IADRT = "
* IADRV = "
* IADRVP = "
* IADRP = "
* IADRG = "
* IADRGP = "
IADRCOMC = "
* IREF_TAB1 = "Reference Table for Archiving Class (Type 1)
* IREF_TAB2 = "Reference Table for Archiving Class (Type 2)
* IREF_TAB3 = "Reference Table for Archiving Class (Type 3)
* IKEY_TAB1 = "Key Table for Archiving Class (Type 1)
* IKEY_TAB2 = "Key Table for Archiving Class (Type 2)
* IKEY_TAB3 = "Key Table for Archiving Class (Type 2)
* IADRU = "Table for Communication Usages
* IADCP = "
IADR2 = "Tel.No.
IADR3 = "Fax
IADR4 = "Teletex
IADR5 = "Telex
IADR6 = "SMTP
IADR7 = "R/Mail
EXCEPTIONS
WRONG_ACCESS_TO_ARCHIVE = 1 PARAMETER_ERROR = 2
IMPORTING Parameters details for ADDRESS_READ_ARCHIVE_OBJECT
ARCHIVE_HANDLE - Handle on Open Archive Files
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ADDRESS_READ_ARCHIVE_OBJECT
IADRC -
Data type: ADDR1_VALOptional: Yes
Call by Reference: No ( called with pass by value option)
IADR8 - X.400
Data type: ADR8Optional: No
Call by Reference: No ( called with pass by value option)
IADR9 - RFC
Data type: ADR9Optional: No
Call by Reference: No ( called with pass by value option)
IADR10 - Printer
Data type: ADR10Optional: No
Call by Reference: No ( called with pass by value option)
IADR11 - SSF
Data type: ADR11Optional: No
Call by Reference: No ( called with pass by value option)
IADR12 -
Data type: ADR12Optional: No
Call by Reference: No ( called with pass by value option)
IADR13 - Pager
Data type: ADR13Optional: No
Call by Reference: No ( called with pass by value option)
IADRCT -
Data type: ADRCTOptional: No
Call by Reference: No ( called with pass by value option)
IADRT -
Data type: ADRTOptional: No
Call by Reference: No ( called with pass by value option)
IADRV -
Data type: ADRVOptional: Yes
Call by Reference: No ( called with pass by value option)
IADRVP -
Data type: ADRVPOptional: Yes
Call by Reference: No ( called with pass by value option)
IADRP -
Data type: ADDR2_VALOptional: Yes
Call by Reference: No ( called with pass by value option)
IADRG -
Data type: ADRGOptional: Yes
Call by Reference: No ( called with pass by value option)
IADRGP -
Data type: ADRGPOptional: Yes
Call by Reference: No ( called with pass by value option)
IADRCOMC -
Data type: ADRCOMCOptional: No
Call by Reference: No ( called with pass by value option)
IREF_TAB1 - Reference Table for Archiving Class (Type 1)
Data type: ADARCH_RT1Optional: Yes
Call by Reference: Yes
IREF_TAB2 - Reference Table for Archiving Class (Type 2)
Data type: ADARCH_RT2Optional: Yes
Call by Reference: Yes
IREF_TAB3 - Reference Table for Archiving Class (Type 3)
Data type: ADARCH_RT3Optional: Yes
Call by Reference: Yes
IKEY_TAB1 - Key Table for Archiving Class (Type 1)
Data type: ADARCH_KT1Optional: Yes
Call by Reference: Yes
IKEY_TAB2 - Key Table for Archiving Class (Type 2)
Data type: ADARCH_KT2Optional: Yes
Call by Reference: Yes
IKEY_TAB3 - Key Table for Archiving Class (Type 2)
Data type: ADARCH_KT3Optional: Yes
Call by Reference: Yes
IADRU - Table for Communication Usages
Data type: ADRUOptional: Yes
Call by Reference: Yes
IADCP -
Data type: ADDR3_VALOptional: Yes
Call by Reference: No ( called with pass by value option)
IADR2 - Tel.No.
Data type: ADR2Optional: No
Call by Reference: No ( called with pass by value option)
IADR3 - Fax
Data type: ADR3Optional: No
Call by Reference: No ( called with pass by value option)
IADR4 - Teletex
Data type: ADR4Optional: No
Call by Reference: No ( called with pass by value option)
IADR5 - Telex
Data type: ADR5Optional: No
Call by Reference: No ( called with pass by value option)
IADR6 - SMTP
Data type: ADR6Optional: No
Call by Reference: No ( called with pass by value option)
IADR7 - R/Mail
Data type: ADR7Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
WRONG_ACCESS_TO_ARCHIVE - incorrect access to archive
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARAMETER_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ADDRESS_READ_ARCHIVE_OBJECT 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_iadrc | TYPE STANDARD TABLE OF ADDR1_VAL, " | |||
| lv_archive_handle | TYPE SY-TABIX, " | |||
| lv_wrong_access_to_archive | TYPE SY, " | |||
| lt_iadr8 | TYPE STANDARD TABLE OF ADR8, " | |||
| lt_iadr9 | TYPE STANDARD TABLE OF ADR9, " | |||
| lt_iadr10 | TYPE STANDARD TABLE OF ADR10, " | |||
| lt_iadr11 | TYPE STANDARD TABLE OF ADR11, " | |||
| lt_iadr12 | TYPE STANDARD TABLE OF ADR12, " | |||
| lt_iadr13 | TYPE STANDARD TABLE OF ADR13, " | |||
| lt_iadrct | TYPE STANDARD TABLE OF ADRCT, " | |||
| lt_iadrt | TYPE STANDARD TABLE OF ADRT, " | |||
| lt_iadrv | TYPE STANDARD TABLE OF ADRV, " | |||
| lt_iadrvp | TYPE STANDARD TABLE OF ADRVP, " | |||
| lt_iadrp | TYPE STANDARD TABLE OF ADDR2_VAL, " | |||
| lv_parameter_error | TYPE ADDR2_VAL, " | |||
| lt_iadrg | TYPE STANDARD TABLE OF ADRG, " | |||
| lt_iadrgp | TYPE STANDARD TABLE OF ADRGP, " | |||
| lt_iadrcomc | TYPE STANDARD TABLE OF ADRCOMC, " | |||
| lt_iref_tab1 | TYPE STANDARD TABLE OF ADARCH_RT1, " | |||
| lt_iref_tab2 | TYPE STANDARD TABLE OF ADARCH_RT2, " | |||
| lt_iref_tab3 | TYPE STANDARD TABLE OF ADARCH_RT3, " | |||
| lt_ikey_tab1 | TYPE STANDARD TABLE OF ADARCH_KT1, " | |||
| lt_ikey_tab2 | TYPE STANDARD TABLE OF ADARCH_KT2, " | |||
| lt_ikey_tab3 | TYPE STANDARD TABLE OF ADARCH_KT3, " | |||
| lt_iadru | TYPE STANDARD TABLE OF ADRU, " | |||
| lt_iadcp | TYPE STANDARD TABLE OF ADDR3_VAL, " | |||
| lt_iadr2 | TYPE STANDARD TABLE OF ADR2, " | |||
| lt_iadr3 | TYPE STANDARD TABLE OF ADR3, " | |||
| lt_iadr4 | TYPE STANDARD TABLE OF ADR4, " | |||
| lt_iadr5 | TYPE STANDARD TABLE OF ADR5, " | |||
| lt_iadr6 | TYPE STANDARD TABLE OF ADR6, " | |||
| lt_iadr7 | TYPE STANDARD TABLE OF ADR7. " |
|   CALL FUNCTION 'ADDRESS_READ_ARCHIVE_OBJECT' " |
| EXPORTING | ||
| ARCHIVE_HANDLE | = lv_archive_handle | |
| TABLES | ||
| IADRC | = lt_iadrc | |
| IADR8 | = lt_iadr8 | |
| IADR9 | = lt_iadr9 | |
| IADR10 | = lt_iadr10 | |
| IADR11 | = lt_iadr11 | |
| IADR12 | = lt_iadr12 | |
| IADR13 | = lt_iadr13 | |
| IADRCT | = lt_iadrct | |
| IADRT | = lt_iadrt | |
| IADRV | = lt_iadrv | |
| IADRVP | = lt_iadrvp | |
| IADRP | = lt_iadrp | |
| IADRG | = lt_iadrg | |
| IADRGP | = lt_iadrgp | |
| IADRCOMC | = lt_iadrcomc | |
| IREF_TAB1 | = lt_iref_tab1 | |
| IREF_TAB2 | = lt_iref_tab2 | |
| IREF_TAB3 | = lt_iref_tab3 | |
| IKEY_TAB1 | = lt_ikey_tab1 | |
| IKEY_TAB2 | = lt_ikey_tab2 | |
| IKEY_TAB3 | = lt_ikey_tab3 | |
| IADRU | = lt_iadru | |
| IADCP | = lt_iadcp | |
| IADR2 | = lt_iadr2 | |
| IADR3 | = lt_iadr3 | |
| IADR4 | = lt_iadr4 | |
| IADR5 | = lt_iadr5 | |
| IADR6 | = lt_iadr6 | |
| IADR7 | = lt_iadr7 | |
| EXCEPTIONS | ||
| WRONG_ACCESS_TO_ARCHIVE = 1 | ||
| PARAMETER_ERROR = 2 | ||
| . " ADDRESS_READ_ARCHIVE_OBJECT | ||
ABAP code using 7.40 inline data declarations to call FM ADDRESS_READ_ARCHIVE_OBJECT
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 TABIX FROM SY INTO @DATA(ld_archive_handle). | ||||
Search for further information about these or an SAP related objects