Alternative to this solution check out How to - Show user and system name on top of WebUi page.
Another alternative is OSS Note 2139001 - Header System Information
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>
13 Comments
Unknown User (101uihbsj)
Hello Uma,
is it possible to add a screenshot how the result will look like?
Thank you
Best regards
Manfred
Gregor Wolf
Hi Manfred,
I hope the screen shot I've just added is still helpful.
Best regards
Gregor
Unknown User (ah3fpy7)
Easy and usefull.
Thank's Gregor!
Gregor Wolf
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
Wolfgang Mayer
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
Gregor Wolf
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
Wolfgang Mayer
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
Unknown User (d3jfzqo)
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
Gregor Wolf
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.
Former Member
Thanks yaar..
Its very helpfull to me.
Regards
Vijay
Former Member
Hi Gregor
Steps 6 - 8 are now missing the code
All I'm seeing are "Unknown macro: 'code'
Would it be possible for this neat wiki to be updated
Many Thanks
Arden Stricke
Andrei Vishnevsky
Hi Arden,
seems to be an issue only in Chrome. In IE11 and in FF works well - the code is visible.
Dhruvin Mehta
Implement note 2139001