Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

No value returned by Method CL_GUI_FRONTEND_SERVICES=>REGISTRY_GET_VALUE

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

Hi,

Check with this FM.

GUI_GET_REGVALUE

Regards,

Shamma

0 Kudos

not working

0 Kudos

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...) ?

0 Kudos

i am using SAP GUI for windows..

this method is working on some other machine..but not on my..what could be the problem

0 Kudos

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...

Kanagaraja_L
Active Contributor
0 Kudos

Can you Replace

ROOT         = cl_gui_frontend_services=>hkey_classes_root

insted of

root = 1

Kanagaraja L