!--a11y-->
Application Integration 
To define the objects and processes that SAP Event Management (SAP EM) is to track, you define the supply chain event management relevance (SCEM relevance) of individual application objects (see also Application Object Type). You also define which data the application system is to transfer to SAP EM for these objects (see also Data Transfer from the Application System). This might be parameters, expected events, or tracking IDs, for example. You report events for an object or process to SAP EM or the system does this. To do this, you define the SCEM relevance of the individual events in the application system (see also Event Type). SAP EM processes the events reported for the relevant event handler(s).
You have set up Customizing for SAP EM in the application system. You have made the following settings, for example:
● To create a physical connection between the application system and SAP EM, you have maintained the RFC connection from the application system to SAP EM.
● You have set up the logical system between the application system and SAP EM.
● You have specified one or more SAP EMs in the application system.
● You have specified the business process types in the application system.
● You have defined the application object types and event types in the application system.
● You have specified the conditions for SCEM relevance in the application system and assigned them to the application object types and event types.
● You have defined the function modules for extracting the following:
○ Parameters
○ Expected events
○ Tracking IDs
○ Query IDs
○ Event types
○ Actual events
For all the Customizing settings, see the Implementation Guide (IMG) for the application system under Integration with SAP Components ® Interface to Event Management.
...
1. You create or change a document in the application system and save it.
Documents or parts of documents are assigned to a business process type in a fixed way. In this way, the business process type is known to the system.
2. The application system executes the following for application objects and events:
Application Objects |
Events |
The system checks its list of application object types that belong to the business process type. ● If the system finds application object types that fit, it checks the conditions that have been defined for the respective application object types. These conditions specify the SCEM relevance of an application object. ● If it does not find an appropriate application object type, it writes a message in the application log and terminates the transaction. |
The system checks its list of event types that belong to the business process type. ● If the system finds event types that fit, it checks the conditions that have been defined for the respective event types. These conditions specify the SCEM relevance of an event. ● If it does not find an appropriate event type, it writes a message in the application log and terminates the transaction. |
The system notifies SAP EM of each application object for which the condition is fulfilled. |
The system notifies SAP EM of each event for which the condition is fulfilled. |
3. SAP EM creates one event handler for each application object or updates it (see also Event Handler Creation, Event Handler Updating). Furthermore, SAP EMalso creates a change document belonging to the event handler, as required.
4. SAP EM sends the event to each event handler in accordance with the assignment of the tracking ID and processes this event (see also Event Message Processing).
5. The extractors specified in the application object type transfer the SCEM-relevant data from the application objects and events to SAP EM.
The system has executed the following:
● Checked the SCEM relevance of your document or parts of it
● Created one or more event handlers in SAP EM, if required
● Sent the event message belonging to the event to SAP EM, where appropriate
