<?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: Creating a File in Application Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-file-in-application-server/m-p/2766160#M644212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem Explanation Again:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab contains fallwoing data:&lt;/P&gt;&lt;P&gt;field1 field2 field3 field4 field5&lt;/P&gt;&lt;P&gt;uu----&lt;DEL&gt;-kk&lt;/DEL&gt;&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="--------" /&gt; nn---ii&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i transer this to file it is coming as fallows&lt;/P&gt;&lt;P&gt;field1 field2 field3 field4 field5&lt;/P&gt;&lt;P&gt;uu----&lt;DEL&gt;-kk&lt;/DEL&gt;&lt;DEL&gt;-nn&lt;/DEL&gt;&lt;DEL&gt;-ii&lt;/DEL&gt;--&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Ignore the doted line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Sep 2007 05:35:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-13T05:35:30Z</dc:date>
    <item>
      <title>Creating a File in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-file-in-application-server/m-p/2766159#M644211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have some data in the internal table itab. which contains few fields. Some of the fields are blanks and some contains data. Now i am transfering this internal table to file which is in Application Server. When i trnasfer itab to file, blank fields are concatenated by  next field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explanation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab contains fallwoing data:&lt;/P&gt;&lt;P&gt;field1  field2  field3  field4  field5&lt;/P&gt;&lt;P&gt;uu       kk                nn      ii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i transer this to file it is coming as fallows&lt;/P&gt;&lt;P&gt;field1  field2  field3  field4  field5&lt;/P&gt;&lt;P&gt;uu       kk       nn      ii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i solve this problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in Advance&lt;/P&gt;&lt;P&gt;Subhani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 05:32:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-file-in-application-server/m-p/2766159#M644211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T05:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a File in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-file-in-application-server/m-p/2766160#M644212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem Explanation Again:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab contains fallwoing data:&lt;/P&gt;&lt;P&gt;field1 field2 field3 field4 field5&lt;/P&gt;&lt;P&gt;uu----&lt;DEL&gt;-kk&lt;/DEL&gt;&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="--------" /&gt; nn---ii&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i transer this to file it is coming as fallows&lt;/P&gt;&lt;P&gt;field1 field2 field3 field4 field5&lt;/P&gt;&lt;P&gt;uu----&lt;DEL&gt;-kk&lt;/DEL&gt;&lt;DEL&gt;-nn&lt;/DEL&gt;&lt;DEL&gt;-ii&lt;/DEL&gt;--&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Ignore the doted line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 05:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-file-in-application-server/m-p/2766160#M644212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T05:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a File in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-file-in-application-server/m-p/2766161#M644213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try putting a field separator such as a comma between the fields&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 05:46:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-file-in-application-server/m-p/2766161#M644213</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-09-13T05:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a File in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-file-in-application-server/m-p/2766162#M644214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subhani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This probelm can be fixed very easily.  All you need to do is to use Offsets while writing to the file from internal table.  This is done as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gv_string(217) TYPE c,                     " Holds text to display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at &amp;lt;itab&amp;gt; into &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;   gv_string+0(5) = &amp;lt;wa&amp;gt;-&amp;lt;fieldname&amp;gt;&lt;/P&gt;&lt;P&gt;   gv_string+10(5) = &amp;lt;wa&amp;gt;-&amp;lt;fieldname&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;do this for all the fileds. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: In the above code snipet, 0(5) represents 'Starting for the 0th position, reserve 5 characters and print it there.  Use this for all the fields of your internal table.  Based on the size of the field(s) of the itab, allocate the space accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;PLZ REWARD POINTS IF HELPFUL&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 06:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-file-in-application-server/m-p/2766162#M644214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T06:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a File in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-file-in-application-server/m-p/2766163#M644215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subhani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be achieved by writing the keyword "separated by space" or "separated by comma".&lt;/P&gt;&lt;P&gt;You can press F1 on the transfer keyword and you will get the various options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other way can be to use the offsets as mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The third solution can be to convert the file to ascii and then you can transfer the data easily.The function module for the same is :SAP_CONVERT_TO_TEX_FORMAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I have tried to answer your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you have any further queries,feel free to ask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Puneet Jhari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 06:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-file-in-application-server/m-p/2766163#M644215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T06:13:24Z</dc:date>
    </item>
  </channel>
</rss>

