Business Add-In ADDRESS_UPDATE

The business add-in ADDRESS_UPDATE is a multiple use business add-in. It enables all types of software layers to react to changes to address data. It is not possible to change data in Business Address Services using exporting or changing parameters of the business add-in methods.

This business add-in is provided, above all, to update the search index for the duplicate check: The current update of the search index through the implementation of the BAdI ADDRESS_UPDATE is the prerequisite for the use of the business add-in ADDRESS_SEARCH. The methods of ADDRESS_UPDATE are defined according to the three address types:

  • ADDRESS1_SAVED
  • ADDRESS2_SAVED
  • ADDRESS3_SAVED
  • FINISHED

The methods ADDRESS1_SAVED, ADDRESS2_SAVED, and ADDRESS3_SAVED of the BAdI are called within the function modules ADDR_MEMORY_SAVE and ADDR_SINGLE_SAVE. These function modules of Business Address Services are each called at the end of a transaction by the application program in order to save the BAS data to the database. Usually, only one of the function modules is called in an application transaction.

Changes to address data in Business Address Services can only be made using these function modules. This ensures that each implementation of the BAdI ADDRESS_UPDATE is informed of all changes to BAS data.

In this process, the function module ADDR_SINGLE_SAVE always saves one address and the function module ADDR_MEMORY_SAVE saves all changes made in the course of the transaction.

Since updating the search index usually involves a Remote Function Call, it is always better to update data in a package. The method FINISHED has been implemented for this purpose and is called at the end of both the function modules ADDR_MEMORY_SAVE and ADDR_SINGLE_SAVE.