Quantcast
Channel: SCN : Document List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 189

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

$
0
0
  • 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

img1.png


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

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

 

img3.png


Viewing all articles
Browse latest Browse all 189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>