SAP ADDR_PERSONAL_COPY_COMPLETE Function Module for









ADDR_PERSONAL_COPY_COMPLETE is a standard addr personal copy complete 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 copy complete FM, simply by entering the name ADDR_PERSONAL_COPY_COMPLETE 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_COPY_COMPLETE 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_COPY_COMPLETE'"
EXPORTING
* IV_OLD_ADDRESS_HANDLE = "
* IS_PERSON_REFERENCE = "
* IV_GET_NUMBER = ' ' "
* IV_NUMBERRANGE_NUMBER = '01' "
* IV_CHECK_ADDRESS = ' ' "Flag: Check address contents
* IV_OWNER = 'X' "
* IV_OLD_ADDRESS_NUMBER = "
* IV_OLD_PERSON_HANDLE = "
* IV_OLD_PERSON_NUMBER = "
IV_ADDRESS_HANDLE = "
* IS_ADDRESS_REFERENCE = "Address Reference
* IV_PERSON_NUMBER = "
* IV_PERSON_HANDLE = "
* IV_PERSON_GROUP = "

IMPORTING
ES_ADDR2_COMPLETE = "
EV_RETURNCODE = "
EV_RETURNCODE_NUMBERRANGE = "

TABLES
* ET_ERROR = "Table with errors, warnings, information

EXCEPTIONS
PARAMETER_ERROR = 1 OLD_ADDRESS_NOT_EXIST = 2 OLD_PERSON_NOT_EXIST = 3 HANDLE_EXIST = 4 INTERNAL_ERROR = 5
.



IMPORTING Parameters details for ADDR_PERSONAL_COPY_COMPLETE

IV_OLD_ADDRESS_HANDLE -

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

IS_PERSON_REFERENCE -

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

IV_GET_NUMBER -

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

IV_NUMBERRANGE_NUMBER -

Data type: INRI-NRRANGENR
Default: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_CHECK_ADDRESS - Flag: Check address contents

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

IV_OWNER -

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

IV_OLD_ADDRESS_NUMBER -

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

IV_OLD_PERSON_HANDLE -

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

IV_OLD_PERSON_NUMBER -

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

IV_ADDRESS_HANDLE -

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

IS_ADDRESS_REFERENCE - Address Reference

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

IV_PERSON_NUMBER -

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

IV_PERSON_HANDLE -

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

IV_PERSON_GROUP -

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

EXPORTING Parameters details for ADDR_PERSONAL_COPY_COMPLETE

ES_ADDR2_COMPLETE -

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

EV_RETURNCODE -

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

EV_RETURNCODE_NUMBERRANGE -

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

TABLES Parameters details for ADDR_PERSONAL_COPY_COMPLETE

ET_ERROR - Table with errors, warnings, information

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

EXCEPTIONS details

PARAMETER_ERROR - Parameter Error

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

OLD_ADDRESS_NOT_EXIST - Address does not exist

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

OLD_PERSON_NOT_EXIST -

Data type:
Optional: No
Call by Reference: Yes

HANDLE_EXIST -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR - Internal Error

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

Copy and paste ABAP code example for ADDR_PERSONAL_COPY_COMPLETE 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:
lt_et_error  TYPE STANDARD TABLE OF ADDR_ERROR, "   
lv_parameter_error  TYPE ADDR_ERROR, "   
lv_es_addr2_complete  TYPE SZADR_ADDR2_COMPLETE, "   
lv_iv_old_address_handle  TYPE AD_HANDLE, "   
lv_is_person_reference  TYPE PERS_REF, "   
lv_iv_get_number  TYPE XFELD, "   SPACE
lv_iv_numberrange_number  TYPE INRI-NRRANGENR, "   '01'
lv_iv_check_address  TYPE XFELD, "   SPACE
lv_iv_owner  TYPE XFELD, "   'X'
lv_ev_returncode  TYPE AD_RETCODE, "   
lv_iv_old_address_number  TYPE AD_ADDRNUM, "   
lv_old_address_not_exist  TYPE AD_ADDRNUM, "   
lv_iv_old_person_handle  TYPE AD_HANDLE, "   
lv_old_person_not_exist  TYPE AD_HANDLE, "   
lv_ev_returncode_numberrange  TYPE INRI-RETURNCODE, "   
lv_handle_exist  TYPE INRI, "   
lv_iv_old_person_number  TYPE AD_PERSNUM, "   
lv_internal_error  TYPE AD_PERSNUM, "   
lv_iv_address_handle  TYPE AD_HANDLE, "   
lv_is_address_reference  TYPE ADDR_REF, "   
lv_iv_person_number  TYPE AD_PERSNUM, "   
lv_iv_person_handle  TYPE AD_HANDLE, "   
lv_iv_person_group  TYPE AD_GROUP_P. "   

  CALL FUNCTION 'ADDR_PERSONAL_COPY_COMPLETE'  "
    EXPORTING
         IV_OLD_ADDRESS_HANDLE = lv_iv_old_address_handle
         IS_PERSON_REFERENCE = lv_is_person_reference
         IV_GET_NUMBER = lv_iv_get_number
         IV_NUMBERRANGE_NUMBER = lv_iv_numberrange_number
         IV_CHECK_ADDRESS = lv_iv_check_address
         IV_OWNER = lv_iv_owner
         IV_OLD_ADDRESS_NUMBER = lv_iv_old_address_number
         IV_OLD_PERSON_HANDLE = lv_iv_old_person_handle
         IV_OLD_PERSON_NUMBER = lv_iv_old_person_number
         IV_ADDRESS_HANDLE = lv_iv_address_handle
         IS_ADDRESS_REFERENCE = lv_is_address_reference
         IV_PERSON_NUMBER = lv_iv_person_number
         IV_PERSON_HANDLE = lv_iv_person_handle
         IV_PERSON_GROUP = lv_iv_person_group
    IMPORTING
         ES_ADDR2_COMPLETE = lv_es_addr2_complete
         EV_RETURNCODE = lv_ev_returncode
         EV_RETURNCODE_NUMBERRANGE = lv_ev_returncode_numberrange
    TABLES
         ET_ERROR = lt_et_error
    EXCEPTIONS
        PARAMETER_ERROR = 1
        OLD_ADDRESS_NOT_EXIST = 2
        OLD_PERSON_NOT_EXIST = 3
        HANDLE_EXIST = 4
        INTERNAL_ERROR = 5
. " ADDR_PERSONAL_COPY_COMPLETE




ABAP code using 7.40 inline data declarations to call FM ADDR_PERSONAL_COPY_COMPLETE

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.

 
 
 
 
 
DATA(ld_iv_get_number) = ' '.
 
"SELECT single NRRANGENR FROM INRI INTO @DATA(ld_iv_numberrange_number).
DATA(ld_iv_numberrange_number) = '01'.
 
DATA(ld_iv_check_address) = ' '.
 
DATA(ld_iv_owner) = 'X'.
 
 
 
 
 
 
"SELECT single RETURNCODE FROM INRI INTO @DATA(ld_ev_returncode_numberrange).
 
 
 
 
 
 
 
 
 


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!