on 02-01-2011 6:32 AM
Hi all
Here i need to capture the portal user id and password in WDABAP application for the user who has logged into Enterprise Portal.could you please help how to write the Code for this in wdabap.
Thank in Advance
Deepika
Edited by: deepika_indian on Feb 1, 2011 7:32 AM
Hello Deepika,
You can get the user id by using the following code, not sure about the password though.
data client_info_object type ref to if_wdr_client_info_object.
data lv_user type string.
data lv_pass type string.
client_info_object = wdr_task=>client_window->client_info_object.
lv_user = client_info_object->get_parameter( if_http_form_fields_sap=>sap_user ).
lv_pass = wdr_task=>client_window->get_parameter( if_http_form_fields_sap=>sap_password ).
thanks
sarbjeet singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are a couple of problems with this code. It is reading the URL parameters for the user name and password. This will only work if you are not using SSO tickets and a trust relationship or certificates. Also this is the ABAP system user name (which can also be gotten just accessing SY-UNAME). Thanks to user mapping this may not even be the same user id as runs in the portal.
What exactly are you really trying to acomplish? You really shouldn't need the portal creditals and certainly not the password. Really you shouldn't ever move the password in such an insecure way.
Hi
THAT IVIEW I CALLED INTO EP BUT STILL IT IS NOT CAPTURING THE LOGIN USER OF EP,COULD U PLEASE LET KNOW WHERE MIGHT BE THE PROBLEM .more over for this portal user still there is no infotype created ,wether it is required compulsory ..
REGARDS
DEEPIKA
Edited by: deepika_indian on Feb 2, 2011 8:31 AM
Edited by: deepika_indian on Feb 7, 2011 9:54 AM
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.