<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: GUI_GET_REGVALUE - REGISTRY_ERROR in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-get-regvalue-registry-error/m-p/7550352#M1563319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Please check the Key , I think this should not be in all CAPS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     'Software\Microsoft\Windows\CurrentVersion\Explorer\ShellFolders'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Dec 2010 03:57:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-29T03:57:02Z</dc:date>
    <item>
      <title>GUI_GET_REGVALUE - REGISTRY_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-get-regvalue-registry-error/m-p/7550351#M1563318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get Cookies file path through Windows Registry(REGEDIT), using following function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:lv_key(255) VALUE
'SOFTWARE\MiCROSOFT\WINDOWS\CURRENTVERSION\EXPLORER\SHELL FOLDERS',
     lv_root TYPE i value '1',
     lv_value_name(255) VALUE 'Cookies',
     lv_string(255) value  '&amp;lt;MISSING&amp;gt;'.
*
CALL FUNCTION 'GUI_GET_REGVALUE'
     EXPORTING
          root           = lv_root
          key            = lv_key
          value_name     = lv_value_name
     CHANGING
          string         = lv_string
     EXCEPTIONS
          registry_error = 1
          OTHERS         = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting file path, when execute in SAP GUI (4.6C) but I am getting REGISTRY_ERROR, when execute in ITS environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest. Appriciate your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kanagaraja Lokanathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 03:07:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-get-regvalue-registry-error/m-p/7550351#M1563318</guid>
      <dc:creator>Kanagaraja_L</dc:creator>
      <dc:date>2010-12-29T03:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_GET_REGVALUE - REGISTRY_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-get-regvalue-registry-error/m-p/7550352#M1563319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Please check the Key , I think this should not be in all CAPS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     'Software\Microsoft\Windows\CurrentVersion\Explorer\ShellFolders'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 03:57:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-get-regvalue-registry-error/m-p/7550352#M1563319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-29T03:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_GET_REGVALUE - REGISTRY_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-get-regvalue-registry-error/m-p/7550353#M1563320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;I tried with your suggestion but it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kanagaraja Lokanathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 15:50:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-get-regvalue-registry-error/m-p/7550353#M1563320</guid>
      <dc:creator>Kanagaraja_L</dc:creator>
      <dc:date>2010-12-30T15:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_GET_REGVALUE - REGISTRY_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-get-regvalue-registry-error/m-p/7550354#M1563321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GUI_GET_REGVALUE is only supported in SAPGUI environment. You can't use it under ITS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 16:27:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-get-regvalue-registry-error/m-p/7550354#M1563321</guid>
      <dc:creator>adrian_dorn</dc:creator>
      <dc:date>2010-12-30T16:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_GET_REGVALUE - REGISTRY_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-get-regvalue-registry-error/m-p/7550355#M1563322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to flush after call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:lv_key(255) VALUE
'SOFTWARE\MiCROSOFT\WINDOWS\CURRENTVERSION\EXPLORER\SHELL FOLDERS',
     lv_root TYPE i value '1',
     lv_value_name(255) VALUE 'Cookies',
     lv_string(255) value  '&amp;lt;MISSING&amp;gt;'.
*
CALL FUNCTION 'GUI_GET_REGVALUE'
     EXPORTING
          root           = lv_root
          key            = lv_key
          value_name     = lv_value_name
     CHANGING
          string         = lv_string
     EXCEPTIONS
          registry_error = 1
          OTHERS         = 2.
CL_GUI_CFW=&amp;gt;FLUSH( ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flush does the  synchronization between GUI frontend and SAP server backend. After flush  lv_string will get value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, nonsense - did not read thoroughly. But it has been said: No GUI function without SAPGUI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get the registry value only if your ITS server runs on a windows server, but then via OS command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Clemens Li on Dec 30, 2010 8:39 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 19:38:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-get-regvalue-registry-error/m-p/7550355#M1563322</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-12-30T19:38:18Z</dc:date>
    </item>
  </channel>
</rss>

