cancel
Showing results for 
Search instead for 
Did you mean: 

userid of a Portal-user in Web Dynpro ABAP

Former Member
0 Kudos

Dear colleagues,

we want to migrate our application from BSP to Web Dynpro ABAP and I'm looking for a procedure how I can get the userid of a Portal-user in Web Dynpro ABAP which is running inside an iView ?

In BSP I used iView application parameter user_id and in the BSP the event handler for data retrieval with:

userid = runtime->server->request->get_form_field( 'userid' ).

Found a lot of entries how to do it in Java but no one for WDA ?

Thanks in advance

Michael

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Hi Michael,

Actualy it is not so trivial. You have some options:

1) In case user_id is parameter of iView you can read URL parameter like described here

2) In case user_id is not iView parameter you can use usuall ABAP <i>sy-uname</i> system variable.

But pay attantion that it is not really EP user. Here we have 2 options: user mapping and SSO. In case of user mapping <i>sy-uname</i> will contain R/3 user which is mapped to EP user. In case of SSO <i>sy-uname</i> will contain same user name like in EP, because by using SSO user must ne the same on issuing and accepting systems.

Best regards, Maksim Rashchynski.