<?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: Problem downloading from the application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-downloading-from-the-application-server/m-p/3480609#M836707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey ramiro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class cl_abap_char_utilities definition load.&lt;/P&gt;&lt;P&gt;constants:&lt;/P&gt;&lt;P&gt;tab type c value cl_abap_char_utilities=&amp;gt;HORIZONTAL_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : v_file TYPE rlgrap-filename VALUE 'D:\usr\sap\TST\DVEBMGS01\data\salesly.txt',&lt;/P&gt;&lt;P&gt;       gs_data type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET v_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT gt_salesitm INTO gs_salesitm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate gs_salesitm-vkorg gs_salesitm-mtpos_mara gs_salesitm-region gs_salesitm-office gs_salesitm-text&lt;/P&gt;&lt;P&gt;            gs_salesitm-hkunnr gs_salesitm-kunnr gs_salesitm-kunnr1 gs_salesitm-ernam gs_salesitm-kunnr2&lt;/P&gt;&lt;P&gt;            gs_salesitm-text1 gs_salesitm-text2 gs_salesitm-matnr gs_salesitm-buy gs_salesitm-week&lt;/P&gt;&lt;P&gt;            gs_salesitm-case gs_salesitm-doll gs_salesitm-pound into gs_data separated by tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TRANSFER gs_data TO v_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  WRITE : /'data written successfully'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET v_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rock&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Mar 2008 15:55:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-03T15:55:57Z</dc:date>
    <item>
      <title>Problem downloading from the application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-downloading-from-the-application-server/m-p/3480607#M836705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using datasets to write a file onto the application server. but when i tried to download it on the dsktop its giving me a dump saying the file cannot handle more than 75mb of data. What wuld be the solution for this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rock.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 15:39:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-downloading-from-the-application-server/m-p/3480607#M836705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T15:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem downloading from the application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-downloading-from-the-application-server/m-p/3480608#M836706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;75 mb???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is a binary file?&lt;/P&gt;&lt;P&gt;Show your code, you're probably using an infinite loop right now&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 15:49:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-downloading-from-the-application-server/m-p/3480608#M836706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T15:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem downloading from the application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-downloading-from-the-application-server/m-p/3480609#M836707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey ramiro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class cl_abap_char_utilities definition load.&lt;/P&gt;&lt;P&gt;constants:&lt;/P&gt;&lt;P&gt;tab type c value cl_abap_char_utilities=&amp;gt;HORIZONTAL_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : v_file TYPE rlgrap-filename VALUE 'D:\usr\sap\TST\DVEBMGS01\data\salesly.txt',&lt;/P&gt;&lt;P&gt;       gs_data type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET v_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT gt_salesitm INTO gs_salesitm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate gs_salesitm-vkorg gs_salesitm-mtpos_mara gs_salesitm-region gs_salesitm-office gs_salesitm-text&lt;/P&gt;&lt;P&gt;            gs_salesitm-hkunnr gs_salesitm-kunnr gs_salesitm-kunnr1 gs_salesitm-ernam gs_salesitm-kunnr2&lt;/P&gt;&lt;P&gt;            gs_salesitm-text1 gs_salesitm-text2 gs_salesitm-matnr gs_salesitm-buy gs_salesitm-week&lt;/P&gt;&lt;P&gt;            gs_salesitm-case gs_salesitm-doll gs_salesitm-pound into gs_data separated by tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TRANSFER gs_data TO v_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  WRITE : /'data written successfully'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET v_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rock&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 15:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-downloading-from-the-application-server/m-p/3480609#M836707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T15:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem downloading from the application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-downloading-from-the-application-server/m-p/3480610#M836708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;use this it will exactly run,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  ztestprogramfordownload.&lt;/P&gt;&lt;P&gt;tables:zupload.&lt;/P&gt;&lt;P&gt;data:it_pa0002(200).&lt;/P&gt;&lt;P&gt;types: begin of ty_pa0002 ,&lt;/P&gt;&lt;P&gt;       pernr like pa0002-pernr,&lt;/P&gt;&lt;P&gt;       begda like pa0002-begda,&lt;/P&gt;&lt;P&gt;       endda like pa0002-endda,&lt;/P&gt;&lt;P&gt;       vorna like pa0002-vorna,&lt;/P&gt;&lt;P&gt;       nachn like pa0002-nachn,&lt;/P&gt;&lt;P&gt;       end of ty_pa0002.&lt;/P&gt;&lt;P&gt;data:begin of it_error  occurs 0 ,&lt;/P&gt;&lt;P&gt;     pernr like pa0000-pernr,&lt;/P&gt;&lt;P&gt;     end of it_error .&lt;/P&gt;&lt;P&gt;data:it_final type standard table of ty_pa0002 with header line.&lt;/P&gt;&lt;P&gt;data:it_temp type standard table of ty_pa0002 with header line.&lt;/P&gt;&lt;P&gt;parameters:p_file like rlgrap-filename default 'F:\usr\sap\EC6\DVEBMGS00\work\entiraledu1'.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;open dataset p_file for input in text mode   encoding default.&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;  read dataset p_file into it_pa0002.&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt; it_final-pernr = it_pa0002+0(8).&lt;/P&gt;&lt;P&gt; it_final-begda = it_pa0002+18(8).&lt;/P&gt;&lt;P&gt; it_final-endda = it_pa0002+36(8).&lt;/P&gt;&lt;P&gt; it_final-vorna = it_pa0002+54(40).&lt;/P&gt;&lt;P&gt; it_final-nachn = it_pa0002+104(40).&lt;/P&gt;&lt;P&gt; append it_final.&lt;/P&gt;&lt;P&gt; clear it_final.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;  exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;if not it_final[] is initial.&lt;/P&gt;&lt;P&gt;sort it_final by pernr begda descending.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from it_final comparing pernr .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select pernr&lt;/P&gt;&lt;P&gt;       begda&lt;/P&gt;&lt;P&gt;       endda&lt;/P&gt;&lt;P&gt;       vorna&lt;/P&gt;&lt;P&gt;       nachn&lt;/P&gt;&lt;P&gt;       from pa0002&lt;/P&gt;&lt;P&gt;       into table it_temp&lt;/P&gt;&lt;P&gt;       for all entries in it_final&lt;/P&gt;&lt;P&gt;       where pernr = it_final-pernr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at it_temp.&lt;/P&gt;&lt;P&gt; zupload-pernr = it_temp-pernr.&lt;/P&gt;&lt;P&gt; zupload-begda = it_temp-begda.&lt;/P&gt;&lt;P&gt; zupload-endda = it_temp-endda.&lt;/P&gt;&lt;P&gt; zupload-vorna = it_temp-vorna.&lt;/P&gt;&lt;P&gt; zupload-nachn = it_temp-nachn.&lt;/P&gt;&lt;P&gt; insert zupload.&lt;/P&gt;&lt;P&gt; clear it_temp.&lt;/P&gt;&lt;P&gt; clear zupload.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;close dataset p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 16:46:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-downloading-from-the-application-server/m-p/3480610#M836708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T16:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem downloading from the application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-downloading-from-the-application-server/m-p/3480611#M836709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rock, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is to upload data to application server and should be wroking fine. &lt;/P&gt;&lt;P&gt;The issue generally comes when you try to download this file to presentation layer...&lt;/P&gt;&lt;P&gt;The reason fro getting this error is that huge amount of data is being downloaded into the same file in presentation server. Try downloading contents into multiple files.... It should work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Split your internal table into itab1, itab2 and itab3 and download these into separate files and then manually combine these on the presentation server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Lokesh Aggarwal on Mar 3, 2008 4:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 16:50:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-downloading-from-the-application-server/m-p/3480611#M836709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T16:50:44Z</dc:date>
    </item>
  </channel>
</rss>

