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
- Go to Define Layout Components and note down the application name.
- Customer Relationship Management->UI Framework->Technical Role Definition->Define Layout Components
- 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 %> <%= lv_last_name %>
</div>
Be the first to leave a comment
You must be Logged on to comment or reply to a post.