Hi Dmirtii,
Sorry the confusion. The code you provided is fit for my solution but I am facing some issue in the code.
1. I have created am FM and executed the code but no messages in UI. So I checked that the inside the last method if_crm_ic_alert_service~send_alert_message the code is unable to fetch the session ID. Here do I need to put this code so that it will get the session ID? Is it from any method of UI component.
2. I guess this message will be only displayed to me as it will fetch my session ID.