Alternative to this solution check out How to - Show user and system name on top of WebUi page.
In order to obtain the Welcome User message once the user logs in, the following steps could be followed.
Create a package for the text welcome.
- Go to transaction sotr_edit.
- Create text, with an existing package name.
- Click on transport
- Now Enhance component CRMCMP_HDR_STD
- Enhance the view CRMCMP_HDR_STD/Message
- Define a new attribute in the enhanced Implementation class as follows
- Redefine the DO_INIT method as follows
- Goto Message.htm and add the following code