SAP ADDR_PERSONAL_GET_ALL Function Module for









ADDR_PERSONAL_GET_ALL is a standard addr personal get all 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 addr personal get all FM, simply by entering the name ADDR_PERSONAL_GET_ALL into the relevant SAP transaction such as SE37 or SE38.

Function Group: SZA0
Program Name: SAPLSZA0
Main Program: SAPLSZA0
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ADDR_PERSONAL_GET_ALL 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 'ADDR_PERSONAL_GET_ALL'"
EXPORTING
ADDRESS_PERSONAL_SELECTION = "
* READ_TEXTS = ' ' "
* IV_CURRENT_COMM_DATA = ' ' "

IMPORTING
RETURNCODE = "Return code: ' '(ok), 'I'nfo, 'W'arning, 'E'rror

TABLES
* ADDRESS_PERSONAL_VALUE = "
* ADDRESS_PERSONAL_INFO = "
* ERROR_TABLE = "Table with errors, warnings, information
* ADDRESS_PERSONAL_TEXT = "Text for key fields (language = SY-LANGU)

EXCEPTIONS
PARAMETER_ERROR = 1 PERSON_NOT_EXIST = 2 VERSION_NOT_EXIST = 3 INTERNAL_ERROR = 4
.



IMPORTING Parameters details for ADDR_PERSONAL_GET_ALL

ADDRESS_PERSONAL_SELECTION -

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

READ_TEXTS -

Data type: SZAD_FIELD-FLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_CURRENT_COMM_DATA -

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

EXPORTING Parameters details for ADDR_PERSONAL_GET_ALL

RETURNCODE - Return code: ' '(ok), 'I'nfo, 'W'arning, 'E'rror

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

TABLES Parameters details for ADDR_PERSONAL_GET_ALL

ADDRESS_PERSONAL_VALUE -

Data type: ADDR2_VAL
Optional: Yes
Call by Reference: Yes

ADDRESS_PERSONAL_INFO -

Data type: AD2_FLAGS
Optional: Yes
Call by Reference: Yes

ERROR_TABLE - Table with errors, warnings, information

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

ADDRESS_PERSONAL_TEXT - Text for key fields (language = SY-LANGU)

Data type: ADDR2_TEXT
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

PARAMETER_ERROR - Incorrect parameter values

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

PERSON_NOT_EXIST -

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

VERSION_NOT_EXIST - International version of the address does not exist

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

INTERNAL_ERROR - Serious internal error (MESSAGE A...)

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

Copy and paste ABAP code example for ADDR_PERSONAL_GET_ALL 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_returncode  TYPE SZAD_FIELD-RETURNCODE, "   
lv_parameter_error  TYPE SZAD_FIELD, "   
lt_address_personal_value  TYPE STANDARD TABLE OF ADDR2_VAL, "   
lv_address_personal_selection  TYPE ADDR2_SEL, "   
lv_read_texts  TYPE SZAD_FIELD-FLAG, "   SPACE
lv_person_not_exist  TYPE SZAD_FIELD, "   
lt_address_personal_info  TYPE STANDARD TABLE OF AD2_FLAGS, "   
lt_error_table  TYPE STANDARD TABLE OF ADDR_ERROR, "   
lv_version_not_exist  TYPE ADDR_ERROR, "   
lv_iv_current_comm_data  TYPE XFELD, "   SPACE
lv_internal_error  TYPE XFELD, "   
lt_address_personal_text  TYPE STANDARD TABLE OF ADDR2_TEXT. "   

  CALL FUNCTION 'ADDR_PERSONAL_GET_ALL'  "
    EXPORTING
         ADDRESS_PERSONAL_SELECTION = lv_address_personal_selection
         READ_TEXTS = lv_read_texts
         IV_CURRENT_COMM_DATA = lv_iv_current_comm_data
    IMPORTING
         RETURNCODE = lv_returncode
    TABLES
         ADDRESS_PERSONAL_VALUE = lt_address_personal_value
         ADDRESS_PERSONAL_INFO = lt_address_personal_info
         ERROR_TABLE = lt_error_table
         ADDRESS_PERSONAL_TEXT = lt_address_personal_text
    EXCEPTIONS
        PARAMETER_ERROR = 1
        PERSON_NOT_EXIST = 2
        VERSION_NOT_EXIST = 3
        INTERNAL_ERROR = 4
. " ADDR_PERSONAL_GET_ALL




ABAP code using 7.40 inline data declarations to call FM ADDR_PERSONAL_GET_ALL

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 RETURNCODE FROM SZAD_FIELD INTO @DATA(ld_returncode).
 
 
 
 
"SELECT single FLAG FROM SZAD_FIELD INTO @DATA(ld_read_texts).
DATA(ld_read_texts) = ' '.
 
 
 
 
 
DATA(ld_iv_current_comm_data) = ' '.
 
 
 


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!