Function Modules for Deleting References
BAS provide two function modules for deleting references
:
Function module ADDR_REFERENCE_DELETE deletes entries from ADRV, that is, where-used lists for address types 1 and 2.
Function module ADDR_PERSON_REFERENCE_DELETE deletes entries from ADRVP, that is, where-used lists for address types 2 and 3.
The function modules delete owner references only if other owner references exist for the same address or person. A usage reference is deleted if other references exist for the address or person (regardless of whether these are owner or usage references). If the prerequisites for deleting a reference are not fulfilled, BAS return an error message.
BAS checks thus ensure that an address can be deleted because either:
Another owner reference exists (for addresses with one or more owners) or
Another usage reference exists (for addresses without owners)
(See the relevant section).