<?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: Transferring multiple files to application server. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067930#M93908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FKBER is only 4 characters to begin with.&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>Mon, 19 Dec 2005 20:08:16 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-12-19T20:08:16Z</dc:date>
    <item>
      <title>Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067908#M93886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I have 4 internal table &amp;amp; these I have to send to application server as 4 files... I do not want to do 4 time OPen dataset, transfer dataset &amp;amp; close dataset ... Is there any other way to do in one loop... if example code is provided that would be of great help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;SB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 15:00:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067908#M93886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T15:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067909#M93887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SB,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do is have a perform which accepts internal table name and file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the perform , have open dataset, loop at internal table and transfer the data to appl server file, and then call close dataset at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, One perform subroutine and multiple calls with different parameter values ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 15:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067909#M93887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T15:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067910#M93888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One perform with different parameter ... can you please explain more... for eg. the internal table are t_textfil1.txt, t_textfile2.txt, t_textfile3.txt, and t_textfile4.txt ... how do I use them in my perform statement??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 15:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067910#M93888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T15:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067911#M93889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;something like&lt;/P&gt;&lt;P&gt; do 4 times.&lt;/P&gt;&lt;P&gt; open dataset sy-index for output.&lt;/P&gt;&lt;P&gt;  transfer data.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt;Bikash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 15:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067911#M93889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T15:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067912#M93890</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 that and fill an itab with filename and itabname:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at t_file.

open dataset t_file-name ...

assign t_file-itab_name to &amp;lt;f&amp;gt;.

loop at &amp;lt;f&amp;gt; into wa.
 transfer wa to t_file-name .
endloop.

 close dataset t_file-name .
...


endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 15:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067912#M93890</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-12-15T15:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067913#M93891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would say that you need to do it 4 times.  You can code it once in a perform and then call it 4 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: itab type table of mara
data: xtab type mara.
data: p_file type localfile.

field-symbols: &amp;lt;fs_datatab&amp;gt; type table,
               &amp;lt;fs_wa&amp;gt; .

perform download_file using itab xtab p_file.


form download_file using data_tab wa file.

assign (data_tab) to &amp;lt;fs_datatab&amp;gt;.
assign (wa) to &amp;lt;fs_wa&amp;gt;.

open dataset file for output binary mode.
if sy-subrc = 0.
loop at &amp;lt;fs_datatab&amp;gt; into &amp;lt;fs_wa&amp;gt;.
transfer &amp;lt;fs_wa&amp;gt; to file.
endloop.
endif.

close dataset file.

endform.

&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>Thu, 15 Dec 2005 15:12:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067913#M93891</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-15T15:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067914#M93892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what I am trying to do now is once my t_txtfile1 internal table is getting populated I am moving the table name to t_filename which as 2 feilds... t_filename-name &amp;amp; t_filename-path....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 15:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067914#M93892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T15:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067915#M93893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you will need to concatenate the path and file name together before using the OPEN DATASET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: filepathname(100) type c.

concatenate t_filename-path t_filename-name 
into filepathname.&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>Thu, 15 Dec 2005 15:40:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067915#M93893</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-15T15:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067916#M93894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for 1st Internal table&lt;/P&gt;&lt;P&gt;ITAB_FINAL[] = ITAB1[] . "Your 1st internal table&lt;/P&gt;&lt;P&gt;PERFORM download_file using FILENAME1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for 2nd internal table&lt;/P&gt;&lt;P&gt;clear : itab_final, itab_final[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB_FINAL[] = ITAB2[] . "Your 2nd internal table&lt;/P&gt;&lt;P&gt;PERFORM download_file using  FILENAME2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--like this you can call the same FORM download_file any no of times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM DOWNLOAD_FILE using  p_fname.&lt;/P&gt;&lt;P&gt;*--here you use OPEN dataset etc..&lt;/P&gt;&lt;P&gt;  open dataset p_fname for output in text mode encoding default.&lt;/P&gt;&lt;P&gt;   loop at itab_final.&lt;/P&gt;&lt;P&gt;     transfer itab_final-line to p_fname.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt; close dataset p_fname.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 15:54:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067916#M93894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T15:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067917#M93895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doing &lt;/P&gt;&lt;P&gt;ITAB_FINAL[] = ITAB1[] &lt;/P&gt;&lt;P&gt;ITAB_FINAL[] = ITAB2[] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will lead to give me 1 final table ... I don't want that ... these are 4 different tables &amp;amp; all of them have different set of data... if I combine them then the data becomes meaningless....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 16:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067917#M93895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T16:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067918#M93896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly, that's why you need to use field symbols as I suggested in the previous post.&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>Thu, 15 Dec 2005 16:05:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067918#M93896</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-15T16:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067919#M93897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In my T_filename table I am capturing the internal table name in the feild t_filename-name... and the path of the application server in the feild t_filename-path...&lt;/P&gt;&lt;P&gt;Iam doing this by:-&lt;/P&gt;&lt;P&gt;     Select....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE I004.          " No data found&lt;/P&gt;&lt;P&gt;     ELSE.&lt;/P&gt;&lt;P&gt;      SORT T_BUKRS BY BUKRS.&lt;/P&gt;&lt;P&gt;      MOVE 'T_BUKRS' TO T_FILENAME-NAME.&lt;/P&gt;&lt;P&gt;      MOVE '/holdarchlogs/outbound/Comapny_Code_Text.txt' TO T_FILENAME-PATH.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;This I am doing for all success Select's ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 16:11:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067919#M93897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T16:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067920#M93898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, I see.  I are still having a problem?&lt;/P&gt;&lt;P&gt;Make sure that you APPEND to your t_filename table.&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>Thu, 15 Dec 2005 16:22:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067920#M93898</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-15T16:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067921#M93899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;Yes I did that... but a new erroe is coming...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM DWNLOAD_DATA .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT T_FILENAME.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Open the dataset file.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   OPEN DATASET T_FILENAME-PATH FOR OUTPUT IN TEXT MODE ENCODING DEFAULT&lt;/P&gt;&lt;P&gt;.   IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;     MESSAGE I006.          " Dataset file could not be opened&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Transfer Comapny code to the application server.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IF T_FILENAME-NAME = T_BUKRS.&lt;/P&gt;&lt;P&gt;     LOOP AT T_BUKRS &lt;/P&gt;&lt;P&gt;       TRANSFER T_BUKRS TO T_FILENAME-PATH.&lt;/P&gt;&lt;P&gt;     ENDLOOP.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here error is "Transfer T_BUKRS is not expected."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " DWNLOAD_DATA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 16:47:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067921#M93899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T16:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067922#M93900</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;  When I am transferring data to the application server... I want to that the columns in the application file should be seen distinctively ... is there any method to give lengths to the columns??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;-SB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 19:19:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067922#M93900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T19:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067923#M93901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are missing the period after the LOOP statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

LOOP AT T_BUKRS &amp;lt;b&amp;gt; .    "&amp;lt;&amp;lt;-----Need Period here&amp;lt;/b&amp;gt;
TRANSFER T_BUKRS TO T_FILENAME-PATH.
ENDLOOP.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought that you didn't want to do 4 seperate loops, you are not using fields symbols in your code, why not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I think that when writing to the file, it will write the data with the lengths specified by the internal table structure.&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>Thu, 15 Dec 2005 19:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067923#M93901</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-15T19:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067924#M93902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see this sample program.  It is pretty much what I think you want to do.  Using field symbols, we are passing th table, wa, and file name to one routine that downloads the data.  This works really good in my system.  Try it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002.


data: it001 type table of t001.
data: xt001 type t001.

data: it001w type table of t001w.
data: xt001w type t001w.

types: begin of t_files,
       table(20) type c,
       wa(20) type c,
       file(100) type c,
       end of t_files.

data: ifiles type table of t_files.
data: xfiles type t_files.

field-symbols: &amp;lt;fs_datatab&amp;gt; type table,
               &amp;lt;fs_wa&amp;gt; .

start-of-selection.

  xfiles-table = 'IT001'.
  xfiles-wa    = 'XT001'.
  xfiles-file  = '/usr/sap/TST/t001.txt'.
  append xfiles to ifiles.

  xfiles-table = 'IT001W'.
  xfiles-wa    = 'XT001W'.
  xfiles-file  = '/usr/sap/TST/t001W.txt'.
  append xfiles to ifiles.


  select * from t001 into table it001.
  select * from t001w into table it001w.


  loop at ifiles into xfiles.

    perform download_file using xfiles-table
                                xfiles-wa
                                xfiles-file.

  endloop.

*---------------------------------------------------------------------*
*       FORM download_file                                            *
*---------------------------------------------------------------------*
form download_file using data_tab wa file.

  assign (data_tab) to &amp;lt;fs_datatab&amp;gt;.
  assign (wa) to &amp;lt;fs_wa&amp;gt;.

  open dataset file for output in binary mode.
  if sy-subrc = 0.
    loop at &amp;lt;fs_datatab&amp;gt; into &amp;lt;fs_wa&amp;gt;.
      transfer &amp;lt;fs_wa&amp;gt; to file.
    endloop.
  endif.

  close dataset file.

endform.

&lt;/CODE&gt;&lt;/PRE&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>Thu, 15 Dec 2005 19:44:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067924#M93902</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-15T19:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067925#M93903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; My prg is giving a short dump when it is reading T001W. Error description is UC_OBJECTS_NOT_CHARLIKE...&lt;/P&gt;&lt;P&gt;The current statement is defined for character-type data objects only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you once check this??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 21:27:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067925#M93903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T21:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067926#M93904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm....Interesting.  What version of r/3 are you working with.&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>Thu, 15 Dec 2005 21:30:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067926#M93904</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-15T21:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring multiple files to application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067927#M93905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it with T000 instead.  This may be a unicode thing. I'm not really sure.  You are probably not using T001w in your requirement anyway, right?&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;PRE&gt;&lt;CODE&gt;

report zrich_0002.


data: it001 type table of t001.
data: xt001 type t001.

data: it000 type table of t000.
data: xt000 type t000.

types: begin of t_files,
       table(20) type c,
       wa(20) type c,
       file(100) type c,
       end of t_files.

data: ifiles type table of t_files.
data: xfiles type t_files.

field-symbols: &amp;lt;fs_datatab&amp;gt; type table,
               &amp;lt;fs_wa&amp;gt; .

start-of-selection.

  xfiles-table = 'IT001'.
  xfiles-wa    = 'XT001'.
  xfiles-file  = '/usr/sap/TST/t001.txt'.
  append xfiles to ifiles.

  xfiles-table = 'IT000'.
  xfiles-wa    = 'XT000'.
  xfiles-file  = '/usr/sap/TST/t000.txt'.
  append xfiles to ifiles.


  select * from t001 into table it001.
  select * from t000 into table it000.


  loop at ifiles into xfiles.

    perform download_file using xfiles-table
                                xfiles-wa
                                xfiles-file.

  endloop.

*---------------------------------------------------------------------*
*       FORM download_file                                            *
*---------------------------------------------------------------------*
form download_file using data_tab wa file.

  assign (data_tab) to &amp;lt;fs_datatab&amp;gt;.
  assign (wa) to &amp;lt;fs_wa&amp;gt;.

  open dataset file for output in binary mode.
  if sy-subrc = 0.
    loop at &amp;lt;fs_datatab&amp;gt; into &amp;lt;fs_wa&amp;gt;.
      transfer &amp;lt;fs_wa&amp;gt; to file.
    endloop.
  endif.

  close dataset file.

endform.

&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>Thu, 15 Dec 2005 21:33:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-multiple-files-to-application-server/m-p/1067927#M93905</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-15T21:33:42Z</dc:date>
    </item>
  </channel>
</rss>

