Access to BAS Addresses

Working with the Buffer

Normally, addresses are part of an application object. To keep data consistent, you must update the address data together with the data of the application object. This is made possible by means of a buffer that manages all addresses on the application server until they are updated in the database. This buffer is provided in function group SZA0 and is referred to as the local memory.

Identifying Addresses

Using Handles to Access the Buffer

Applications use function modules to access BAS addresses. If an application has not saved an address to the database, the application refers to an address handle. This handle identifies an address that is usually just being entered in the local memory (for example, on a subscreen in the application program). The application developer is responsible for assigning these address handles.

See also: Creation of Addresses.

Using Address Numbers to Access the Buffer

Before an application can save an address to the database, it must convert the associated address handle into an address number. This address number is then used as a database key for the address. As soon as the application is assigned a number for an address, the handle loses its significance. From then on, the address is only accessed by using its address number. However, you use the same function modules (there are parameters in the function module interface for both address handles and address numbers).

If the application uses the address number to access an address, this does not mean that operations are executed directly in the database. All function modules of function group SZA0 operate on the local memory. To copy the changes to the database, the BAS provide function modules in function group SZA0.

Address and Application Object

The application links the address to the application object through its address number. To do this, the application adds a field (address type 1) to its application table by saving the address number after it has been assigned. For address types 2 and 3, the application needs two fields since both the key for the person and the key for the address are stored in the table record.

For more information on the steps an application must perform to maintain addresses using the BAS, see Maintenance of Addresses.