Get enterprise portal user informations
Hi all,
is there a way to get some portal user informations during runtime in a visual composer application?
For example: I want to display the user id in a form automatically.
Thank you for your help!
Kind regards, Patrick.
Hai ,
u have to get that abap side not from Vc side i think soo
Regards ,
venkat p
Similar Messages
-
Assign GP to Enterprise Portal user
Hi all,
I want to assign my GP process to Enterprise Portal user and I am using the following document given in SDN
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0975397-8e0a-2b10-4daa-bafd3a83e2a8.
But I am getting following error when I am logging in with a user who is initiator of the process and trying to open the role which I have created.
Portal Runtime Error
An exception occurred while processing a request for :
iView : N/A
Component Name : N/A
The exception was logged. Inform your system administrator..
Exception id: 05:26_23/06/08_0021_13684150
See the details for the exception ID in the log fileHi,
What exactly are you trying to do? Are you trying to access the process via the GP Runtime or trying to start the process via a PCD object from the Portal.
What is the exception in the log file?
Dick -
How to get the ep user information data in the web dynpro?
Hi all
I want to create a web dynpro application on EP.I want to get the ep user information data in the web dynpro.How can I do?Thanks.Lin,
Two steps to achieve this:-
<b>Step 1:</b> Add the following code in your view Controller:-
IWDClientUser user = WDClientUser.getCurrentUser();
IUser objUser = user.getSAPUser();
wdContext.currentContextElement().setXXXX(objUser.getUniqueName());
wdContext.currentContextElement().setYYYY(objUser.getFirstName());
wdContext.currentContextElement().setZZZZ(objUser.getLastName());
where XXXX, YYYY , ZZZZ are the context names.
getUniqueName : Gives Login id of Portal user.
getFirstName : Gives First Name of the Portal user.
getLastname : Gives Last Name of the Portal user.
<b>Step 2 : </b>Use "Organize imports" and make sure that you have the following two libraries added in the build path of your project. You can do these by right clicking on your project name ==> Properties ==> Java Build Path ==> Libraries ==> Add External jars.
The external jars are :
<b>com.sap.security.api.jar
com.sap.security.api.perm.jar</b>
Finally rebuild your project and deploy.
Regards,
<b>Chintan Virani.</b> -
Getting Logged on User'Information in an Oracle-Form SSO Partner Application
Hi.
I could run Flight-of Fancy Application and capture user's information by calling the
"Parse_cookie " Procedure.(use the Scenario 2 - Access the Portal and then the FOF App)
and defined an Oracle-Form application as Partner application like FOF.
I want to have Logged on user'Information in the "Oracle-Form" . But the Fucntion owa_cookie.get dosen't work correctly.please let me know what can I do ?
Thanks in advanced.Hi.
I could run Flight-of Fancy Application and capture user's information by calling the
"Parse_cookie " Procedure.(use the Scenario 2 - Access the Portal and then the FOF App)
and defined an Oracle-Form application as Partner application like FOF.
I want to have Logged on user'Information in the "Oracle-Form" . But the Fucntion owa_cookie.get dosen't work correctly.please let me know what can I do ?
Thanks in advanced. If you're writing your own partner application, then you are correct to get the user information from the output variables
from the parse_url_cookie procedure. You should then set the information you want to keep track of in the cookie, or combination
of cookie and persistent storage in the database. Take care of the security implications while doing this.
On subsequent calls to your application, the user info should be obtained from the cookie and the database, if you
are using a combination of the cookie and database storage to keep your info.
The owa_cookie.get routine is used to read the cookie, which is generated with owa_cookie.send.
These routines work fine, when invoked correctly.
If you are having trouble with them, you're probably not using the calls properly.
The following code provides an example of how to use the owa_cookie calls...
create or replace package testcookie
is
procedure show (p_name IN VARCHAR2);
procedure send
p_name IN VARCHAR2,
p_value IN VARCHAR2,
p_path IN VARCHAR2 default null,
p_expires IN VARCHAR2 default null
end testcookie;
show error package testcookie
create or replace package body testcookie is
procedure show (p_name IN VARCHAR2) is
v_cookie owa_cookie.cookie;
begin
v_cookie := owa_cookie.get(upper(p_name));
htp.htmlopen;
htp.bodyopen;
htp.print(v_cookie.vals(1));
htp.bodyclose;
htp.htmlclose;
exception
when others then
htp.htmlopen;
htp.bodyopen;
htp.print('NO COOKIE FOUND.');
htp.print(SQLERRM);
htp.bodyclose;
htp.htmlclose;
end;
procedure send
p_name IN VARCHAR2,
p_value IN VARCHAR2,
p_path IN VARCHAR2 default null,
p_expires IN VARCHAR2 default null
is
v_cookie owa_cookie.cookie;
l_agent varchar2(30);
l_expires varchar2(30);
l_path varchar2(100);
begin
if p_expires is null then
l_expires := null;
else
l_expires := to_date(p_expires, 'MMDDYYYY');
end if;
if p_path = 'ALL' then
l_path := '/';
else
l_path := null;
end if;
owa_util.mime_header('text/html', FALSE);
l_agent := owa_util.get_owa_service_path;
l_agent := substr(l_agent, 1, length(l_agent) - 1 ) ;
owa_cookie.send(
name => upper(p_name),
value => p_value,
expires => l_expires,
path => l_path
owa_util.http_header_close;
htp.htmlopen;
htp.headopen;
htp.headclose;
htp.bodyopen;
htp.print ('Cookie set.');
htp.bodyclose;
htp.htmlclose;
end;
end testcookie;
show error package body testcookie;
grant execute on testcookie to public;If you load this into a schema which a DAD can access, then you can invoke the show and send procedures to view and
generate cookies.
To generate a cookie, issue the following from your browser ...
http://server.domain.com/pls/dad/schema.testcookies.send?p_name=test&p_value=hello
To view the cookie:
http://server.domain.com/pls/dad/schema.testcookies.show?p_name=test -
BEx Query output in Enterprise Portal using "Information Broadcasting"
Dear Experts,
I am having BEx Query output in Enterprise Portal
EP 6.0 and BW 3.5 version
I am trying to send email attachments from
Portal Query directly
using "Information Broadcasting" tab button
==================================
Email gets triggered Okay,
but Portal URL link is not showing correctly
Here is an Online Link to the BI Document: http://mtv01spbw01.businesssap.com:8100/sap/bw/BEx?CMD=LDOC&INFOCUBE=0CRM_OPPH&QUERY=0CRM_C04_TESTQ001
<b>The URL above is coming wrongly,
I want it to point to
http://mtv01spbw01.businesstree.com:8000/sap/bw/BEx?CMD=LDOC&INFOCUBE=0CRM_OPPH&QUERY=0CRM_C04_TESTQ001</b>
Please help me to correct this error / wrong configuration
any help links would also be appreciated
Thanks,
Aby JacobHi Jacob,
Here, p/s refer to this links.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca6de811-0c01-0010-43b2-c64584eef943">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca6de811-0c01-0010-43b2-c64584eef943</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/84/30984076b84063e10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/84/30984076b84063e10000000a1550b0/frameset.htm</a>
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/84/30984076b84063e10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/84/30984076b84063e10000000a1550b0/frameset.htm</a>
OSS Notes : 760775
Hopefully it can helps you a lot.
Many thanks.
Regards,
Niel.
(Many thanks for any points you choose to assign). -
Get the Portal User in Flex through webmodule project
Hai All
I have created the Flex project and then imported in NWDS through webmodule project . How do i get the portal log on user in Flex through webmodule project like what we will get in webdynpro java or webdynpro abap with the following code in init() method
IWDClientUser wduser=WDClientUser.getCurrentUser();
com.sap.security.api.IUser user=wduser.getSAPUser();
What should i write in Flex init() method to get the portal log on user or is it possible to the portal log on user in flex?
HOW TO GET THE <User.LogonUid> from LOG ON PORTAL USER into FLEX
Kindly help me.
Regards
Dhinakaran J
Edited by: J Dheena on Sep 16, 2009 10:45 AM
Edited by: J Dheena on Sep 16, 2009 2:41 PM
Edited by: J Dheena on Sep 17, 2009 7:53 AMHi,
Have you been able to find this? Please let me know.
Thanks,
Manish -
Get current portal user password?
Is it possible to get the current portal user's password? If so, I need the pl/sql api to accomplish this.
Hi there,
I was looking for the same thing but as I understood it is saved in a HASH format and their is NO way to decrypt it.
The thing I do now is storing the password in a selfmade table besides the SSO tables for administrative use.
Greets
cumQuat
Dave Ruzius -
How to get the portal user id into the web dynpro iview at runtime?
Hi,
Can any one let me know, How to display portal id and as well as backend SAP user id into Web Dynpro iview at runtime. I am using Adaptive RFC model in my web dynpro application.
Raj.Raj: check this thread. I think that will help you.
Can i get Portal User's details in webdynpro??
I had the same requirement and its works whit this solution.
regards. -
Get current logged portal user information
Hi,
I need to get information about current user logged to the portal from a J2EE application. I developed an Enterprise application project with a java servlet and I integrated it into the portal as an URL iView.
This in the code of servlet:
import com.sap.security.api.*;
IUserFactory userFactory= UMFactory.getUserFactory();
IUser user= UMFactory.getAuthenticator().getLoggedInUser();
out.println(user.getUniqueID().toString());
out.println(user.getDisplayName().toString());
out.println(user.getName().toString());
out.println(user.getUniqueName().toString());
When I run my application I have this output:
USER.PRIVATE_DATASOURCE.un:Guest Guest, Guest Guest
But I access with another user, it's not Guest.
How can I solve this problem???THANKSHi,
Please try checking with following code
ISearchResult rst = UMFactory.getUserFactory().getUniqueIDs();
IUserFactory usf = UMFactory.getUserFactory();
IUser iuser = null;
IUserListElement userElement = null;
int i = 0;
while (rst.hasNext()) {
iuser = UMFactory.getUserFactory().getUser(rst.next().toString());
String email = iuser.getEmail();
String fname = iuser.getFirstName();
String lname = iuser.getLastName();
let me know if there are any issues.
regards
Anil -
How to get SSO logged user information in a database trigger
my database is 9i
my application server is 9i too
I need to track which SSO user is inserting data into a table , so how can i get the information of that user in a database trigger on that table
thanksHi,
The only way I could figure out how to get it was to import the com.sap.security.api.
1. From Window>Preferences>Java-->Classpath Variables, set up a variable called WEBAS_HOME pointing to:
<drive>/usr/sap/<SID>/jc00/j2ee/cluster/server0/
2. Right click on properties of your Dynpro Project->Properties->Java Build Path->Libraries and click "Add Variable."
3. Select WEBAS_HOME and click "Extend"
4. Select /bin/ext/com.sap.api.sda/com.sap.security.api.jar and click OK.
If you don't have access to a portal directory, you will have to get this jar file and copy it to your workspace to add to your build path instead of the above steps.
Then in your code:
import com.sap.security.api.IUser;
import com.sap.security.api.IUserAccount;
public void GetLogonID( )
String LogonID;
try {
/* create an user object from the current user */
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
if (user != null) {
IUserAccount acct = user.getUserAccounts()[0];
if (acct != null) {
LogonID = acct.getLogonUid();
} else
LogonID = "acct null";
} else {
LogonID = "user null";
wdContext.currentContextElement().setDisplayName(user.getFirstName() + " " + user.getLastName());
wdContext.currentContextElement().setLogonID(LogonID.toUpperCase());
} catch (Exception e) {
e.printStackTrace();
Hope this helps... I had to search several places before I found all the necessary stuff. Maybe I can get my first points!
Thanks,
Andrew -
Accessing the Enterprise Portal user name
Hi All
I want to access the name of the user who has currently logged into the portal. And this username, I wanted to display in my .NET PDK portal application.
Please suggest a solution to this.
-VijayHi vijay,
I have develpoed poratal application in Java.
Here we have got specific interfaces like IUSER,UMFACTORY in the PDK.
we import usermanagement.jar for using this .
These interfaces have got defined methods to get the current logged in info from the UME.like getDisplayName(),getUserId();getEmail() etc
I guess in .net PDK u will have same kinda API defined.
got ny clue from dis then points are welcomed:-)
thanks,
Swathi -
Introduction: Building An Enterprise Portal For Information Access
Hi all,
I've installed oracle8.0.5 on Linux Mandrake7.0 successfully but I can't run anything including lsnrctl, svrmgrl, or even sqlplus, it always give me "segmentation fault".
Does it means that oracle805 and Mandrake binary is not compatible?
Any one has any idea about this?
Thanks you very much.
nullHi Chinnu
I dont have idea about mm procurement but one doubt.
how do you see mm procurement details in sap system? through transaction code?
If you are able to see procurement details through tranasaction code in sap mm , you can get procurement detilas into sap portal by creating sap transaction iview.
Koti Reddy -
How can i know who and when modified a user in portal (JAVA), just like ABAP in tcode SU01. If i can know who grant the groups and roles to a user, that would be better
Best regardsDear Francisco,
You may check the security logs :-
UME Logging and Monitoring:
http://help.sap.com/saphelp_nw70/helpdata/en/f2/6a82270fd99844a65085bd90022fab/frameset.htm
Security Logging : Contain important security events (like failed user logon attempts, changes to users and authorizations, etc.)
Storage Locations : /usr/sap/SID/j2ee/cluster/serverX/log/security.log
Security audit log - SAP Notes 1278155
You can do the custom development as per your requirement using the UME API
API for User Management - [Click here|http://help.sap.com/javadocs/NW04S/current/se/index.html]
Search for the code in SDN code galory.
Best Regards
Arun Jaiswal -
How to access a Portal User Info from a J2EE application?
Hi,
I have deployed a j2ee application in portal and its running fine.
from that application i need to assign some roles to some users.i have the user id.
so my doubt is can i access the portal user info from this j2ee application?i have some servlets in the j2ee application....can i get the portal user info from this servlet?
plz help me
regards,
VisweswarHi,
Please check out this to get the portal user information from Java -
WdClientUser class/Interface to aciehve this.
Please check out these links on the same -
WDClientUser.getClientUser IUser
help needed
Regards
Lekha -
How to get Portal user from a standalone Java application
Hi,
I have a standalone Java application from where I need to fetch the Portal User Information like userid and email id.
I am using the below line of code
iUser = UMFactory.getUserFactory().getUserByLogonID("e017939");
I have included the jar file com.sap.security.api , But it was giving me the below exception
java.lang.NoClassDefFoundError: com/sap/tc/logging/Location
at com.sap.security.api.UMFactory.<clinit>(UMFactory.java:55)
at com.am.wcas.java.mailscheduler.kmaccess.FetchDataFromKM.getiUser(FetchDataFromKM.java:29)
at com.am.ScheduleEmails.main(ScheduleEmails.java:89)
and I am getting a pop Up message from the Java Virtual Machine Launcher, saying a Fatal Exception has occured and the Program will exit.
Then I went throught he SDN threads and they asked me to include the
logging.jar and com.sap.security.perm.api .
I Included them, then also, it is giving me Exception
java.lang.NoClassDefFoundError: com/sap/engine/lib/logging/LoggingHelper
at com.sap.security.api.UMFactory.<clinit>(UMFactory.java:56)
at com.am.FetchKMData.main(FetchKMData.java:30)
Exception in thread "main"
and I am getting a pop Up message from the Java Virtual Machine Launcher, saying a Fatal Exception has occured and the Program will exit.
Kindly let me know if it is possible to access the User info using UMFactory in a standalone Java application. If yes kindly let me know where i am going wrong.
Regards,
Shilpa B.VHi Shilpa,
1. Check that you have added com.sap.security.api within the Your Project>Libraries folder (under navigation tab) and also added jars in the build path of the Your Project under project>properties>Build Path.
2. In case you have a DC instead of Web Dynpro Project then you have to add the com.sap.security.api under Your DC>Used DCs and have compile time and runtime dependency added.
Here java.lang.NoClassDefFoundError is caused basically due to only build time dependency added and reference to the jar missing at runtime. Rest the code to retrieve the current user id using UME API and getUserByLogOnID("....") method with/without portal environment would not be an issue at all.
Regards,
Tushar SInha
Maybe you are looking for
-
Is there a way to check the current MTU size (as per the document 1500 is the default size) on CUCM? we have a customer who is using cucm with nice recording server, there is some issue in the recording and as per them they are getting MTU size 1340
-
call log option to search by contact, to see a list of when you last had a call from your contact
-
I've justrecently noticed marks on my photos & videos - I've attached a photo example (looks like tiny water marks and a hair?), and you can really see the "hair" here: http://youtu.be/myM2PPK8MQs I've cleaned the outside of the lens as best I can -
-
My 822 now says, "ERROR: Unable to find bootable option. Press any key to shut down." Just happened after my phone froze. Everything I've searched says to replace the phone. I have no phone in or out, no alarm....what is going on with this? I see o
-
Yes I did all of the suggestion and flash will not install
OK did the uninstall, then downloaded a new version to install on a mac (maverack edtion+ but system hangs when looking for installer then computer freezes. checked Firefox and safarie for extention as well all still there any suggestions