<?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: CL_GUI_FRONTEND_SERVICES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-frontend-services/m-p/2361466#M522439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can have a look on this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*- Get current windows directory of user
  call method cl_gui_frontend_services=&amp;gt;directory_get_current
    CHANGING
      current_directory            = lv_currdir
    EXCEPTIONS
      directory_get_current_failed = 1
      cntl_error                   = 2.
*- Only for 4.7 or higher :
*      error_no_gui                 = 3
*      not_supported_by_gui         = 4
*      OTHERS                       = 5.

*- Open windows popup for file selection
  call method cl_gui_frontend_services=&amp;gt;file_open_dialog
    EXPORTING
      initial_directory = lv_currdir
    CHANGING
      file_table        = lv_files
      rc                = lv_rc.

*- Get selected file from network or pc
  read table lv_files index 1 into lv_fname.


  call method cl_gui_frontend_services=&amp;gt;gui_upload
    EXPORTING
      filename        = lv_fname
      filetype        = lc_type
    CHANGING
      data_tab        = pt_f_cont[]
    EXCEPTIONS
      file_open_error = 1
      file_read_error = 2
      bad_data_format = 8
      others          = 19.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2007 10:28:13 GMT</pubDate>
    <dc:creator>Peter_Inotai</dc:creator>
    <dc:date>2007-06-14T10:28:13Z</dc:date>
    <item>
      <title>CL_GUI_FRONTEND_SERVICES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-frontend-services/m-p/2361465#M522438</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 am new to OOP ABAP.i want the code to upload a flat file from PC to appl server using CL_GUI_FRONTEND_SERVICES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rakesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 10:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-frontend-services/m-p/2361465#M522438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T10:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_FRONTEND_SERVICES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-frontend-services/m-p/2361466#M522439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can have a look on this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*- Get current windows directory of user
  call method cl_gui_frontend_services=&amp;gt;directory_get_current
    CHANGING
      current_directory            = lv_currdir
    EXCEPTIONS
      directory_get_current_failed = 1
      cntl_error                   = 2.
*- Only for 4.7 or higher :
*      error_no_gui                 = 3
*      not_supported_by_gui         = 4
*      OTHERS                       = 5.

*- Open windows popup for file selection
  call method cl_gui_frontend_services=&amp;gt;file_open_dialog
    EXPORTING
      initial_directory = lv_currdir
    CHANGING
      file_table        = lv_files
      rc                = lv_rc.

*- Get selected file from network or pc
  read table lv_files index 1 into lv_fname.


  call method cl_gui_frontend_services=&amp;gt;gui_upload
    EXPORTING
      filename        = lv_fname
      filetype        = lc_type
    CHANGING
      data_tab        = pt_f_cont[]
    EXCEPTIONS
      file_open_error = 1
      file_read_error = 2
      bad_data_format = 8
      others          = 19.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 10:28:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-frontend-services/m-p/2361466#M522439</guid>
      <dc:creator>Peter_Inotai</dc:creator>
      <dc:date>2007-06-14T10:28:13Z</dc:date>
    </item>
  </channel>
</rss>

