SAP SD_ADDRESS_GET Function Module for NOTRANSL: Lesen einer Adresse aus der ZAV
SD_ADDRESS_GET is a standard sd address 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 NOTRANSL: Lesen einer Adresse aus der ZAV 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 sd address get FM, simply by entering the name SD_ADDRESS_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: V09D
Program Name: SAPLV09D
Main Program: SAPLV09D
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SD_ADDRESS_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 'SD_ADDRESS_GET'"NOTRANSL: Lesen einer Adresse aus der ZAV.
EXPORTING
* FIF_ADDRESS_NUMBER = "
* FIF_PERSONAL_NUMBER = "
* FIF_ADDRESS_HANDLE = "
* FIF_ADDRESS_TYPE = "Address Category
* FIF_ADDRESS_INDICATOR = ' ' "
* FIF_READ_SADR_ONLY = ' ' "
* FIF_RELOAD_ENTRY = ' ' "
* FIF_LANGU = SY-LANGU "SAP System, Current Language
IMPORTING
FES_ADDRESS = "Address
FES_SDPARTNER_ADDRESS = "
EXCEPTIONS
ADDRESS_NOT_FOUND = 1 ADDRESS_TYPE_NOT_EXISTS = 2 NO_PERSON_NUMBER = 3
IMPORTING Parameters details for SD_ADDRESS_GET
FIF_ADDRESS_NUMBER -
Data type: ADDR3_SEL-ADDRNUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
FIF_PERSONAL_NUMBER -
Data type: ADDR3_SEL-PERSNUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
FIF_ADDRESS_HANDLE -
Data type: SZAD_FIELD-HANDLEOptional: Yes
Call by Reference: No ( called with pass by value option)
FIF_ADDRESS_TYPE - Address Category
Data type: SZAD_FIELD-ADDR_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
FIF_ADDRESS_INDICATOR -
Data type: ADRDADefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FIF_READ_SADR_ONLY -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FIF_RELOAD_ENTRY -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FIF_LANGU - SAP System, Current Language
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SD_ADDRESS_GET
FES_ADDRESS - Address
Data type: VBADROptional: No
Call by Reference: No ( called with pass by value option)
FES_SDPARTNER_ADDRESS -
Data type: SDPARTNER_ADDRESSOptional: No
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_TYPE_NOT_EXISTS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_PERSON_NUMBER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SD_ADDRESS_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_fes_address | TYPE VBADR, " | |||
| lv_address_not_found | TYPE VBADR, " | |||
| lv_fif_address_number | TYPE ADDR3_SEL-ADDRNUMBER, " | |||
| lv_fif_personal_number | TYPE ADDR3_SEL-PERSNUMBER, " | |||
| lv_fes_sdpartner_address | TYPE SDPARTNER_ADDRESS, " | |||
| lv_address_type_not_exists | TYPE SDPARTNER_ADDRESS, " | |||
| lv_no_person_number | TYPE SDPARTNER_ADDRESS, " | |||
| lv_fif_address_handle | TYPE SZAD_FIELD-HANDLE, " | |||
| lv_fif_address_type | TYPE SZAD_FIELD-ADDR_TYPE, " | |||
| lv_fif_address_indicator | TYPE ADRDA, " SPACE | |||
| lv_fif_read_sadr_only | TYPE XFELD, " SPACE | |||
| lv_fif_reload_entry | TYPE XFELD, " SPACE | |||
| lv_fif_langu | TYPE SY-LANGU. " SY-LANGU |
|   CALL FUNCTION 'SD_ADDRESS_GET' "NOTRANSL: Lesen einer Adresse aus der ZAV |
| EXPORTING | ||
| FIF_ADDRESS_NUMBER | = lv_fif_address_number | |
| FIF_PERSONAL_NUMBER | = lv_fif_personal_number | |
| FIF_ADDRESS_HANDLE | = lv_fif_address_handle | |
| FIF_ADDRESS_TYPE | = lv_fif_address_type | |
| FIF_ADDRESS_INDICATOR | = lv_fif_address_indicator | |
| FIF_READ_SADR_ONLY | = lv_fif_read_sadr_only | |
| FIF_RELOAD_ENTRY | = lv_fif_reload_entry | |
| FIF_LANGU | = lv_fif_langu | |
| IMPORTING | ||
| FES_ADDRESS | = lv_fes_address | |
| FES_SDPARTNER_ADDRESS | = lv_fes_sdpartner_address | |
| EXCEPTIONS | ||
| ADDRESS_NOT_FOUND = 1 | ||
| ADDRESS_TYPE_NOT_EXISTS = 2 | ||
| NO_PERSON_NUMBER = 3 | ||
| . " SD_ADDRESS_GET | ||
ABAP code using 7.40 inline data declarations to call FM SD_ADDRESS_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 ADDRNUMBER FROM ADDR3_SEL INTO @DATA(ld_fif_address_number). | ||||
| "SELECT single PERSNUMBER FROM ADDR3_SEL INTO @DATA(ld_fif_personal_number). | ||||
| "SELECT single HANDLE FROM SZAD_FIELD INTO @DATA(ld_fif_address_handle). | ||||
| "SELECT single ADDR_TYPE FROM SZAD_FIELD INTO @DATA(ld_fif_address_type). | ||||
| DATA(ld_fif_address_indicator) | = ' '. | |||
| DATA(ld_fif_read_sadr_only) | = ' '. | |||
| DATA(ld_fif_reload_entry) | = ' '. | |||
| "SELECT single LANGU FROM SY INTO @DATA(ld_fif_langu). | ||||
| DATA(ld_fif_langu) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects