on 03-12-2009 7:52 AM
Hi Guys,
I need to verify windows user before running my webdynpro application,
i have tried method cl_gui_frontend_services=>get_user_name
& function module gui_get_desktop_info.
but none of them is returning the value, due to reason being called from a web frontend.
please advise.
regards
Siddharth
cl_gui_frontend_services=>get_user_name
is SAP GUI specific calls, run at client machine and fetch the username, browser can not execute this.
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
as i already suggested there is a way out..
You can code it in BSP and after yuo get the Username you can call web dynpro using URL parameter
java script code snippet.
http://www.pctools.com/guides/scripting/detail/108/?act=reference
Abhi
Hi Charlie
I also got similiar problem
you need to change the security settings in the internet explorer.
tools->internet option->security->custom level ->active x controls and plug in -> initialise and activate activ x controls not marked as safe -> enabled.
this will work and return you the user name.
but still its not a sugested way of doing this as it will disturb the security policy of any compnay.
i am still lokking for a suitable solution possibly a client side ASP to run through bsp and give result.
Regards
siddharth
as i already mentioned,
Enterprise Portal user base is configured to use the LDAP system,
http://help.sap.com/saphelp_nwce10/helpdata/en/0b/d82c4142aef623e10000000a155106/frameset.htm
Abhi
Hi Siddharth,
... Removed by Moderator
Greetings
Prashant
Note from moderator: Sorry, but the information provided was completely wrong, so rather than lead to possible confusion I decided to remove it. Abhi is correct in saying that such function modules and classes listed are tied to the SAPGUI. They need to communicate direclty with the SAPGUI via the control interface and the SAPGUI provides the information. In Web Dynpro you have no connection to the SAPGUI because you are running in a browser. It doesn't matter where you place such calls, they simply aren't going to work from Web Dynpro.
Edited by: Thomas Jung on Mar 12, 2009 8:11 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can not write Javascript in Web Dynpro, I don't think it is possible directly.
You can code it in BSP and after yuo get the Username you can call web dynpro using URL parameter
Abhi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.