In this optional step, you register the event handler function for the relevant object
types if you wish notifications to be triggered by changes to a business object (change
documents).
Prerequisites
These steps must be executed on the back-end server.
Procedure
-
In Customizing for SAP NetWeaver, choose (or run transaction
SWEC).
-
Choose the appropriate combination of change document type and business object
type, or enter a new combination for the object type you want.
Note
The change document type can be found in transaction
SCDO.
-
Choose the event that will act as a trigger.
-
In the Event Container field, enter the event handler
function CLB2_CD_NOTIFICATION_SEND, or any other function
that has been specified by your application.
-
Enter the business object type that corresponds to your change document type. It must be
the same type that you used before in Registering OData Service. This business object type
is typically referred to as well in the filter condition of the subscriptions
for this service.
-
Save your changes.
-
In transaction SE16, access table
SWECDOBJ.
-
Edit the entry that you created in transaction
SWEC, ensuring that the
FBTYP field is set to N.
-
Save your changes.
Results
You have registered the event handler and completed all configuration tasks for your
Sending Notifications scenario.