we have upgraded from CRM 4.0 to 5.0. After this, our custom alerts don't work anymore. There are dozens of good threads about alerts, but as far as I can see, we have done all the steps required. Still, the alerts don't work, and I fail to see why.
According to my debugging and troubleshooting, the basic problem is that our Z-class event listener does not react to the event 'BPConfirmed'.
I put a breakpoint into the constructor of the Z-class. The key statement is
event_service->subscribe( event_name = if_crm_ic_events_con=>gc_bpconfirmed listener = me ).
By debugging, I see that the class subscribes successfully to the event 'BPConfirmed'.
Nevertheless, I also saw that when the event 'BPConfirmed' is actually triggered in
CL_CRM_IC_EVENT_SRV METHOD IF_CRM_IC_EVENT_SRV~RAISE
the key statement
call method lv_listener->handle_event( event ).
is not executed for our Z-class. I went through the loop and saw that lv_listener never has the value of our Z-class. It looks as if the system would forget the subscription.
I also have a breakpoint in the method
of our Z-class. The program never stops there, so indeed it seems that the subscription is unsuccessful.
Why is the event handler method of our Z-class not called?