Hi Pratham,
Not pretty sure whether it works but maybe you can check out this BADI BB_ALERTING. You have to activate the BADI and accordingly work with the events to determine what to trigger incase of certain situation.
You can check the wiki for more information
Regards
Pramod