<?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 Split download file into multiple files in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-download-file-into-multiple-files/m-p/1682365#M300657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to split my internal table into multiple files when downloading. The split will be determined by contents of a specific field. The number of files to download can only be determined at runtime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Nov 2006 03:45:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-28T03:45:56Z</dc:date>
    <item>
      <title>Split download file into multiple files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-download-file-into-multiple-files/m-p/1682365#M300657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to split my internal table into multiple files when downloading. The split will be determined by contents of a specific field. The number of files to download can only be determined at runtime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 03:45:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-download-file-into-multiple-files/m-p/1682365#M300657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T03:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Split download file into multiple files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-download-file-into-multiple-files/m-p/1682366#M300658</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;You can split the data and download the data in multiple files based on the specific field value...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 03:50:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-download-file-into-multiple-files/m-p/1682366#M300658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T03:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Split download file into multiple files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-download-file-into-multiple-files/m-p/1682367#M300659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;P&gt;*declare itab1 same as itab&lt;/P&gt;&lt;P&gt;data : filename(25).&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  move-corresponding itab to itab1.&lt;/P&gt;&lt;P&gt;  append itab1.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  at end of BUKRS.&lt;/P&gt;&lt;P&gt;        *use GUI_DOWNLOD    FM here&lt;/P&gt;&lt;P&gt;   *pass itab1 every time here&lt;/P&gt;&lt;P&gt;   *change the filename everytime&lt;/P&gt;&lt;P&gt;     concatenate 'Company_' itab-bukrs into filename.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;   refresh itab1.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  endat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 03:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-download-file-into-multiple-files/m-p/1682367#M300659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T03:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Split download file into multiple files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-download-file-into-multiple-files/m-p/1682368#M300660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk this thread with the same question and same answer given by Rameshbabu Chirumamilla&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2659888"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 04:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-download-file-into-multiple-files/m-p/1682368#M300660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T04:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Split download file into multiple files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-download-file-into-multiple-files/m-p/1682369#M300661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; my requirement is i want to split records into multiple files not basing on the field condition but basing on the arithmetic operations..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like I have 12 records and separation no is given that is 5.Now i have to divide the records by 12 so that first 5 records go into first flatfile and next 5 to second flat file and remaining 2 records to 3rd flatfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible.Please help me solve this issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 05:13:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-download-file-into-multiple-files/m-p/1682369#M300661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T05:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Split download file into multiple files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-download-file-into-multiple-files/m-p/1682370#M300662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you just need a counter ...&lt;/P&gt;&lt;P&gt;You create a 2nd itab for the file creation (collector).&lt;/P&gt;&lt;P&gt;You loop over the main itab and based on your rule and the sy-tabix you fill the 2nd itab, write it to the file (work station or server), refresh collector itab and continue the loop.&lt;/P&gt;&lt;P&gt;Write process, file creation depends on used technology.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example solution:&lt;/P&gt;&lt;P&gt;****************&lt;/P&gt;&lt;P&gt;c_constant type i value '5'.&lt;/P&gt;&lt;P&gt;split type i.&lt;/P&gt;&lt;P&gt;v_count type i.&lt;/P&gt;&lt;P&gt;v_file_count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe  itab1 lines to v_count.&lt;/P&gt;&lt;P&gt;loop at itab1 into wa.&lt;/P&gt;&lt;P&gt;split = split + 1.&lt;/P&gt;&lt;P&gt;move wa into wa_collector.&lt;/P&gt;&lt;P&gt;append wa_collector to itab2.&lt;/P&gt;&lt;P&gt;If split EQ c_constant&lt;/P&gt;&lt;P&gt;or sy-tabix EQ v_count.&lt;/P&gt;&lt;P&gt;v_file_count = v_file_count + 1.&lt;/P&gt;&lt;P&gt;&amp;lt; open file / export however you already planed to do it&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt; Filename will be dynamic on counter and other variable choice&amp;gt;&lt;/P&gt;&lt;P&gt;clear split.&lt;/P&gt;&lt;P&gt;refresh itab2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;enloop.&lt;/P&gt;&lt;P&gt;****************&lt;/P&gt;&lt;P&gt;But that was a very rough an simple one.&lt;/P&gt;&lt;P&gt;When I would write it into the program I would change the fixed parts. And you need to check from the example if the check agains the counted entries is sufficient to write the last two entries in the thrid file.&lt;/P&gt;&lt;P&gt;That can be done more dynamic, based on input fields, arithmetic rules, counting of entries etc. check the mod command ect. I have done things like that often with other purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: The more I check the example above, the more I think you should take it really only as an sample idea. I would indeed make it nicer with less counters etc. and some assign ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 20:12:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-download-file-into-multiple-files/m-p/1682370#M300662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T20:12:58Z</dc:date>
    </item>
  </channel>
</rss>

