on 02-06-2006 4:44 PM
Hi everyone,
(I'm using ITS version 6200.1010.41706.0, MS Internet Explorer v.6.0.2600.0000, and R/3 v.4.6C)
I'm using function module GUI_GET_DESKTOP_INFO in order to retrieve the Windows username that is running the session. No problem at SAP GUI, but when executing in ITS, the function returns nothing.
Similarly, I have tried to run FM WS_QUERY in order to retrieve the value of an environment variable, with no success.
Any idea? Thanks very much for your help. Best regards,
Alvaro Vidal-Abarca
Hi Alvaro,
GUI_GET_DESKTOP_INFO and WS_* function modules from function group GRAP are legacy and should not be used anymore. Instead you should use the class CL_GUI_FRONTEND_SERVICES. This class provides methods for almost all functionality that is offered by the legacy function modules.
CL_GUI_FRONTEND_SERVICES contains some methods that by design don't work in a web or java environment. Theses function modules raise an exception NOT_SUPPORTED_BY_GUI that have to be catched by the calling application. It is currently unfortunately not possible to retrieve the value of environment variables in a web environment.
Best regards,
Klaus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, I think one should mention that this code only works
- on Windows
- within Internet Explorer 6.0 (IE 7.0 it will not work)
- if the security settings are weak on the client and allow to instantiate activeX objects
On should carefully decide if these limitations are fine.
Best regards,
Klaus
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.