SAP SO_ADDRESS_ID_GET Function Module for SAPoffice: Assign address number to communications address
SO_ADDRESS_ID_GET is a standard so address id get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for SAPoffice: Assign address number to communications address 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 so address id get FM, simply by entering the name SO_ADDRESS_ID_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: SOE1
Program Name: SAPLSOE1
Main Program: SAPLSOE1
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SO_ADDRESS_ID_GET 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 'SO_ADDRESS_ID_GET'"SAPoffice: Assign address number to communications address.
EXPORTING
ADDRESS = "
ADDRESS_TYPE = "
* NO_ADRADMI = "
* NO_INTERN = "
* NO_DIR = "
* COLLECT = "
* NO_CREATE = "
* USAGE = "
* VISNAME = "
IMPORTING
ADRTP = "
ADRYR = "
ADRNO = "
ADRNR = "
SNDART = "Communication type
LFDNR = "Sequence number
WARNING_REF_ALREADY_EXIST = "
ADDRNUMBER = "
PERSNUMBER = "
TABLES
* COLLECTED_ADDRESSES = "
EXCEPTIONS
ADDRESS_NOT_FOUND = 1 ADDRESS_NOT_CREATED = 2 PARAMETER_ERROR = 3 X_ERROR = 4
IMPORTING Parameters details for SO_ADDRESS_ID_GET
ADDRESS -
Data type: SOXDA-ADDRESSOptional: No
Call by Reference: No ( called with pass by value option)
ADDRESS_TYPE -
Data type: SOOS1-SNDARTOptional: No
Call by Reference: No ( called with pass by value option)
NO_ADRADMI -
Data type: SOXDA-NO_ADRADMIOptional: Yes
Call by Reference: No ( called with pass by value option)
NO_INTERN -
Data type: SOXDA-NO_ADRADMIOptional: Yes
Call by Reference: No ( called with pass by value option)
NO_DIR -
Data type: SOXDA-NO_DIROptional: Yes
Call by Reference: No ( called with pass by value option)
COLLECT -
Data type: SONV-FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
NO_CREATE -
Data type: SONV-FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
USAGE -
Data type: PERS_REFOptional: Yes
Call by Reference: No ( called with pass by value option)
VISNAME -
Data type: CLIKEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for SO_ADDRESS_ID_GET
ADRTP -
Data type: SOOD-OBJTPOptional: No
Call by Reference: No ( called with pass by value option)
ADRYR -
Data type: SOOD-OBJYROptional: No
Call by Reference: No ( called with pass by value option)
ADRNO -
Data type: SOOD-OBJNOOptional: No
Call by Reference: No ( called with pass by value option)
ADRNR -
Data type: SOES-ADRNROptional: No
Call by Reference: No ( called with pass by value option)
SNDART - Communication type
Data type: SOES-SNDARTOptional: No
Call by Reference: No ( called with pass by value option)
LFDNR - Sequence number
Data type: SOES-LFDNROptional: No
Call by Reference: No ( called with pass by value option)
WARNING_REF_ALREADY_EXIST -
Data type: SONV-FLAGOptional: No
Call by Reference: No ( called with pass by value option)
ADDRNUMBER -
Data type: ADCP-ADDRNUMBEROptional: No
Call by Reference: No ( called with pass by value option)
PERSNUMBER -
Data type: ADCP-PERSNUMBEROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SO_ADDRESS_ID_GET
COLLECTED_ADDRESSES -
Data type: SADRK3Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ADDRESS_NOT_FOUND - Address not Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ADDRESS_NOT_CREATED -
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)
X_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SO_ADDRESS_ID_GET 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_adrtp | TYPE SOOD-OBJTP, " | |||
| lv_address | TYPE SOXDA-ADDRESS, " | |||
| lv_address_not_found | TYPE SOXDA, " | |||
| lt_collected_addresses | TYPE STANDARD TABLE OF SADRK3, " | |||
| lv_adryr | TYPE SOOD-OBJYR, " | |||
| lv_address_type | TYPE SOOS1-SNDART, " | |||
| lv_address_not_created | TYPE SOOS1, " | |||
| lv_adrno | TYPE SOOD-OBJNO, " | |||
| lv_no_adradmi | TYPE SOXDA-NO_ADRADMI, " | |||
| lv_parameter_error | TYPE SOXDA, " | |||
| lv_adrnr | TYPE SOES-ADRNR, " | |||
| lv_x_error | TYPE SOES, " | |||
| lv_no_intern | TYPE SOXDA-NO_ADRADMI, " | |||
| lv_no_dir | TYPE SOXDA-NO_DIR, " | |||
| lv_sndart | TYPE SOES-SNDART, " | |||
| lv_lfdnr | TYPE SOES-LFDNR, " | |||
| lv_collect | TYPE SONV-FLAG, " | |||
| lv_no_create | TYPE SONV-FLAG, " | |||
| lv_warning_ref_already_exist | TYPE SONV-FLAG, " | |||
| lv_usage | TYPE PERS_REF, " | |||
| lv_addrnumber | TYPE ADCP-ADDRNUMBER, " | |||
| lv_visname | TYPE CLIKE, " | |||
| lv_persnumber | TYPE ADCP-PERSNUMBER. " |
|   CALL FUNCTION 'SO_ADDRESS_ID_GET' "SAPoffice: Assign address number to communications address |
| EXPORTING | ||
| ADDRESS | = lv_address | |
| ADDRESS_TYPE | = lv_address_type | |
| NO_ADRADMI | = lv_no_adradmi | |
| NO_INTERN | = lv_no_intern | |
| NO_DIR | = lv_no_dir | |
| COLLECT | = lv_collect | |
| NO_CREATE | = lv_no_create | |
| USAGE | = lv_usage | |
| VISNAME | = lv_visname | |
| IMPORTING | ||
| ADRTP | = lv_adrtp | |
| ADRYR | = lv_adryr | |
| ADRNO | = lv_adrno | |
| ADRNR | = lv_adrnr | |
| SNDART | = lv_sndart | |
| LFDNR | = lv_lfdnr | |
| WARNING_REF_ALREADY_EXIST | = lv_warning_ref_already_exist | |
| ADDRNUMBER | = lv_addrnumber | |
| PERSNUMBER | = lv_persnumber | |
| TABLES | ||
| COLLECTED_ADDRESSES | = lt_collected_addresses | |
| EXCEPTIONS | ||
| ADDRESS_NOT_FOUND = 1 | ||
| ADDRESS_NOT_CREATED = 2 | ||
| PARAMETER_ERROR = 3 | ||
| X_ERROR = 4 | ||
| . " SO_ADDRESS_ID_GET | ||
ABAP code using 7.40 inline data declarations to call FM SO_ADDRESS_ID_GET
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 OBJTP FROM SOOD INTO @DATA(ld_adrtp). | ||||
| "SELECT single ADDRESS FROM SOXDA INTO @DATA(ld_address). | ||||
| "SELECT single OBJYR FROM SOOD INTO @DATA(ld_adryr). | ||||
| "SELECT single SNDART FROM SOOS1 INTO @DATA(ld_address_type). | ||||
| "SELECT single OBJNO FROM SOOD INTO @DATA(ld_adrno). | ||||
| "SELECT single NO_ADRADMI FROM SOXDA INTO @DATA(ld_no_adradmi). | ||||
| "SELECT single ADRNR FROM SOES INTO @DATA(ld_adrnr). | ||||
| "SELECT single NO_ADRADMI FROM SOXDA INTO @DATA(ld_no_intern). | ||||
| "SELECT single NO_DIR FROM SOXDA INTO @DATA(ld_no_dir). | ||||
| "SELECT single SNDART FROM SOES INTO @DATA(ld_sndart). | ||||
| "SELECT single LFDNR FROM SOES INTO @DATA(ld_lfdnr). | ||||
| "SELECT single FLAG FROM SONV INTO @DATA(ld_collect). | ||||
| "SELECT single FLAG FROM SONV INTO @DATA(ld_no_create). | ||||
| "SELECT single FLAG FROM SONV INTO @DATA(ld_warning_ref_already_exist). | ||||
| "SELECT single ADDRNUMBER FROM ADCP INTO @DATA(ld_addrnumber). | ||||
| "SELECT single PERSNUMBER FROM ADCP INTO @DATA(ld_persnumber). | ||||
Search for further information about these or an SAP related objects