Welcome User Message in Web UI

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.

  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>
    

Labels

welcome welcome Delete
user user Delete
message message Delete
crm crm Delete
webclient webclient Delete
webui webui Delete
header header Delete
title title Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.