Business transaction processing is controlled by the event handler, which enables communication between interrelated subobjects.
When an event is triggered by a subobject, the event handler finds the callbacks that are registered for this event, and executes the corresponding function modules (callbacks) for event handling at the defined time and with the defined priority. The event handler is called when business transactions are edited or saved, but not when they are displayed.
event handler处理event的触发,event和callbaks(FM)之间会有维护关联的关系。下面提到 tables CRMC_EVENT_CALL
and CRMV_EVENT_CUST
Features
-
Predefined events and callbacks
SAP predefines the events that are published by subobjects, and the callbacks for these events. This is done in transaction
CRMV_EVENT
. The system table isCRMC_EVENT_CALL
.For detailed information about the various parameters involved in callback registration, for example, the execution time, see the documentation linked to this transaction.
-
Customer-defined events and callbacks
Customers can register additional callbacks in Customizing for
Customer Relationship Management
, under . The Customizing table isCRMV_EVENT_CUST
.For more information, see the documentation for the above Customizing activity.
During processing, the event handler searches for entries in tables CRMC_EVENT_CALL
and CRMV_EVENT_CUST
. If entries exist in the tables, the entries in both tables are analyzed and sorted according to the priority and name of the function module.