Skip to Content
0
Former Member
Jul 16, 2008 at 09:27 AM

Readout registry entries in BSP Applications

41 Views

Hello,

how can i read a registry parameter in a BSP programm. I found a way to read the registry in a sapgui

program but it doesn't work in BSP Applications.

DATA: reg_value           TYPE i.

  CALL METHOD cl_gui_frontend_services=>registry_get_dword_value
    EXPORTING
      root                   = 1
      key                   = 'Software\Microsoft\Windows\CurrentVersion\Internet Settings'
      value                 = 'DisableCachingOfSSLPages'
    IMPORTING
      reg_value           = reg_value
    EXCEPTIONS
      cntl_error                   = 1
      error_no_gui               = 2
      not_supported_by_gui = 3
      OTHERS                    = 4.

  CALL METHOD cl_gui_cfw=>flush.

Is there any way to read out the parameter into the controller (do_init) of my bsp application?

Thanks

Daniel