Deleting Addresses with One or More Owners

Background

When assigning the address/person number, BAS automatically set the parameter OWNER , making the application object that creates the address the owner of the address. The associated where-used list therefore is an owner reference. In addition to this reference, other applications can add owner or usage references for the same address:

The graphic shows a sample scenario of where-used lists for an address of type 1, 2 and 3 (address types 1 and 3 are grouped together).

For addresses of type 1 (type 3), you must create a where-used list in ADRV ( ADRVP ). In the graphic, there are two owner references and other usage references.

For a personal address (address type 2), you must create an entry in both ADRV and ADRVP . In the graphic, one owner reference and other usage references have been created for the address.

Prerequisites

Before the address can be deleted, all additional references must be deleted (see Function Modules for Deleting References). The last reference left must be an owner reference.

Process Flow

  1. Applications that hold usage references to the address use function module <object> _REFERENCE_DELETE to delete the record in your application table that points to the address.
  2. Applications that want to delete the address use function module <type> _DELETE .
  3. Save the changes to the database using function module ADDR_MEMORY_SAVE .