on 01-07-2008 3:35 PM
Hi ,
I need to make some changes on welcome message, in portal.
I already identify the par file that i need to change (com.sap.portal.navigation.masthead), and the JSP file (HeaderiView.jsp).
The questions are:
1- How can i add some fields to the welcome message, with information from Infotypes (R/3)? Can i "control" the connection to the R/3 in this HeaderiView.jsp?
2- Can i acess to the code of "com.sapportals.portal.prt.session.IUserContext", that is imported in HeaderiView.jsp, in order to know which methods this class has and use them?
Thanks in advance,
Regards
> 1- How can i add some fields to the welcome message, with information from Infotypes (R/3)? Can i "control" the connection to the R/3 in this HeaderiView.jsp?
You can control the connection to R3 using either Jco or Connector framework API's. They are simple; search them on sdn for more. But you can only retrieve data from R/3 if the same is exposed via a RFC/BAPI.
> 2- Can i acess to the code of "com.sapportals.portal.prt.session.IUserContext", that is imported in HeaderiView.jsp, in order to know which methods this class has and use them?
You will need to make an object of class IUserContext in order to access any methods
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for your replies.
Prem Mascarenhas, about the 2nd answer... Yes, creating an object of that class i can use methods of it, but can i know which methods this class has?
For example, it has the methods getFirstName() and getLastName() of a user, because i can see them on the code. But i would like to know if there is any method called getPERNR(), for example;
So, can i acess to a list of methods of this class?
Thanks a lot!
Luis
Over here https://help.sap.com/javadocs/NW04S/current/ep/index.html
But I dont think theres anything like getPERNR...
Hope this helps.
look at this function module to get the pernr of the person who logged in
CRIF_GET_EMPLOYEE_FOR_USER
and below link to use that function module in your jsp file
https://forums.sdn.sap.com/click.jspa?searchID=7862295&messageID=4388980
reward points if helpful
Hi Louis,
I am afraid your solution will effect the response time and it can create lot of issues. The Masthead will be loaded in the first call, and if you are trying to access the R3 during this your response time will be very high. Another thing is any problem in your R3 side(like network failure, R3 down time etc) will cause your Masthead code to crash, It can even stop the user from logging off, and will not be a very pleasant situation. You may need to rethink your solution.
As far as adding custom fields are concerned, you can always do that. Why you need to do it through the IUserContext i couldn't make out. Its a jsp file and you can put whatever you feel like !!.
regards
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.