on 07-16-2008 6:15 AM
Hi all,
I need to get value of user id into my WDA application .
ie .How can i get the portal logon userid into my Webdynpro for abap application.....
regards,
ravi
Hi,
First of all the USERID field should be attached with the web dynpro component link when its associated with the portal.
This is a joint task of the EP guy and the Basis.
When its done, you can code in HANDLEDEFAULT method of the MAIN WINDOW.
DATA: lv_userid TYPE string.
wdevent->get_data( exporting name = 'USERID' importing value = lv_userid ).
<read the context_node you define with USERID as an attribute of TYPE string and cardinality 1:1>
Then call a BAPI/code to get the user id from the url link which will be passed to the lv_userid.
In my case the url was of length 22, just check in your case.
Reward if Helpful.
Regards,
Prosenjit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Bhargava,
I think u should have the logon id in the system table field sy-uname. U can pass it to the context and use it in the WD4A application.
With Regards,
Ranganathan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.