cancel
Showing results for 
Search instead for 
Did you mean: 

Standard SAP code to fetch logged in user ID is giving issue in PRD system.

Former Member
0 Kudos

Dear Expert,

I am using follwing standard SAP Provided code to fetch the logged in User ID in Portal in my WDJ applicaiton...

IWDClientUser user = WDClientUser.getCurrentUser();

IUser objUser = user.getSAPUser();

String str = objUser.getUniqueName();

wdComponentAPI.getMessageManager().reportSuccess("User ID"+str);

The above code is working fine in Development/Quality system, printing the Logged in user ID.

But when i deployed this applicaiton in PRD system, it always print ID as J2EE_GUEST .

Please help.

Thanks in Advance..

M.D.Sahu

Accepted Solutions (1)

Accepted Solutions (1)

p330068
Active Contributor
0 Kudos

Hi M.D.Sahu,

Please check and verify the UME data sources for Development/Quality and Prod. your code is correct, it should print the users.

Check the default trace log file for more information.

Hope it will helps

Regards

Arun Jaiswal

Former Member
0 Kudos

Dear Arun,

First of all i would like to thank you for your prompt response.

I downloaded the XML file to comape the difference b/w my Dev/Quality and PRD system dataBase connectivity but for my surprise eveything was alike. I am not able to conclude anything.

Please help.

Answers (2)

Answers (2)

Former Member
0 Kudos

While Configuring the Portal some configuration parameter had been hardcoded...

former_member185086
Active Contributor
0 Kudos

Hi

Fact is current logged in user is J2EE_GUEST , Check if your SAP users and Portal user are correctly mapped(if CUA landscape).

Generally the guest user is used during the startup of the J2EE engine. The services and applications of the server process needs the guest user,

One more check Make sap.authentication of application true , than logged in by some other userid.

One help given here

[Always getting j2ee_guest as logged in user |;

Best Regards

Satish Kumar