<?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 with Writing file into Application Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-writing-file-into-application-server/m-p/4374336#M1040762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used a tab field separator when i download it to a local file &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i didnt use any field separator for application server..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u guid me to use field separator when i write to appln server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is my part of the code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET FILE_NAME FOR OUTPUT IN TEXT MODE.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;  message e018(znc) with 'Fail to create file ' P_OUTFIL.&lt;/P&gt;&lt;P&gt;  EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT IT_FINAL.&lt;/P&gt;&lt;P&gt;   TRANSFER IT_FINAL TO FILE_NAME.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt; CLOSE DATASET FILE_NAME.&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;Guru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Aug 2008 08:20:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-15T08:20:43Z</dc:date>
    <item>
      <title>Problem with Writing file into Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-writing-file-into-application-server/m-p/4374334#M1040760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write a file into application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My internal table have about 13 fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after writing it into a appln server..when i try to see the file...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the records are not appearing proper..all the fields are not appearing in the same line..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i mean .. every record is splitted to two lines. not in appearing in single line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any way to increase the displaying space for the records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expecting the reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 07:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-writing-file-into-application-server/m-p/4374334#M1040760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T07:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Writing file into Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-writing-file-into-application-server/m-p/4374335#M1040761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru,&lt;/P&gt;&lt;P&gt;I believe you have used a tab separator between the columns or some other kind of separator.&lt;/P&gt;&lt;P&gt;The application server is just a storage location for your files from where you can download these to your local desktop or use them in other programs/transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you see the file in the application server itself (AL11), it will seem to be haphazard. But, when you download it to your desktop, you'll see that the data is aligned correctly (if you have used a tab separator between your columns).&lt;/P&gt;&lt;P&gt;You can download the file by selecting the file name -&amp;gt; System -&amp;gt; List -&amp;gt; Save -&amp;gt; Local File.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try downloading and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dawood.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 08:02:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-writing-file-into-application-server/m-p/4374335#M1040761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T08:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Writing file into Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-writing-file-into-application-server/m-p/4374336#M1040762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used a tab field separator when i download it to a local file &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i didnt use any field separator for application server..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u guid me to use field separator when i write to appln server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is my part of the code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET FILE_NAME FOR OUTPUT IN TEXT MODE.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;  message e018(znc) with 'Fail to create file ' P_OUTFIL.&lt;/P&gt;&lt;P&gt;  EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT IT_FINAL.&lt;/P&gt;&lt;P&gt;   TRANSFER IT_FINAL TO FILE_NAME.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt; CLOSE DATASET FILE_NAME.&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;Guru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 08:20:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-writing-file-into-application-server/m-p/4374336#M1040762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T08:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Writing file into Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-writing-file-into-application-server/m-p/4374337#M1040763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru,&lt;/P&gt;&lt;P&gt;I mean something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:  BEGIN OF ty_download,&lt;/P&gt;&lt;P&gt;             field(500) TYPE c,&lt;/P&gt;&lt;P&gt;           END OF ty_download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:    is_download type ty_download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset part is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when looping, try the below code modifying it according to your requirement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_final into is_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate is_final-field_a&lt;/P&gt;&lt;P&gt;                   is_final-field_b&lt;/P&gt;&lt;P&gt;                   is_final-field_c&lt;/P&gt;&lt;P&gt;                   is_final-field_d&lt;/P&gt;&lt;P&gt;                   .&lt;/P&gt;&lt;P&gt;                   .&lt;/P&gt;&lt;P&gt;                   .&lt;/P&gt;&lt;P&gt;            into is_download-field&lt;/P&gt;&lt;P&gt;   separated by cl_abap_char_utilities=&amp;gt;horizontal_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;transfer is_download to file_name.&lt;/P&gt;&lt;P&gt;clear: is_final,&lt;/P&gt;&lt;P&gt;       is_download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: "cl_abap_char_utilities=&amp;gt;horizontal_tab" is the tab separator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dawood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dawood.S.Ghasletwala on Aug 15, 2008 2:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 08:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-writing-file-into-application-server/m-p/4374337#M1040763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T08:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Writing file into Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-writing-file-into-application-server/m-p/4374338#M1040764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it..&lt;/P&gt;&lt;P&gt; and get syntax error  class " cl_abap_char_utilities"  unknown..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should i define this in my report.. if so how..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for asking..many queries..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 09:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-writing-file-into-application-server/m-p/4374338#M1040764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T09:00:39Z</dc:date>
    </item>
  </channel>
</rss>

