<?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: Function module Registry_get in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-registry-get/m-p/6163220#M1370526</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;Thanks for your help.I have one more query where i should pass value of  'section  = 'Filetransfer'. in below function module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_GET_REGVALUE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        ROOT           = 2&lt;/P&gt;&lt;P&gt;        KEY            = 'software\sap\sap shared'&lt;/P&gt;&lt;P&gt;        VALUE_NAME     = 'sapworkdir'&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        STRING         = path&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        REGISTRY_ERROR = 1&lt;/P&gt;&lt;P&gt;        OTHERS         = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Sep 2009 13:20:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-24T13:20:39Z</dc:date>
    <item>
      <title>Function module Registry_get</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-registry-get/m-p/6163217#M1370523</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;We are going for upgrade from 4.6 to ECC 6.0.Function module REGISTRY_GET is obselete in 4.6 instead of this i have used class CL_GUI_FRONTEND_SERVICES method 'registry_get_value' .But the there is a diffrence in number of parameter passed in function module and that class method.Below is the code both in 4.6 and ECC 6.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 4.6 it was as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REGISTRY_GET'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;           KEY     = 'protocol\StdFileEditing\server'&lt;/P&gt;&lt;P&gt;           SECTION = 'ExcelWorksheet'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;           VALUE   = EXCEL_PATH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in ECC 6.0 i replaced as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method cl_gui_frontend_services=&amp;gt;registry_get_value&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      root                = cl_gui_frontend_services=&amp;gt;hkey_classes_root&lt;/P&gt;&lt;P&gt;      key                 = 'protocol\StdFileEditing\server'&lt;/P&gt;&lt;P&gt;      value               = ''&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      reg_value           = reg_value&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      get_regvalue_failed = 1&lt;/P&gt;&lt;P&gt;      cntl_error          = 2&lt;/P&gt;&lt;P&gt;      error_no_gui        = 3&lt;/P&gt;&lt;P&gt;      others              = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i compair both the code then parameters differ's.But i am not able to undestand what the use of these parameter.Please sugest if i am doing the right thing in ECC6.0 and please also let me know the replacement of function module 'Profile_GET' used as below in 4.6:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'PROFILE_GET'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            filename = 'front.ini'&lt;/P&gt;&lt;P&gt;            key      = 'Path'&lt;/P&gt;&lt;P&gt;            section  = 'Filetransfer'&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            value    = dir_path&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others   = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 11:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-registry-get/m-p/6163217#M1370523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-24T11:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Function module Registry_get</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-registry-get/m-p/6163218#M1370524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample to understand :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code 46C&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*     Test, ob OrgPublisher lokal installiert ist
      CALL FUNCTION 'REGISTRY_GET'
           EXPORTING
                key     = 'CLSID'
                section = 'OrgPublisher.Document.2'
           IMPORTING
                value   = class_id.
      IF class_id IS INITIAL.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Code ECC 6.0&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;      CALL METHOD cl_gui_frontend_services=&amp;gt;registry_get_value
        EXPORTING
          root         = cl_gui_frontend_services=&amp;gt;hkey_classes_root
          key          = 'OrgPublisher.Document.2\CLSID'
        IMPORTING
          reg_value            = class_id
        EXCEPTIONS
          get_regvalue_failed  = 1
          cntl_error           = 2
          error_no_gui         = 3
          not_supported_by_gui = 4
          OTHERS               = 5.
      CALL METHOD cl_gui_cfw=&amp;gt;flush
        EXCEPTIONS
          cntl_system_error = 1
          cntl_error        = 2
          OTHERS            = 3.
      IF class_id IS INITIAL OR sy-subrc NE 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 11:20:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-registry-get/m-p/6163218#M1370524</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-09-24T11:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Function module Registry_get</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-registry-get/m-p/6163219#M1370525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Second sample to understand :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code 46C&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;      CALL FUNCTION 'PROFILE_GET'
           EXPORTING
                filename = 'front.ini'
                key      = 'Path'
                section  = 'Filetransfer'
           IMPORTING
                value    = path.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Code ECC 6.0&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    CALL FUNCTION 'GUI_GET_REGVALUE'
      EXPORTING
        ROOT           = 2
        KEY            = 'software\sap\sap shared'
        VALUE_NAME     = 'sapworkdir'
      CHANGING
        STRING         = path
      EXCEPTIONS
        REGISTRY_ERROR = 1
        OTHERS         = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 11:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-registry-get/m-p/6163219#M1370525</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-09-24T11:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Function module Registry_get</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-registry-get/m-p/6163220#M1370526</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;Thanks for your help.I have one more query where i should pass value of  'section  = 'Filetransfer'. in below function module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_GET_REGVALUE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        ROOT           = 2&lt;/P&gt;&lt;P&gt;        KEY            = 'software\sap\sap shared'&lt;/P&gt;&lt;P&gt;        VALUE_NAME     = 'sapworkdir'&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        STRING         = path&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        REGISTRY_ERROR = 1&lt;/P&gt;&lt;P&gt;        OTHERS         = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 13:20:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-registry-get/m-p/6163220#M1370526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-24T13:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Function module Registry_get</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-registry-get/m-p/6163221#M1370527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Filetransfer'" has become "'sapworkdir", if found it initially within a SAP OSS note that corrected one of their program which used the obsolete function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:  note found (again) [Note 966310 - Local copies of documents not in SapWorkDir|https://service.sap.com/sap/support/notes/966310] read the source correction for the FORM GET_DISPLAY_DIR. (applicable since 46C...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Raymond Giuseppi on Sep 24, 2009 6:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 16:43:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-registry-get/m-p/6163221#M1370527</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-09-24T16:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Function module Registry_get</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-registry-get/m-p/6163222#M1370528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.I have seen this note but i believe it's applicable till 4.6 only.Shaii i go ahead with correction in ECC 6.0 with using ''GUI_GET_REGVALUE' function module instead of 'Profile_GET'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 09:05:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-registry-get/m-p/6163222#M1370528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T09:05:31Z</dc:date>
    </item>
  </channel>
</rss>

