The interesting function module name is ‘TH_POPUP’.
For this you and your friend should be logged on into the SAP system and you must know the SAP user id of your friend to whom you are going to send the message.
Please go through this and enjoy chatting with your friends while working on SAP system.
1. Go to transaction SE37 and enter the function module name TH_POPUP.