Function Module ADDR_COMM_DATA_VALIDITY_CHANGE

The function module ADDR_COMM_DATA_VALIDITY_CHANGE adjusts the validity period of the communication data to the changed validity period of the main address. The address, the old validity period, and the new validity period are transferred to the function module.

Structure

IMPORTING

IV_ADDRESS_TYPE  

TYPE

AD_ADRTYPE

IV_ADDRESS_HANDLE

TYPE

AD_HANDLE

IV_ADDRESS_NUMBER

TYPE

AD_ADDRNUM

IV_PERSON_HANDLE

TYPE

AD_HANDLE

IV_PERSON_NUMBER 

TYPE

AD_PERSNUM

IV_VALID_FROM_OLD

TYPE

AD_VALFROM

IV_VALID_TO_OLD  

TYPE

AD_VALTO

IV_VALID_FROM_NEW

TYPE

AD_VALFROM

IV_VALID_TO_NEW  

TYPE

AD_VALTO

EXPORTING

EV_RETURNCODE    

TYPE

AD_RETCODE

TABLES

ET_ERROR         

STRUCTURE

ADDR_ERROR

EXCEPTIONS

ADDRESS_NOT_EXIST

PARAMETER_ERROR

INTERNAL_ERROR

Data Alignment

The alignment process follows the following schema:

·        If the start time of the number validity matches the start time of the old address validity, then the new start time of the number validity is the same as the new start time of the address validity.

·        If the end time of the number validity matches the end time of the old address validity, then the new end time of the number validity is the same as the new end time of the address validity.

·        In all other cases, the start and end time of the time validity of the address is left unchanged if possible, and is adjusted accordingly if the new validity period is smaller than the old validity period.