SAP ADDR_PERSONAL_MAINTAIN_COMPL Function Module for
ADDR_PERSONAL_MAINTAIN_COMPL is a standard addr personal maintain compl 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 maintain compl FM, simply by entering the name ADDR_PERSONAL_MAINTAIN_COMPL into the relevant SAP transaction such as SE37 or SE38.
Function Group: SZAE
Program Name: SAPLSZAE
Main Program: SAPLSZAE
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ADDR_PERSONAL_MAINTAIN_COMPL 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_MAINTAIN_COMPL'".
EXPORTING
UPDATEFLAG = "
ADDR2_COMPLETE = "
PERSON_GROUP = "Person Group
* SUBSTITUTE_ALL_COMM_DATA = ' ' "
* CHECK_ADDRESS = 'X' "Flag: Check address contents
* CONSIDER_CONSNUMBER_FOR_INSERT = ' ' "
* IV_TIME_DEPENDENT_COMM_DATA = ' ' "
IMPORTING
RETURNCODE = "
ADDR2_COMPLETE_OUT = "
TABLES
* ERROR_TABLE = "Table with errors, warnings, information
EXCEPTIONS
PARAMETER_ERROR = 1 ADDRESS_NOT_EXIST = 2 PERSON_NOT_EXIST = 3 HANDLE_EXIST = 4 INTERNAL_ERROR = 5
IMPORTING Parameters details for ADDR_PERSONAL_MAINTAIN_COMPL
UPDATEFLAG -
Data type: SZAD_FIELD-UPDATEFLAGOptional: No
Call by Reference: No ( called with pass by value option)
ADDR2_COMPLETE -
Data type: SZADR_ADDR2_COMPLETEOptional: No
Call by Reference: No ( called with pass by value option)
PERSON_GROUP - Person Group
Data type: ADRGP-PERS_GROUPOptional: No
Call by Reference: No ( called with pass by value option)
SUBSTITUTE_ALL_COMM_DATA -
Data type: SZAD_FIELD-FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHECK_ADDRESS - Flag: Check address contents
Data type: SZAD_FIELD-FLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CONSIDER_CONSNUMBER_FOR_INSERT -
Data type: SZAD_FIELD-FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_TIME_DEPENDENT_COMM_DATA -
Data type: AD_TIMEDEPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ADDR_PERSONAL_MAINTAIN_COMPL
RETURNCODE -
Data type: SZAD_FIELD-RETURNCODEOptional: No
Call by Reference: No ( called with pass by value option)
ADDR2_COMPLETE_OUT -
Data type: SZADR_ADDR2_COMPLETEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ADDR_PERSONAL_MAINTAIN_COMPL
ERROR_TABLE - Table with errors, warnings, information
Data type: ADDR_ERROROptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PARAMETER_ERROR - Incorrect parameter values
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ADDRESS_NOT_EXIST - Address does not exist
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)
HANDLE_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_MAINTAIN_COMPL 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_updateflag | TYPE SZAD_FIELD-UPDATEFLAG, " | |||
lt_error_table | TYPE STANDARD TABLE OF ADDR_ERROR, " | |||
lv_parameter_error | TYPE ADDR_ERROR, " | |||
lv_addr2_complete | TYPE SZADR_ADDR2_COMPLETE, " | |||
lv_address_not_exist | TYPE SZADR_ADDR2_COMPLETE, " | |||
lv_addr2_complete_out | TYPE SZADR_ADDR2_COMPLETE, " | |||
lv_person_group | TYPE ADRGP-PERS_GROUP, " | |||
lv_person_not_exist | TYPE ADRGP, " | |||
lv_handle_exist | TYPE ADRGP, " | |||
lv_substitute_all_comm_data | TYPE SZAD_FIELD-FLAG, " SPACE | |||
lv_check_address | TYPE SZAD_FIELD-FLAG, " 'X' | |||
lv_internal_error | TYPE SZAD_FIELD, " | |||
lv_consider_consnumber_for_insert | TYPE SZAD_FIELD-FLAG, " SPACE | |||
lv_iv_time_dependent_comm_data | TYPE AD_TIMEDEP. " SPACE |
  CALL FUNCTION 'ADDR_PERSONAL_MAINTAIN_COMPL' " |
EXPORTING | ||
UPDATEFLAG | = lv_updateflag | |
ADDR2_COMPLETE | = lv_addr2_complete | |
PERSON_GROUP | = lv_person_group | |
SUBSTITUTE_ALL_COMM_DATA | = lv_substitute_all_comm_data | |
CHECK_ADDRESS | = lv_check_address | |
CONSIDER_CONSNUMBER_FOR_INSERT | = lv_consider_consnumber_for_insert | |
IV_TIME_DEPENDENT_COMM_DATA | = lv_iv_time_dependent_comm_data | |
IMPORTING | ||
RETURNCODE | = lv_returncode | |
ADDR2_COMPLETE_OUT | = lv_addr2_complete_out | |
TABLES | ||
ERROR_TABLE | = lt_error_table | |
EXCEPTIONS | ||
PARAMETER_ERROR = 1 | ||
ADDRESS_NOT_EXIST = 2 | ||
PERSON_NOT_EXIST = 3 | ||
HANDLE_EXIST = 4 | ||
INTERNAL_ERROR = 5 | ||
. " ADDR_PERSONAL_MAINTAIN_COMPL |
ABAP code using 7.40 inline data declarations to call FM ADDR_PERSONAL_MAINTAIN_COMPL
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 UPDATEFLAG FROM SZAD_FIELD INTO @DATA(ld_updateflag). | ||||
"SELECT single PERS_GROUP FROM ADRGP INTO @DATA(ld_person_group). | ||||
"SELECT single FLAG FROM SZAD_FIELD INTO @DATA(ld_substitute_all_comm_data). | ||||
DATA(ld_substitute_all_comm_data) | = ' '. | |||
"SELECT single FLAG FROM SZAD_FIELD INTO @DATA(ld_check_address). | ||||
DATA(ld_check_address) | = 'X'. | |||
"SELECT single FLAG FROM SZAD_FIELD INTO @DATA(ld_consider_consnumber_for_insert). | ||||
DATA(ld_consider_consnumber_for_insert) | = ' '. | |||
DATA(ld_iv_time_dependent_comm_data) | = ' '. | |||
Search for further information about these or an SAP related objects