cancel
Showing results for 
Search instead for 
Did you mean: 

get user id from the portal in webdynpro abap

Former Member
0 Kudos

Hi,

I want to get user id from the portal in webdynpro abap .

Thanks&Regards

Revati

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Harish,

Thank you for reply. I am trying both defaulthandler method in window and sy-uname.

I am getting user id in window handler method . i was stored userid in one variable. how to get that window varialble in my view.

Can please explain me.

Thanks

Revathi raju

Former Member
0 Kudos

Hi Revathi,

create a context attribute in component controller and map it to window and view and assign the username value to that context attribute in window so that you can pass the username to view

Former Member
0 Kudos

Hi Revathi Raju,

Can u plz explain me the steps to follow to get the portal userid in to WDA.

Regards,

Ravi

Former Member
0 Kudos

Hi Ravi,

we can use sy-uname.It will store backend user.

If u want to get from the URL use Window defaulthandlar method.declare one parameter with type string. u can get

Former Member
0 Kudos

Hi Revathi Raju,

i need to get portal login userid into my WDA.

like as u said, i created a parameter type string in the default handler method of window.

and i m using below code to get the user id.but i m not getting anything.

wdevent->get_data( exporting name = 'USERID' importing value = lv_userid ).

can i need to add any parameter in Application Parameters?

can u please say it elabarately......

Regards,

Ravi

Former Member
0 Kudos

Bhargava,

Please check the thread carefully.you will find the solution.

Answers (4)

Answers (4)

Former Member
0 Kudos

Thank you friends,

My portal id issue was solved.

Former Member
0 Kudos

Hi Friends,

Thank you for your response. I want some clarification from portal guy.Currently he is not available.If i get any query's after that i ll post to you.

And one more issue is my webdynpro application have to support multiple languages. How to do that. I know OTR text will convert into other languages automatically. But i want to know how to pass the language to OTR texts.

Thanks

revathi

Former Member
0 Kudos

Revathi,

Please open another thread for OTR related issue.

pramod_gopisetty1
Active Contributor
0 Kudos

Hi Revathi Raju,

have a look at this thread

[|]

or you can create a FM in ABAP and get the SY-UNAME and in the application wherever you want you can call that method and get the SY-UNAME.

Hope this helps.

Cheers-

Pramod

Former Member
0 Kudos

have a look at this buddy may be of some help

regards

Pankaj Prasoon