In a particular application, you want to be able to continue processing indexes after another component has saved data (in other words, the system should allow you to use an add-in after saving). Since this point in time can be useful for different purposes, you can create an enhancement here that can be used by multiple subscribers.
To create a multiple-use Business Add-In, proceed as follows:
11. 1. Define an add-in and select the Multiple Use checkbox from the Administration tab.
12. 2. Define an interface with the method OBJECT_SAVED'and the importing parameter OBJECTNAME.
Calling your enhancement in the application program:
data exit_obj type ref to if_ex_event.
call method cl_exithandler =>get_instance
changing instance = exit.
form save_object using obj_name type c.
call method exit_obj->object_saved
exporting objectname = obj_name.
For the caller it is irrelevant whether (and how many) subscribers use the event as a starting point for further actions. The active implementations are called in the adapter method.