Hi,
i am replacing the Function module REGISTRY_GET with class cl_gui_frontend_services=>registry_get_value in ECC6.O
I am not able to open the web browser iam get the "Unable to locate the default web browser".
Here is my code:
CALL METHOD cl_gui_frontend_services=>registry_get_value
EXPORTING
root = cl_gui_frontend_services=>hkey_current_user
key = 'SHELL\OPEN\COMMAND'
value = 'http'
IMPORTING
reg_value = g_regpath
EXCEPTIONS
get_regvalue_failed = 1
cntl_error = 2
error_no_gui = 3
not_supported_by_gui = 4
OTHERS = 5.
IF sy-subrc = 0 or G_REGPATH = ''.
CALL METHOD cl_gui_frontend_services=>directory_get_current
CHANGING
current_directory = g_regpath
EXCEPTIONS
directory_get_current_failed = 1
cntl_error = 2
error_no_gui = 3
not_supported_by_gui = 4
OTHERS = 5.
CALL METHOD cl_gui_cfw=>flush
EXCEPTIONS
cntl_system_error = 1
cntl_error = 2
OTHERS = 3.
ENDIF.
IF sy-subrc <> 0.
g_browser_path = g_regpath..
ENDIF.
Thanks
Kiran