In recent posts, I described how you can influence the working of the interaction center. For instance, using IDI, you can influence the screenflow and raise alerts.
IDI actually uses a function in the interaction center called IC events (Interaction Center Events).
The events are raised when certain situations occur, for instance ‘Businesspartner confirmed’ or Contact Ended’.
There are two ways you can influence the working of the IC webclient using IC Events with ABAP coding.
- Raise an event.
- Subscribe to an event.
Of course, it is not recommended to raise a standard SAP event in coding unless you are perfectly positive this is what you need, as you are bound to run into unwanted side effects (imagine raising the contact ended event while this is not the case).
You can of course very well combine the two. Raise a custom event which you have subscribed your custom event handler to.
If you want to determine which events are raised in which order at which time, you can put a breakpoint in CL_CRM_IC_EVENT_SRV->IF_CRM_IC_EVENT_SRV~RAISE.
This is actually a good starting point to explain how this works.