SAP ADDR1_EXTRACT_TABLES Function Module for Read address type 1 (company address) tables









ADDR1_EXTRACT_TABLES is a standard addr1 extract tables SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read address type 1 (company address) tables 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 addr1 extract tables FM, simply by entering the name ADDR1_EXTRACT_TABLES into the relevant SAP transaction such as SE37 or SE38.

Function Group: SZAX
Program Name: SAPLSZAX
Main Program: SAPLSZAX
Appliation area: S
Release date: 02-Sep-1999
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ADDR1_EXTRACT_TABLES 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 'ADDR1_EXTRACT_TABLES'"Read address type 1 (company address) tables
TABLES
T_ADDRESS_KEYS = "Addr.key: Only addr.no. used
* T_ADR8 = "
* T_ADR9 = "
* T_ADR10 = "
* T_ADR11 = "
* T_ADR12 = "
* T_ADR13 = "
* T_ADRT = "
* T_ADRC = "
* T_ADRCT = "
* T_ADR2 = "
* T_ADR3 = "
* T_ADR4 = "
* T_ADR5 = "
* T_ADR6 = "
* T_ADR7 = "

EXCEPTIONS
EMPTY_TABLE = 1
.



TABLES Parameters details for ADDR1_EXTRACT_TABLES

T_ADDRESS_KEYS - Addr.key: Only addr.no. used

Data type: ADDR_KEY
Optional: No
Call by Reference: No ( called with pass by value option)

T_ADR8 -

Data type: ADR8
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_ADR9 -

Data type: ADR9
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_ADR10 -

Data type: ADR10
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_ADR11 -

Data type: ADR11
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_ADR12 -

Data type: ADR12
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_ADR13 -

Data type: ADR13
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_ADRT -

Data type: ADRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_ADRC -

Data type: ADRC
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_ADRCT -

Data type: ADRCT
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_ADR2 -

Data type: ADR2
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_ADR3 -

Data type: ADR3
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_ADR4 -

Data type: ADR4
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_ADR5 -

Data type: ADR5
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_ADR6 -

Data type: ADR6
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_ADR7 -

Data type: ADR7
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

EMPTY_TABLE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ADDR1_EXTRACT_TABLES 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_empty_table  TYPE STRING, "   
lt_t_address_keys  TYPE STANDARD TABLE OF ADDR_KEY, "   
lt_t_adr8  TYPE STANDARD TABLE OF ADR8, "   
lt_t_adr9  TYPE STANDARD TABLE OF ADR9, "   
lt_t_adr10  TYPE STANDARD TABLE OF ADR10, "   
lt_t_adr11  TYPE STANDARD TABLE OF ADR11, "   
lt_t_adr12  TYPE STANDARD TABLE OF ADR12, "   
lt_t_adr13  TYPE STANDARD TABLE OF ADR13, "   
lt_t_adrt  TYPE STANDARD TABLE OF ADRT, "   
lt_t_adrc  TYPE STANDARD TABLE OF ADRC, "   
lt_t_adrct  TYPE STANDARD TABLE OF ADRCT, "   
lt_t_adr2  TYPE STANDARD TABLE OF ADR2, "   
lt_t_adr3  TYPE STANDARD TABLE OF ADR3, "   
lt_t_adr4  TYPE STANDARD TABLE OF ADR4, "   
lt_t_adr5  TYPE STANDARD TABLE OF ADR5, "   
lt_t_adr6  TYPE STANDARD TABLE OF ADR6, "   
lt_t_adr7  TYPE STANDARD TABLE OF ADR7. "   

  CALL FUNCTION 'ADDR1_EXTRACT_TABLES'  "Read address type 1 (company address) tables
    TABLES
         T_ADDRESS_KEYS = lt_t_address_keys
         T_ADR8 = lt_t_adr8
         T_ADR9 = lt_t_adr9
         T_ADR10 = lt_t_adr10
         T_ADR11 = lt_t_adr11
         T_ADR12 = lt_t_adr12
         T_ADR13 = lt_t_adr13
         T_ADRT = lt_t_adrt
         T_ADRC = lt_t_adrc
         T_ADRCT = lt_t_adrct
         T_ADR2 = lt_t_adr2
         T_ADR3 = lt_t_adr3
         T_ADR4 = lt_t_adr4
         T_ADR5 = lt_t_adr5
         T_ADR6 = lt_t_adr6
         T_ADR7 = lt_t_adr7
    EXCEPTIONS
        EMPTY_TABLE = 1
. " ADDR1_EXTRACT_TABLES




ABAP code using 7.40 inline data declarations to call FM ADDR1_EXTRACT_TABLES

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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!