<?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: How to use environment variable (PATH) from ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-environment-variable-path-from-abap/m-p/6285647#M1389043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not answered, but closing to make room for other questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Oct 2009 17:52:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-26T17:52:13Z</dc:date>
    <item>
      <title>How to use environment variable (PATH) from ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-environment-variable-path-from-abap/m-p/6285642#M1389038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to see if there is any easier way to use the OS path environment varibale from my abap program. Any suggesions will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 14:04:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-environment-variable-path-from-abap/m-p/6285642#M1389038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-22T14:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use environment variable (PATH) from ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-environment-variable-path-from-abap/m-p/6285643#M1389039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be some where from from registry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 14:07:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-environment-variable-path-from-abap/m-p/6285643#M1389039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-22T14:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use environment variable (PATH) from ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-environment-variable-path-from-abap/m-p/6285644#M1389040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the registry path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : path type string.
CALL METHOD cl_gui_frontend_services=&amp;gt;registry_get_value
  EXPORTING
    root                 = cl_gui_frontend_services=&amp;gt;HKEY_LOCAL_MACHINE
    key                  = 'SYSTEM\ControlSet001\Control\Session Manager\Environment'
    value                = 'Path'
  IMPORTING
    reg_value            = path
  EXCEPTIONS
    get_regvalue_failed  = 1
    cntl_error           = 2
    error_no_gui         = 3
    not_supported_by_gui = 4
    others               = 5
        .
IF sy-subrc &amp;lt;&amp;gt; 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

WRITE : path.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this fetches value in path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Soumyaprakash Mishra on Oct 22, 2009 7:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 14:08:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-environment-variable-path-from-abap/m-p/6285644#M1389040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-22T14:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use environment variable (PATH) from ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-environment-variable-path-from-abap/m-p/6285645#M1389041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Soumyaprakash for the quick response. I appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to test, I tried copying and pasting your code in a se38 program and when i tried to run it crashed. Is there anything that i need to change here before running?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 14:31:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-environment-variable-path-from-abap/m-p/6285645#M1389041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-22T14:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use environment variable (PATH) from ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-environment-variable-path-from-abap/m-p/6285646#M1389042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what does the crash say?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in windows, in start menu-&amp;gt;run give regedit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in that, keep the cursor at the top node on the left hand side, search for 'Environment'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check if you are getting the same key position or not..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 16:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-environment-variable-path-from-abap/m-p/6285646#M1389042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-22T16:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use environment variable (PATH) from ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-environment-variable-path-from-abap/m-p/6285647#M1389043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not answered, but closing to make room for other questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 17:52:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-environment-variable-path-from-abap/m-p/6285647#M1389043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T17:52:13Z</dc:date>
    </item>
  </channel>
</rss>

