Skip to Content
Author's profile photo Former Member

How to display logged in user name and other details on top of WEB UI page

  • Find out the Layout Profile which is assigned to your Business Role.
  • Open Layout Profile and find out Global Function Comp Id.
    • Customer Relationship Management->UI Framework->Technical Role Definition->Define Layout Profile

/wp-content/uploads/2014/11/img1_595380.png


  • Go to Define Layout Components and note down the application name.
    • Customer Relationship Management->UI Framework->Technical Role Definition->Define Layout Components

/wp-content/uploads/2014/11/img2_595382.png

  • In default layout profile
    • Global Function Comp Id is ‘HDRGLOBALFUNCTIONS‘   
    • Application assigned to comp id is ‘CRMCMP_HDR_STD’
  • Then go to T-Code: BSP_WD_CMPWB.
  • Enhance the component CRMCMP_HDR_STD.
  • Enhance the View CRMCMP_HDR_STD/Message.
  • Write the code in .htm page to display the required details.
  • Get User First name and Last name.

<%

DATA: lv_first_name type string value ‘Ankit’,

       lv_last_name type string value ‘Gupta’.

%>

<div id=“messageContainer”>

Logged in user: <%= sy-uname %> <BR/>

Name: <%= lv_first_name %> &nbsp;<%= lv_last_name %>

</div>

/wp-content/uploads/2014/11/img3_595396.png

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.