Function Modules for Deleting Addresses

You delete an address using the function module <type> _DELETE that is appropriate for the address type. To delete an address, you pass the associated where-used lists to the function module.

If you use function module <type> _DELETE although additional references for the address exist, the function module attempts to delete the reference(s) passed. It behaves like function modules <object> _REFERENCE_DELETE for deleting references.

Unlike function modules <object> __REFERENCE_DELETE , function modules <type> _DELETE do not issue an error message if the last reference is deleted together with the address.

The individual function modules behave as follows (compare BAS Tables):

Address data to be deleted

ADDR_DELETE

ADDR_PERSONAL_DELETE

ADDR_PERS_COMP_DELETE

Record in address table ( ADRC )

Deleted if only one reference is left for the address and no more persons are assigned (through address type 3).

Deleted if only one reference for the address record is left.

(Nothing to be deleted here, since the workplace address points to an existing company address.)

Record in assignment table ( ADCP )

 

Similar to ADRC record.

Deleted if only one reference to the person (type 3) is left.

Record in person table ( ADRP )

 

Deleted if only one reference to the person and only one assignment in ADCP (types 2/3) is left.

Deleted if only one reference to the person and only one assignment in ADCP (types 2/3) is left.