<?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: Uploading text files in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969153#M397805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SXPG_CALL_SYSTEM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use this function module to get all the file on the presentation layer only u have to do is to pass the path C:\file\test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in exporting parameters u have a commandname here u have to pass a UNIX Script to get the file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2007 12:54:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-28T12:54:41Z</dc:date>
    <item>
      <title>Uploading text files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969147#M397799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to upload and download 3 or 4 text files from and to Presentation server using just the path?&lt;/P&gt;&lt;P&gt;For eg: C:\file\test\file1.txt,C:\file\test\file2.txt,C:\file\test\file3.txt.The path is C:\file\test\.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 12:40:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969147#M397799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T12:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading text files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969148#M397800</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;1.Determine no of files in the directory using method  CL_GUI_FRONTEND_SERVICES=&amp;gt;DIRECTORY_LIST_FILES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Search your files using pattern&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.For each entry retrieved in above step do the following.&lt;/P&gt;&lt;P&gt;      using GUI_UPLOAD or GUI_DOWNLOAD upload or down load the text files&lt;/P&gt;&lt;P&gt;  Endfor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If helps plz reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhupal Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 12:46:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969148#M397800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T12:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading text files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969149#M397801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to concatenate the file path with the file1/file2/file3 each time when you call the function module GUI_DOWNLOAD/ GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate p_filepath 'file1.txt' into v_filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function GUI_UPLOAD...&lt;/P&gt;&lt;P&gt;exporting filename = v_filename&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate p_filepath 'file2.txt' into v_filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function GUI_UPLOAD...&lt;/P&gt;&lt;P&gt;exporting filename = v_filename&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 12:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969149#M397801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T12:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading text files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969150#M397802</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 example code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: i_file like rlgrap-filename value '/usr/sap/tmp/'.  
DATA: begin of it_datatab occurs 0,
  row(500) type c,
 end of it_datatab.

DATA: file like rlgrap-filename.
data: cnt type i.
cnt = 1.

DO 5 Times.    " based on your requirment
concatinate i_file 'text' cnt 'txt' into file.
  CALL FUNCTION 'GUI_UPLOAD'
       EXPORTING
            filename        = file
            filetype        = 'ASC'
       TABLES
            data_tab        = it_datatab  "ITBL_IN_RECORD[]
       EXCEPTIONS
            file_open_error = 1
            OTHERS          = 2.
ENDDO.&lt;/CODE&gt;&lt;/PRE&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>Wed, 28 Feb 2007 12:49:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969150#M397802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T12:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading text files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969151#M397803</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;Using the function module GUI_DOWNLOAD/ GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;You have to do it for each file. You cannot upload/download using the directory name C:\file\test\ directly. &lt;/P&gt;&lt;P&gt;You need to call the FM 4 times for downloading 4 files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 12:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969151#M397803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T12:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading text files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969152#M397804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;The number of files is unknown.&lt;/P&gt;&lt;P&gt;But what I am actually trying to do is create .BAT files.and then convert them to text files which is uploaded.(it should have all the the file names(whatever the number) along with the byte and directory  details).But the problem is the .BAT file is not getting cnverted to a text file using the function module 'WS_EXECUTE' or 'ITS_EXECUTE'.It is giving errors.Will the CL_GUI_FRONTEND_SERVICES=&amp;gt;DIRECTORY_LIST_FILES. provide byte and dir info too along with the file names?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 12:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969152#M397804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T12:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading text files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969153#M397805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SXPG_CALL_SYSTEM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use this function module to get all the file on the presentation layer only u have to do is to pass the path C:\file\test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in exporting parameters u have a commandname here u have to pass a UNIX Script to get the file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 12:54:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969153#M397805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T12:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading text files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969154#M397806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do we provide the Unix script for commnd name?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 13:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969154#M397806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T13:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading text files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969155#M397807</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 hope below code will helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
    EXPORTING
      commandname                   ='Z_UNIX_LIST'
      operatingsystem               =sy-opsys
      additional_parameters         = lv_add_parms
    IMPORTING
      status                        = lv_status
    TABLES
      exec_protocol                 = lt_files_list
    EXCEPTIONS
      no_permission                 = 1
      command_not_found             = 2
      parameters_too_long           = 3
      security_risk                 = 4
      wrong_check_call_interface    = 5
      program_start_error           = 6
      program_termination_error     = 7
      x_error                       = 8
      parameter_expected            = 9
      too_many_parameters           = 10
      illegal_command               = 11
      wrong_asynchronous_parameters = 12
      cant_enq_tbtco_entry          = 13
      jobcount_generation_error     = 14
      OTHERS                        = 15.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;if helps plz reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhupal Reddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Bhupal Reddy Vendidandi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 13:16:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969155#M397807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T13:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading text files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969156#M397808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shouldn't Z_UNIX_LIST be maintained in that case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 13:49:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-files/m-p/1969156#M397808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T13:49:12Z</dc:date>
    </item>
  </channel>
</rss>

