<?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: method GET_WINDOWS_DIRECTORYofCL_GUI_FRONTEND_SERVICES class  givingproblem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-get-windows-directoryofcl-gui-frontend-services-class-givingproblem/m-p/3800228#M913882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which method are you calling?  Your post title says GET_WINDOWS_DIRECTORY and your code says GET_DESKTOP_DIRECTORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whichever, they are static methods.  So you don't create an instance of them.  You call them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GET_WINDOWS_DIRECTORY...&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GET_DESKTOP_DIRECTORY...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And why are you then using the obsolete FM GUI_DOWNLOAD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead use CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_DOWNLOAD...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2008 07:36:11 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2008-05-14T07:36:11Z</dc:date>
    <item>
      <title>method GET_WINDOWS_DIRECTORYofCL_GUI_FRONTEND_SERVICES class  givingproblem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-get-windows-directoryofcl-gui-frontend-services-class-givingproblem/m-p/3800227#M913881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey guys,&lt;/P&gt;&lt;P&gt;   in my program b4 calling gui_download i need to take the path of desktop .&lt;/P&gt;&lt;P&gt;  so i am calling the method GET_WINDOWS_DIRECTORYofCL_GUI_FRONTEND_SERVICES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT v_guiobj.&lt;/P&gt;&lt;P&gt;CALL METHOD v_guiobj-&amp;gt;GET_DESKTOP_DIRECTORY&lt;/P&gt;&lt;P&gt;changing&lt;/P&gt;&lt;P&gt;DESKTOP_DIRECTORY =   V_DESKTOP_DIRECTORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt; CONCATENATE V_DESKTOP_DIRECTORY '\smrt'  '.pdf' INTO V_DESKTOP_DIRECTORY.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then coding for &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follows..&lt;/P&gt;&lt;P&gt;the problem i am facing is..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the variable  V_DESKTOP_DIRECTORY is not getting its value after the method is called......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why?&lt;/P&gt;&lt;P&gt;how to correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 07:28:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-get-windows-directoryofcl-gui-frontend-services-class-givingproblem/m-p/3800227#M913881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T07:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: method GET_WINDOWS_DIRECTORYofCL_GUI_FRONTEND_SERVICES class  givingproblem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-get-windows-directoryofcl-gui-frontend-services-class-givingproblem/m-p/3800228#M913882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which method are you calling?  Your post title says GET_WINDOWS_DIRECTORY and your code says GET_DESKTOP_DIRECTORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whichever, they are static methods.  So you don't create an instance of them.  You call them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GET_WINDOWS_DIRECTORY...&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GET_DESKTOP_DIRECTORY...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And why are you then using the obsolete FM GUI_DOWNLOAD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead use CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_DOWNLOAD...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 07:36:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-get-windows-directoryofcl-gui-frontend-services-class-givingproblem/m-p/3800228#M913882</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-05-14T07:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: method GET_WINDOWS_DIRECTORYofCL_GUI_FRONTEND_SERVICES class  givingproblem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-get-windows-directoryofcl-gui-frontend-services-class-givingproblem/m-p/3800229#M913883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yea&lt;/P&gt;&lt;P&gt; i am calling GET_DESKTOP_DIRECTORY.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mstake in title..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also i have used &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_DOWNLOAD...and seen..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yet no use..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GET_DESKTOP_DIRECTORY&lt;/P&gt;&lt;P&gt;changing&lt;/P&gt;&lt;P&gt;DESKTOP_DIRECTORY = V_DESKTOP_DIRECTORY.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;doesnot give any value into  V_DESKTOP_DIRECTORY..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 07:54:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-get-windows-directoryofcl-gui-frontend-services-class-givingproblem/m-p/3800229#M913883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T07:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: method GET_WINDOWS_DIRECTORYofCL_GUI_FRONTEND_SERVICES class  givingproblem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-get-windows-directoryofcl-gui-frontend-services-class-givingproblem/m-p/3800230#M913884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;intrestingly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i use &lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GET_DESKTOP_DIRECTORY&lt;/P&gt;&lt;P&gt;changing&lt;/P&gt;&lt;P&gt;DESKTOP_DIRECTORY = V_DESKTOP_DIRECTORY.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&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 = V_DESKTOP_DIRECTORY.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; V_DESKTOP_DIRECTORY gets correct value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the end of the call&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      bin_filesize            = v_bin_filesize&lt;/P&gt;&lt;P&gt;      filename                = V_DESKTOP_DIRECTORY&lt;/P&gt;&lt;P&gt;      filetype                = 'BIN'&lt;/P&gt;&lt;P&gt;    changing&lt;/P&gt;&lt;P&gt;      DATA_TAB               = it_lines&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_write_error        = 1&lt;/P&gt;&lt;P&gt;      no_batch                = 2&lt;/P&gt;&lt;P&gt;      gui_refuse_filetransfer = 3&lt;/P&gt;&lt;P&gt;      invalid_type            = 4&lt;/P&gt;&lt;P&gt;      no_authority            = 5&lt;/P&gt;&lt;P&gt;      unknown_error           = 6&lt;/P&gt;&lt;P&gt;      header_not_allowed      = 7&lt;/P&gt;&lt;P&gt;      separator_not_allowed   = 8&lt;/P&gt;&lt;P&gt;      filesize_not_allowed    = 9&lt;/P&gt;&lt;P&gt;      header_too_long         = 10&lt;/P&gt;&lt;P&gt;      dp_error_create         = 11&lt;/P&gt;&lt;P&gt;      dp_error_send           = 12&lt;/P&gt;&lt;P&gt;      dp_error_write          = 13&lt;/P&gt;&lt;P&gt;      unknown_dp_error        = 14&lt;/P&gt;&lt;P&gt;      access_denied           = 15&lt;/P&gt;&lt;P&gt;      dp_out_of_memory        = 16&lt;/P&gt;&lt;P&gt;      disk_full               = 17&lt;/P&gt;&lt;P&gt;      dp_timeout              = 18&lt;/P&gt;&lt;P&gt;      file_not_found          = 19&lt;/P&gt;&lt;P&gt;      dataprovider_exception  = 20&lt;/P&gt;&lt;P&gt;      control_flush_error     = 21&lt;/P&gt;&lt;P&gt;      OTHERS                  = 22.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i found this in debugging..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;value of V_DESKTOP_DIRECTORY is ' ' before call of CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;but correct value is passed at the end...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but then during call&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its taking ' ' and not able to download...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 07:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-get-windows-directoryofcl-gui-frontend-services-class-givingproblem/m-p/3800230#M913884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T07:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: method GET_WINDOWS_DIRECTORYofCL_GUI_FRONTEND_SERVICES class  givingproblem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-get-windows-directoryofcl-gui-frontend-services-class-givingproblem/m-p/3800231#M913885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you working on SAP GUI for Windows with an old version, if yes look at [Note 913556 - Enhancement CL_GUI_FRONTEND_SERVICES for SAP GUI for Windows|https://service.sap.com/sap/support/notes/913556]&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;STRONG&gt;Symptom&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GET_PLATFORM, GET_LF_FOR_DESTINATION_GU, GET_TEMP_DIRECTORY and GET_DESKTOP_DIRECTORY methods of the CL_GUI_FRONTEND_SERVICES class are not supported in SAP GUI for Windows. If you call these methods, the NOT_SUPPORTED_BY_GUI exception occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reason and Prerequisites&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The methods are not supported in SAP GUI for Windows.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Else look at thread &lt;SPAN __jive_macro_name="thread" id="258230"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 08:28:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-get-windows-directoryofcl-gui-frontend-services-class-givingproblem/m-p/3800231#M913885</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-05-14T08:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: method GET_WINDOWS_DIRECTORYofCL_GUI_FRONTEND_SERVICES class  givingproblem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-get-windows-directoryofcl-gui-frontend-services-class-givingproblem/m-p/3800232#M913886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After your call to GET_DESKTOP_DIRECTORY, &lt;STRONG&gt;CALL METHOD cl_gui_cfw=&amp;gt;flush&lt;/STRONG&gt;.  It worked nicely for me.  Obviously the problem described in the OSS note above has been fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: v_desktop_directory TYPE string.

CALL METHOD cl_gui_frontend_services=&amp;gt;get_desktop_directory
  CHANGING
    desktop_directory    = v_desktop_directory.

CALL METHOD cl_gui_cfw=&amp;gt;flush.

WRITE v_desktop_directory.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matthew Billingham on May 14, 2008 10:36 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 08:33:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-get-windows-directoryofcl-gui-frontend-services-class-givingproblem/m-p/3800232#M913886</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-05-14T08:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: method GET_WINDOWS_DIRECTORYofCL_GUI_FRONTEND_SERVICES class  givingproblem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-get-windows-directoryofcl-gui-frontend-services-class-givingproblem/m-p/3800233#M913887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 09:10:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-get-windows-directoryofcl-gui-frontend-services-class-givingproblem/m-p/3800233#M913887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T09:10:02Z</dc:date>
    </item>
  </channel>
</rss>

