08-25-2009 12:44 PM
Hi
i am using method CL_GUI_FRONTEND_SERVICES=>REGISTRY_GET_VALUE to read the registry value ;
CALL METHOD cl_gui_frontend_services=>registry_get_value
EXPORTING
root = 1
key = 'SOFTWARE\SAP\SAPGUI FRONT\SAP FRONTEND SERVER\LOCALDATA\'
value = 'DATAPATH'
IMPORTING
reg_value = lw_reg_value
EXCEPTIONS
cntl_error = 1
get_regvalue_failed = 2
OTHERS = 3.
This method returs sy-subrc = 0 but lw_reg_value is blank.
This same method is running successfully on another machine, but not on my machine.
I have checked the registry values in my machine, every thing is ok.
Please suggest where could be the problem
Regards
sukhjinder
08-25-2009 1:00 PM
08-25-2009 1:16 PM
08-25-2009 1:43 PM
it works for me:
REGISTRY_GET_VALUE
Import parameter
ROOT 1
KEY Software\SAP\SAPGUI Front\SAP Frontend Server\LocalData
VALUE DataPath
Export params
REG_VALUE D:\Documents and Settings\sandra.rossi
Do you use sap gui for windows, html, java, or emulated terminals (citrix...) ?
08-26-2009 5:05 AM
i am using SAP GUI for windows..
this method is working on some other machine..but not on my..what could be the problem
08-26-2009 8:21 AM
does regedit work? (maybe missing authorizations on your windows)
do you have windows vista? Maybe a few things don't work, or there are some sap notes...
08-25-2009 1:01 PM
Can you Replace
ROOT = cl_gui_frontend_services=>hkey_classes_root
insted of
root = 1
Kanagaraja L