Welcome Message PHHS Overview Guidance Counselor Message Questions and Answers.
Welcome User Message in Web UI
Transcript of Welcome User Message in Web UI
Welcome User Message in Web UI
Incorporating the Welcome Message
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
8. METHOD DO_INIT.
9.
10. DATA:LT_USR03 TYPE USR03.
11.
12. CALL FUNCTION 'SUSR_USER_ADDRESS_READ'
13. EXPORTING
14. USER_NAME = SY-UNAME
15. IMPORTING
16. USER_USR03 = LT_USR03
17. EXCEPTIONS
18. USER_ADDRESS_NOT_FOUND = 1
19. OTHERS = 2.
20.
21. IF SY-SUBRC = 0.
22. CONCATENATE LT_USR03-NAME1 LT_USR03-NAME2 INTO USER_FULLNAME SEPARATED
BY SPACE.
23. ENDIF.
ENDMETHOD.
24. Goto Message.htm and add the following code
25. <%@page language="abap"%>
26. <%@ extension name="htmlb" prefix="htmlb"%>
27. <%@ extension name="xhtmlb" prefix="xhtmlb"%>
28. <%@ extension name="crm_bsp_ic" prefix="crmic"%>
29. <%@ extension name="bsp" prefix="bsp"%>
30. <br />
31. <center>
32. <font type = 'Arial' size = 3 >
33. <b>
34. <div id="messageContainer" class="ZCRMCMP_HDR_STD">
35. <%= otr(ZPackage/Aliasname) %>
36. <%= controller->user_fullname %>
37. </div>
38. </b>
39. </font>
</center>