<?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 to select file from the application server? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-select-file-from-the-application-server/m-p/2768021#M644767</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;&lt;/P&gt;&lt;P&gt;you should use 'open_dataset'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grtz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Koen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2007 12:40:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-11T12:40:55Z</dc:date>
    <item>
      <title>Function Module to select file from the application server?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-select-file-from-the-application-server/m-p/2768020#M644766</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;which function module can be used to select the file from the application server as to select file from the presentation server we use f4-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;ekta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 12:39:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-select-file-from-the-application-server/m-p/2768020#M644766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T12:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to select file from the application server?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-select-file-from-the-application-server/m-p/2768021#M644767</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;&lt;/P&gt;&lt;P&gt;you should use 'open_dataset'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grtz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Koen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 12:40:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-select-file-from-the-application-server/m-p/2768021#M644767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T12:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to select file from the application server?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-select-file-from-the-application-server/m-p/2768022#M644768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here is the function module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            directory        = ' '&lt;/P&gt;&lt;P&gt;            filemask         = ' '&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            serverfile       = p_afile&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            canceled_by_user = 1&lt;/P&gt;&lt;P&gt;            OTHERS           = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 12:42:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-select-file-from-the-application-server/m-p/2768022#M644768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T12:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to select file from the application server?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-select-file-from-the-application-server/m-p/2768023#M644769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you know the complete network path to the application server, you can use the GUI frontend control to do this.  For example, this works good for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0001.


parameters: p_file type localfile.


at selection-screen on value-request for p_file.


  data: ifile type filetable.
  data: xfile like line of ifile.
  data: rc type i.

  call method cl_gui_frontend_services=&amp;gt;file_open_dialog
    exporting
       initial_directory
        = '\&amp;lt;host_name&amp;gt;usrsapTST'
    changing
      file_table              = ifile
      rc                      = rc.

  read table ifile into xfile index 1.
  check sy-subrc = 0.
  p_file = xfile-filename.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 12:44:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-select-file-from-the-application-server/m-p/2768023#M644769</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-09-11T12:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to select file from the application server?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-select-file-from-the-application-server/m-p/2768024#M644770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The FM used for obtaining an F4 help from application server is - /SAPDMC/LSM_F4_SERVER_FILE. &lt;/P&gt;&lt;P&gt;The FM used for obtaining files from application server - SUBST_GET_FILE_LIST.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 12:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-select-file-from-the-application-server/m-p/2768024#M644770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T12:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to select file from the application server?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-select-file-from-the-application-server/m-p/2768025#M644771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pl try the function call 'RZL_READ_DIR_LOCAL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 12:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-select-file-from-the-application-server/m-p/2768025#M644771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T12:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to select file from the application server?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-select-file-from-the-application-server/m-p/2768026#M644772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thank all of the people who responded this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;ekta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 12:08:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-select-file-from-the-application-server/m-p/2768026#M644772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T12:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to select file from the application server?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-select-file-from-the-application-server/m-p/2768027#M644773</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;There is one transaction is for download a file from application server &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CG3Y  and CG3Z&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to use this for download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u want to print a file in application server u have to write a code as following way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET v_file FOR &amp;lt;b&amp;gt;OUTPUT&amp;lt;/b&amp;gt; IN TEXT MODE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;OUTPUT&amp;lt;/b&amp;gt; for writing a text into application server &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;INPUT&amp;lt;/b&amp;gt;  for reading a text from application server..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward me a points if it use full answer...&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 12:23:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-select-file-from-the-application-server/m-p/2768027#M644773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T12:23:07Z</dc:date>
    </item>
  </channel>
</rss>

