cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Portal logon id in Enterprise Portal 6.0

Former Member
0 Kudos

Hi,

I need to know if there is any way i can access User Id variable on the Logon screen so that i can use it as a parameter to my iviews.

Also a list of such global variables would be helpful

Appreciate all your help

Regards

Jayesh

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Jayesh,

I don't understand your problem completely - do you want to use the user id within self developed portal Java iViews or within "foreign" iViews (URL iView)?

For the first case, you can retrieve the user from the IPortalComponentRequest:


String userID = req.getUser().getLogonUid();

For the second case, use AppIntegrator instead, see https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/The%20App... (it's a ZIP with PDF in it).

Hope it helps

Detlev

PS: Please realize the point-awarding system on SDN, so if an answer helps you, just press the yellow star button and choose the corresponding amount of points. Thanks in advance!

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

I have made a transaction based iveiw for Kanban to which i want to pass the Portal user id ( used for logging on ) in the Application Paramters property of the Iviews.

I am passing the Application Paramters as below(just an example)

RMPKB-WERKS=3001&RMPKB-SEPVB=X&RMPKB-MATNR=<<b>MappedUser</b>>

It doesnt seem to take the MappedUser variable to get the portal logon user id.

It would be nice if i can get a varaible through which i can refer the portal logon user id.

Regards

Jayesh

P.S: I have tried User.UserId, LogonUserID etc

Former Member
0 Kudos

Hi Jayesh,

Instead of passing userid from portal to SAP Transaction, how about using sy-uname in the ABAP program itself.

Thanks,

Praveen