<?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: Writing file on Application Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021678#M81315</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;No! You can see only the first 255 char, but that doesn't mean you can't write a file with a record longer 255 char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think the problem is only how you're seeing your file after downloading it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Sep 2005 18:11:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-28T18:11:16Z</dc:date>
    <item>
      <title>Writing file on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021677#M81314</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; We have a requirement to write a file on App server. The width of each of the records is around 350 characters. Using Transfer command I am able to write only 255 characters in a row. I tried using 'LENGTH 350 ' addition. Still everything beyond 255 char is getting chopped off. Any idea how to overcome this ? Is this a limitation of the server or any authorisation problem ? &lt;/P&gt;&lt;P&gt;Just as an addl info, the server is Unix based. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 18:01:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021677#M81314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T18:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Writing file on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021678#M81315</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;No! You can see only the first 255 char, but that doesn't mean you can't write a file with a record longer 255 char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think the problem is only how you're seeing your file after downloading it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 18:11:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021678#M81315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T18:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Writing file on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021679#M81316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max is right. You can prove it by uploading it back into a program in look at the last 100 bytes of the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 18:22:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021679#M81316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T18:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Writing file on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021680#M81317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there might be a bug the way you are using dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please if possible , can you paste the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;surjit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 04:06:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021680#M81317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T04:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Writing file on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021681#M81318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The limit for the application server is 1032 bytes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though the data is written to the server it is not visible.Hence, split the data into lengths of 255 and then write the file to application server, if you want them all to appear on the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 06:09:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021681#M81318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T06:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Writing file on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021682#M81319</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; Thanks for your replies. I tried copying the file on Presentation server. Still it is coming in truncated form only. I can not split the data into packets of 255 characters as the rows are individual records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For those who might be able to help looking at the code, I am attaching the code as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Constants: lc_filename(100) TYPE c &lt;/P&gt;&lt;P&gt;           VALUE '/usr/sap/tmp/EXTRACT_&amp;lt;SY_DAT&amp;gt;_&amp;lt;SY_U&amp;gt;.csv'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Open dataset to upload file on application server&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OPEN DATASET lc_filename FOR APPENDING IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If file doesnt get opened, raise status message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF sy-subrc IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    MESSAGE s361(zumt_gen) WITH lc_opened.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Output file could not be opened&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Loop through the resultant table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    LOOP AT git_result INTO wa_result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Type conversion&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      lv_zwfakt = wa_result-zwfakt.&lt;/P&gt;&lt;P&gt;      lv_asset_stat_code = wa_result-asset_stat_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Concatenate each line of resultant table using comma seperators&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CONCATENATE&lt;/P&gt;&lt;P&gt;           wa_result-partner&lt;/P&gt;&lt;P&gt;           lc_comma&lt;/P&gt;&lt;P&gt;           wa_result-zz_qq&lt;/P&gt;&lt;P&gt;           lc_comma&lt;/P&gt;&lt;P&gt;           wa_result-zz_sp_qq&lt;/P&gt;&lt;P&gt;           lc_comma&lt;/P&gt;&lt;P&gt;           lv_asset_stat_code&lt;/P&gt;&lt;P&gt;           lc_comma&lt;/P&gt;&lt;P&gt;           wa_result-serge&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;           lc_comma&lt;/P&gt;&lt;P&gt;           wa_result-string1&lt;/P&gt;&lt;P&gt;           lc_comma&lt;/P&gt;&lt;P&gt;           wa_result-postcode&lt;/P&gt;&lt;P&gt;           lc_comma&lt;/P&gt;&lt;P&gt;           wa_result-pltxt&lt;/P&gt;&lt;P&gt;           lc_comma&lt;/P&gt;&lt;P&gt;           wa_result-name1&lt;/P&gt;&lt;P&gt;           lc_comma&lt;/P&gt;&lt;P&gt;           wa_result-str_suppl2&lt;/P&gt;&lt;P&gt;           lc_comma&lt;/P&gt;&lt;P&gt;           wa_result-house_num1&lt;/P&gt;&lt;P&gt;           lc_comma&lt;/P&gt;&lt;P&gt;           wa_result-street&lt;/P&gt;&lt;P&gt;           lc_comma&lt;/P&gt;&lt;P&gt;           wa_result-str_suppl3&lt;/P&gt;&lt;P&gt;           lc_comma&lt;/P&gt;&lt;P&gt;           wa_result-city1&lt;/P&gt;&lt;P&gt;           lc_comma&lt;/P&gt;&lt;P&gt;           wa_result-post_code1&lt;/P&gt;&lt;P&gt;       INTO&lt;/P&gt;&lt;P&gt;           wa_csv-lv_csv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Write data into file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TRANSFER wa_csv-lv_csv TO lc_filename LENGTH 350.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Clear work areas&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CLEAR: wa_csv, wa_result.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Close dataset&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLOSE DATASET lc_filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  if error in closing, raise status message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF sy-subrc IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;      MESSAGE s361(zt_gen) WITH lc_closed.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Output file could not be opened&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      STOP.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Status Message: File created&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;      MESSAGE s371(zt_gen) WITH lc_filename.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&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;Many Thanks&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 12:21:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021682#M81319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T12:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Writing file on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021683#M81320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the data type and length of your field wa_csv-lv_csv ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 13:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021683#M81320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T13:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Writing file on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021684#M81321</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;check the string is loaded into wa_csv-lv_csv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure it is loaded well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 14:07:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021684#M81321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T14:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Writing file on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021685#M81322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay / Max,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The data type of wa_csv-lv_csv is  string. Also I checked the value in it at runtime. There it is coming correctly ( all 350-odd characters ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 15:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021685#M81322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T15:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Writing file on Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021686#M81323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we see so many chars (350) while debugging...I dont know. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit...just give a try to this idea once to make sure everything is well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try uploading the data in that string variable into an internal table with a field of length 350 and load that table in to file on the presentation server using gui_upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the file and if it contains all chars then ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code a write statement showing contents of wa_csv-lv_csv on the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just trial and error. If it work with presentation server then there should be some limitations with the files on app server which I am not aware of.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 16:55:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/writing-file-on-application-server/m-p/1021686#M81323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T16:55:28Z</dc:date>
    </item>
  </channel>
</rss>

