Alternative to this solution check out How to - Show user and system name on top of WebUi page.
Preview![]() |
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
USER_FULLNAME Instance Attribute Public Type String. - Redefine the DO_INIT method as follows
METHOD DO_INIT. DATA:LT_USR03 TYPE USR03. CALL FUNCTION 'SUSR_USER_ADDRESS_READ' EXPORTING USER_NAME = SY-UNAME IMPORTING USER_USR03 = LT_USR03 EXCEPTIONS USER_ADDRESS_NOT_FOUND = 1 OTHERS = 2. IF SY-SUBRC = 0. CONCATENATE LT_USR03-NAME1 LT_USR03-NAME2 INTO USER_FULLNAME SEPARATED BY SPACE. ENDIF. ENDMETHOD. - Goto Message.htm and add the following code
<%@page language="abap"%> <%@ extension name="htmlb" prefix="htmlb"%> <%@ extension name="xhtmlb" prefix="xhtmlb"%> <%@ extension name="crm_bsp_ic" prefix="crmic"%> <%@ extension name="bsp" prefix="bsp"%> <table cellspacing="0" cellpadding="0" style="height:100%;" class="th-l-commandcenter"> <tr valign="top"> <td class="th-l-commandcentercell"> <%= otr(SBSP_RUNTIME/SYSTEM_WELCOME) %> <%= controller->user_fullname %> </td> </tr> </table>

Comments (9)
Sep 01, 2009
Manfred Feger says:
Hello Uma, is it possible to add a screenshot how the result will look like? ...Hello Uma,
is it possible to add a screenshot how the result will look like?
Thank you
Best regards
Manfred
Oct 22, 2010
Gregor Wolf says:
Hi Manfred, I hope the screen shot I've just added is still helpful. Best rega...Hi Manfred,
I hope the screen shot I've just added is still helpful.
Best regards
Gregor
Dec 17, 2010
Marat Akhmetzyanov says:
Easy and usefull. Thank's Gregor!Easy and usefull.
Thank's Gregor!
Dec 17, 2010
Gregor Wolf says:
Hi Marat, the thank should go to Uma Thirugnanam who initialy created this how ...Hi Marat,
the thank should go to Uma Thirugnanam who initialy created this how to page. I've just added the screen shot and cleaned up the code.
Best regards
Gregor
Oct 18, 2011
Wolfgang Mayer says:
Hi, would it be possible to add a (dynamically generated) hyperlink there as we...Hi,
would it be possible to add a (dynamically generated) hyperlink there as well? I'm thinking about a text like "You've got a new tasks assigned --> click here" and when you click word "here" (which would be a hyperlink then), the corresponding task will be opened in the workarea below?
Thanks & regards
Wolfgang
Oct 18, 2011
Gregor Wolf says:
Hi Wolfgang, I don't think that a link should be provided in the header area. T...Hi Wolfgang,
I don't think that a link should be provided in the header area. The main problem I see here is how would you update the area when the user has checked the new task. For new tasks the asignment block "My Open Tasks" should be enough.
Best regards
Gregor
Oct 18, 2011
Wolfgang Mayer says:
Hi Gregor, thanks for your reply. The example with the task was only for clarif...Hi Gregor,
thanks for your reply. The example with the task was only for clarification, we've got a couple of ideas we'd present there. Despite this, do you happen to know how the link could work, means, showing the content in the workarea -> same as when clicking "Personalization"?
Regards
Wolfgang
Nov 10, 2011
chandrakantklk says:
HI, I followed the steps in both the links. But ended up with nothing in both ...HI,
I followed the steps in both the links. But ended up with nothing in both
Please tell me if i have to do anything else
Regards
Chandrakant kulkarni
Nov 10, 2011
Gregor Wolf says:
I face also the problem when implementing it in CRM 7.0 EhP1 and running it on I...I face also the problem when implementing it in CRM 7.0 EhP1 and running it on Internet Explorer. In Firefox it works fine. So that seems to be an issue with the Stylesheet. Perhaps you're able to solve it and update the Wiki page.