<?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: Request for a function for path of directory ?? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655956#M291170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anuj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The follwing are the methods of CL_GUI_FRONTEND_SERVICES that deal with directories&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DIRECTORY_BROWSE&lt;/P&gt;&lt;P&gt;DIRECTORY_CREATE&lt;/P&gt;&lt;P&gt;DIRECTORY_DELETE&lt;/P&gt;&lt;P&gt;DIRECTORY_EXIST&lt;/P&gt;&lt;P&gt;DIRECTORY_GET_CURRENT&lt;/P&gt;&lt;P&gt;DIRECTORY_LIST_FILES&lt;/P&gt;&lt;P&gt;DIRECTORY_SET_CURRENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET_WINDOWS_DIRECTORY&lt;/P&gt;&lt;P&gt;GET_TEMP_DIRECTORY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to get the directory, DIRECTORY_GET_CURRENT and GET_WINDOWS_DIRECTORY should help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note  - Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Nov 2006 10:29:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-27T10:29:15Z</dc:date>
    <item>
      <title>Request for a function for path of directory ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655949#M291163</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;i need a function module to get me the physical path of the directory on F4 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; function module 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt;  allows us to select the file (on pressing F4) and gives the physical path of the selected file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Similarly i want the function which selects the DIRECTORY and gives the physical path of the DIRECTORY..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 09:14:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655949#M291163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T09:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Request for a function for path of directory ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655950#M291164</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 FM F4_FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use it in at selection-screen on value-request for ...&lt;/P&gt;&lt;P&gt;event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Kaluvala Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 09:16:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655950#M291164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T09:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Request for a function for path of directory ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655951#M291165</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; Check this thread.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="159784"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 09:17:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655951#M291165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T09:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Request for a function for path of directory ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655952#M291166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at the CL_GUI_FRONTEND_SERVICES, and you will find all kinds of the methods, which will solve your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 09:18:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655952#M291166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T09:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Request for a function for path of directory ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655953#M291167</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;FM F4_dxfilename_toprecursion &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this thread..&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="121234"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Check FM RZL_READ_DIR_LOCAL for directory path..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this out&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2078414"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Laxmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 09:20:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655953#M291167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T09:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Request for a function for path of directory ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655954#M291168</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;all the above are used for getting the path for FILENAME..&lt;/P&gt;&lt;P&gt;but none of them is used for getting just the DIRECTORY..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 10:22:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655954#M291168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T10:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Request for a function for path of directory ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655955#M291169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Check these from CL_GUI_FRONTEND_SERVICES&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
-&amp;gt;DIRECTORY_BROWSE
-&amp;gt;DIRECTORY_GET_CURRENT
-&amp;gt;DIRECTORY_LIST_FILES
-&amp;gt;DIRECTORY_SET_CURRENT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 10:27:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655955#M291169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T10:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Request for a function for path of directory ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655956#M291170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anuj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The follwing are the methods of CL_GUI_FRONTEND_SERVICES that deal with directories&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DIRECTORY_BROWSE&lt;/P&gt;&lt;P&gt;DIRECTORY_CREATE&lt;/P&gt;&lt;P&gt;DIRECTORY_DELETE&lt;/P&gt;&lt;P&gt;DIRECTORY_EXIST&lt;/P&gt;&lt;P&gt;DIRECTORY_GET_CURRENT&lt;/P&gt;&lt;P&gt;DIRECTORY_LIST_FILES&lt;/P&gt;&lt;P&gt;DIRECTORY_SET_CURRENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET_WINDOWS_DIRECTORY&lt;/P&gt;&lt;P&gt;GET_TEMP_DIRECTORY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to get the directory, DIRECTORY_GET_CURRENT and GET_WINDOWS_DIRECTORY should help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note  - Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 10:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655956#M291170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T10:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Request for a function for path of directory ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655957#M291171</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;you have mentioned&lt;/P&gt;&lt;P&gt;**************************************************8&lt;/P&gt;&lt;P&gt;The follwing are the methods of CL_GUI_FRONTEND_SERVICES that deal with directories&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DIRECTORY_BROWSE&lt;/P&gt;&lt;P&gt;DIRECTORY_CREATE&lt;/P&gt;&lt;P&gt;DIRECTORY_DELETE&lt;/P&gt;&lt;P&gt;DIRECTORY_EXIST&lt;/P&gt;&lt;P&gt;DIRECTORY_GET_CURRENT&lt;/P&gt;&lt;P&gt;DIRECTORY_LIST_FILES&lt;/P&gt;&lt;P&gt;DIRECTORY_SET_CURRENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET_WINDOWS_DIRECTORY&lt;/P&gt;&lt;P&gt;GET_TEMP_DIRECTORY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to get the directory, DIRECTORY_GET_CURRENT and GET_WINDOWS_DIRECTORY should help you.&lt;/P&gt;&lt;P&gt;***********************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But none of the functions are existing in SAP ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 04:46:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655957#M291171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T04:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Request for a function for path of directory ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655958#M291172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anuj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are not functions, these are methods of the class CL_GUI_FRONTEND_SERVICES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to SE24, put in CL_GUI_FRONTEND_SERVICES  and you can see all the methods that I have mentioned here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample call&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GET_WINDOWS_DIRECTORY
    CHANGING
      WINDOWS_DIRECTORY    =
*    EXCEPTIONS
*      CNTL_ERROR           = 1
*      ERROR_NO_GUI         = 2
*      NOT_SUPPORTED_BY_GUI = 3
*      others               = 4
          .
  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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 04:56:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655958#M291172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T04:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Request for a function for path of directory ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655959#M291173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My sample code is..&lt;/P&gt;&lt;P&gt;*******************************************************************************************&lt;/P&gt;&lt;P&gt;REPORT  ZEST_DOWNLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_fname type STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.&lt;/P&gt;&lt;P&gt;  CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GET_WINDOWS_DIRECTORY&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      WINDOWS_DIRECTORY    = p_fname&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     CNTL_ERROR           = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     ERROR_NO_GUI         = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     NOT_SUPPORTED_BY_GUI = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     others               = 4&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: p_fname. &lt;/P&gt;&lt;P&gt;***************************************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i am executing this method 'GET_WINDOWS_DIRECTORY' function is getting called but there is no pop up for directory selection and neither it is raising any exceptions.. what should i do now ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 05:43:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655959#M291173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T05:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Request for a function for path of directory ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655960#M291174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; When i am executing this method&lt;/P&gt;&lt;P&gt;&amp;gt; 'GET_WINDOWS_DIRECTORY' function is getting called&lt;/P&gt;&lt;P&gt;&amp;gt; but there is no pop up for directory selection and&lt;/P&gt;&lt;P&gt;&amp;gt; neither it is raising any exceptions.. what should i&lt;/P&gt;&lt;P&gt;&amp;gt; do now ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Anuj Pachauri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same problem. Just add &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD CL_GUI_CFW=&amp;gt;FLUSH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or the FM CONTROL_FLUSH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CONTROL_FLUSH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the first method is called.&lt;/P&gt;&lt;P&gt;It transfers the buffered automation-queue to the frond-end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************************************************************&lt;/P&gt;&lt;P&gt;REPORT ZEST_DOWNLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_fname type STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GET_WINDOWS_DIRECTORY&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;WINDOWS_DIRECTORY = p_fname&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CNTL_ERROR = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ERROR_NO_GUI = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NOT_SUPPORTED_BY_GUI = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;others = 4&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt; CALL METHOD CL_GUI_CFW=&amp;gt;FLUSH.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: p_fname.&lt;/P&gt;&lt;P&gt;***************************************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should solve the problem. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Reward with points if helped, please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Erik Nagler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 14:45:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-a-function-for-path-of-directory/m-p/1655960#M291174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T14:45:19Z</dc:date>
    </item>
  </channel>
</rss>

