SAP ADDRESS_COM_LIST Function Module for
ADDRESS_COM_LIST is a standard address com list 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 com list FM, simply by entering the name ADDRESS_COM_LIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: SAD1
Program Name: SAPLSAD1
Main Program: SAPLSAD1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function ADDRESS_COM_LIST 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_COM_LIST'".
EXPORTING
ADRNR = "Address number
* ADRTABIX = ' ' "Tabix of table SADR, if ADRNR not filled
* COMAUTH = ' ' "Authorizations for types of communication
* IN_COMSYS = ' ' "Only select this type of communication
* IN_LFDNR = ' ' "Preselection
* MODE = 'MAIN' "Function code
* USED_TSADC_FIELD = '1' "Used flag of ATAB TSADC
IMPORTING
EX_COMSYS = "Selected (SELE) or changed (MAIN) COMSYS
EX_LFDNR = "Number of selected type of communication
UPDATE = "Update on transferred tables = 'X'
TABLES
CS1_TAB = "Reserve table
TEL_TAB = "Telephone numbers
TLX_TAB = "Telex
TTX_TAB = "Teletext
X40_TAB = "X400
CS2_TAB = "Reserve table
CS3_TAB = "Reserve table
CS4_TAB = "Reserve table
CS5_TAB = "Reserve table
EDI_TAB = "EDI
FAX_TAB = "Telefax
RML_TAB = "RMAIL
SSW_TAB = "Soft*Switch
EXCEPTIONS
NO_AUTHORITY = 1 PARAMETER_ERROR = 2
IMPORTING Parameters details for ADDRESS_COM_LIST
ADRNR - Address number
Data type: SADR-ADRNROptional: No
Call by Reference: No ( called with pass by value option)
ADRTABIX - Tabix of table SADR, if ADRNR not filled
Data type: SY-TABIXDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
COMAUTH - Authorizations for types of communication
Data type: SADRAUTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IN_COMSYS - Only select this type of communication
Data type: SADR-STDCOMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IN_LFDNR - Preselection
Data type: SADR2-LFDNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE - Function code
Data type: SY-UCOMMDefault: 'MAIN'
Optional: Yes
Call by Reference: No ( called with pass by value option)
USED_TSADC_FIELD - Used flag of ATAB TSADC
Data type: SONV-FLAGDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ADDRESS_COM_LIST
EX_COMSYS - Selected (SELE) or changed (MAIN) COMSYS
Data type: SADR-STDCOMOptional: No
Call by Reference: No ( called with pass by value option)
EX_LFDNR - Number of selected type of communication
Data type: SADR2-LFDNROptional: No
Call by Reference: No ( called with pass by value option)
UPDATE - Update on transferred tables = 'X'
Data type: SONV-FLAGOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ADDRESS_COM_LIST
CS1_TAB - Reserve table
Data type: SADR10LOptional: No
Call by Reference: No ( called with pass by value option)
TEL_TAB - Telephone numbers
Data type: SADR2LOptional: No
Call by Reference: No ( called with pass by value option)
TLX_TAB - Telex
Data type: SADR5LOptional: No
Call by Reference: No ( called with pass by value option)
TTX_TAB - Teletext
Data type: SADR4LOptional: No
Call by Reference: No ( called with pass by value option)
X40_TAB - X400
Data type: SADR8LOptional: No
Call by Reference: No ( called with pass by value option)
CS2_TAB - Reserve table
Data type: SADR11LOptional: No
Call by Reference: No ( called with pass by value option)
CS3_TAB - Reserve table
Data type: SADR12LOptional: No
Call by Reference: No ( called with pass by value option)
CS4_TAB - Reserve table
Data type: SADR13LOptional: No
Call by Reference: No ( called with pass by value option)
CS5_TAB - Reserve table
Data type: SADR14LOptional: No
Call by Reference: No ( called with pass by value option)
EDI_TAB - EDI
Data type: SADR6LOptional: No
Call by Reference: No ( called with pass by value option)
FAX_TAB - Telefax
Data type: SADR3LOptional: No
Call by Reference: No ( called with pass by value option)
RML_TAB - RMAIL
Data type: SADR7LOptional: No
Call by Reference: No ( called with pass by value option)
SSW_TAB - Soft*Switch
Data type: SADR9LOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_AUTHORITY - No authorization for preselected type of communication
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARAMETER_ERROR - Incorrect input data
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ADDRESS_COM_LIST 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_adrnr | TYPE SADR-ADRNR, " | |||
| lt_cs1_tab | TYPE STANDARD TABLE OF SADR10L, " | |||
| lv_ex_comsys | TYPE SADR-STDCOM, " | |||
| lv_no_authority | TYPE SADR, " | |||
| lt_tel_tab | TYPE STANDARD TABLE OF SADR2L, " | |||
| lt_tlx_tab | TYPE STANDARD TABLE OF SADR5L, " | |||
| lt_ttx_tab | TYPE STANDARD TABLE OF SADR4L, " | |||
| lt_x40_tab | TYPE STANDARD TABLE OF SADR8L, " | |||
| lt_cs2_tab | TYPE STANDARD TABLE OF SADR11L, " | |||
| lv_adrtabix | TYPE SY-TABIX, " SPACE | |||
| lv_ex_lfdnr | TYPE SADR2-LFDNR, " | |||
| lv_parameter_error | TYPE SADR2, " | |||
| lv_update | TYPE SONV-FLAG, " | |||
| lv_comauth | TYPE SADRAUT, " SPACE | |||
| lt_cs3_tab | TYPE STANDARD TABLE OF SADR12L, " | |||
| lt_cs4_tab | TYPE STANDARD TABLE OF SADR13L, " | |||
| lv_in_comsys | TYPE SADR-STDCOM, " SPACE | |||
| lt_cs5_tab | TYPE STANDARD TABLE OF SADR14L, " | |||
| lv_in_lfdnr | TYPE SADR2-LFDNR, " SPACE | |||
| lv_mode | TYPE SY-UCOMM, " 'MAIN' | |||
| lt_edi_tab | TYPE STANDARD TABLE OF SADR6L, " | |||
| lt_fax_tab | TYPE STANDARD TABLE OF SADR3L, " | |||
| lv_used_tsadc_field | TYPE SONV-FLAG, " '1' | |||
| lt_rml_tab | TYPE STANDARD TABLE OF SADR7L, " | |||
| lt_ssw_tab | TYPE STANDARD TABLE OF SADR9L. " |
|   CALL FUNCTION 'ADDRESS_COM_LIST' " |
| EXPORTING | ||
| ADRNR | = lv_adrnr | |
| ADRTABIX | = lv_adrtabix | |
| COMAUTH | = lv_comauth | |
| IN_COMSYS | = lv_in_comsys | |
| IN_LFDNR | = lv_in_lfdnr | |
| MODE | = lv_mode | |
| USED_TSADC_FIELD | = lv_used_tsadc_field | |
| IMPORTING | ||
| EX_COMSYS | = lv_ex_comsys | |
| EX_LFDNR | = lv_ex_lfdnr | |
| UPDATE | = lv_update | |
| TABLES | ||
| CS1_TAB | = lt_cs1_tab | |
| TEL_TAB | = lt_tel_tab | |
| TLX_TAB | = lt_tlx_tab | |
| TTX_TAB | = lt_ttx_tab | |
| X40_TAB | = lt_x40_tab | |
| CS2_TAB | = lt_cs2_tab | |
| CS3_TAB | = lt_cs3_tab | |
| CS4_TAB | = lt_cs4_tab | |
| CS5_TAB | = lt_cs5_tab | |
| EDI_TAB | = lt_edi_tab | |
| FAX_TAB | = lt_fax_tab | |
| RML_TAB | = lt_rml_tab | |
| SSW_TAB | = lt_ssw_tab | |
| EXCEPTIONS | ||
| NO_AUTHORITY = 1 | ||
| PARAMETER_ERROR = 2 | ||
| . " ADDRESS_COM_LIST | ||
ABAP code using 7.40 inline data declarations to call FM ADDRESS_COM_LIST
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 ADRNR FROM SADR INTO @DATA(ld_adrnr). | ||||
| "SELECT single STDCOM FROM SADR INTO @DATA(ld_ex_comsys). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_adrtabix). | ||||
| DATA(ld_adrtabix) | = ' '. | |||
| "SELECT single LFDNR FROM SADR2 INTO @DATA(ld_ex_lfdnr). | ||||
| "SELECT single FLAG FROM SONV INTO @DATA(ld_update). | ||||
| DATA(ld_comauth) | = ' '. | |||
| "SELECT single STDCOM FROM SADR INTO @DATA(ld_in_comsys). | ||||
| DATA(ld_in_comsys) | = ' '. | |||
| "SELECT single LFDNR FROM SADR2 INTO @DATA(ld_in_lfdnr). | ||||
| DATA(ld_in_lfdnr) | = ' '. | |||
| "SELECT single UCOMM FROM SY INTO @DATA(ld_mode). | ||||
| DATA(ld_mode) | = 'MAIN'. | |||
| "SELECT single FLAG FROM SONV INTO @DATA(ld_used_tsadc_field). | ||||
| DATA(ld_used_tsadc_field) | = '1'. | |||
Search for further information about these or an SAP related objects