Registration

Dear SAP Community Member,
In order to fully benefit from what the SAP Community has to offer, please register at:
http://scn.sap.com
Thank you,
The SAP Community team.
Skip to end of metadata
Go to start of metadata

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.

  1. Go to transaction sotr_edit.
  2. Create text, with an existing package name.
  3. Click on transport
  4. Now Enhance component CRMCMP_HDR_STD
  5. Enhance the view CRMCMP_HDR_STD/Message
  6. Define a new attribute in the enhanced Implementation class as follows
    USER_FULLNAME     Instance Attribute Public Type    String. 
    
  7. 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.
    
  8. 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

  1. Guest

    Hello Uma,

    is it possible to add a screenshot how the result will look like?

    Thank you

    Best regards

    Manfred

  2. Hi Manfred,

    I hope the screen shot I've just added is still helpful.

    Best regards
    Gregor

  3. Guest

    Easy and usefull.

    Thank's  Gregor!

  4. 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

  5. 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

  6. 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

  7. 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

  8. Guest

    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

  9. 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.

  10. Former Member

    Thanks yaar..

    Its very helpfull to me.

    Regards

    Vijay

  11. 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

    1. Hi Arden,

      seems to be an issue only in Chrome. In IE11 and in FF works well - the code is visible.

  12. Implement note 2139001