<?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: New Line using Transfer Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625702#M279564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you can do something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gd_result(50) type c.&lt;/P&gt;&lt;P&gt;constants:&lt;/P&gt;&lt;P&gt;cl_abap_char_utilities=&amp;gt;VERTICAL_TAB,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;con_tab can then be concatenated to create tab spaces.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CONCATENATE 'text1' con_tab 'text2' con_tab 'text3' into gd_result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Sep 2006 09:57:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-12T09:57:04Z</dc:date>
    <item>
      <title>New Line using Transfer Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625697#M279559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to write data to a text file in a particular format. I am not passing records of an internal table to the text file. I need to pass fields of a single row in a tabular format. For this, I need to use the new line character...I want fields of a single row to be displayed one below the other. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on how we could do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 09:45:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625697#M279559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T09:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: New Line using Transfer Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625698#M279560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CL_ABAP_CHAR_UTILITIES=&amp;gt;VERTICAL_TAB&amp;lt;/b&amp;gt; as a separator between your row fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 09:50:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625698#M279560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T09:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: New Line using Transfer Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625699#M279561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vidya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. There are two things :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a) if we have opened the file in text mode (on app server)&lt;/P&gt;&lt;P&gt;  then whenever we do TRANSFER,&lt;/P&gt;&lt;P&gt;  a new line will automatically be appended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  b) To ensure that fields come one below other with proper alignment,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    we have to ensure that the data in work area of transfer,&lt;/P&gt;&lt;P&gt;   is properly aligned within it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ie. 12345678~~~~~&lt;SUB&gt;123456&lt;/SUB&gt;~&lt;/P&gt;&lt;P&gt; (where~ may be spaces if the field is not full length)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 09:51:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625699#M279561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T09:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: New Line using Transfer Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625700#M279562</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;use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;do.
  assign component sy-index of structure itab to &amp;lt;f&amp;gt;.
  if sy-subrc &amp;lt;&amp;gt; 0. exit. endif.
   concatenate string &amp;lt;f&amp;gt; into string separated by CL_ABAP_CHAR_UTILITIES=&amp;gt;VERTICAL_TAB .
  endif.
enddo.

transfer string to file.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Andreas Mann&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 09:51:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625700#M279562</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-09-12T09:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: New Line using Transfer Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625701#M279563</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;Will this work while writing data to a text file on the presentation server, using open-dataset-transfer-close-dataset statements?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 09:53:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625701#M279563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T09:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: New Line using Transfer Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625702#M279564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you can do something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gd_result(50) type c.&lt;/P&gt;&lt;P&gt;constants:&lt;/P&gt;&lt;P&gt;cl_abap_char_utilities=&amp;gt;VERTICAL_TAB,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;con_tab can then be concatenated to create tab spaces.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CONCATENATE 'text1' con_tab 'text2' con_tab 'text3' into gd_result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 09:57:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625702#M279564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T09:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: New Line using Transfer Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625703#M279565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To download data to the presentation server, you have to use GUI_DOWNLOAD function module. to download data to Application server, you have to use open-dataset-transfer-close-dataset statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you see the methods of CL_ABAP_CHAR_UTILITIES, there is a method CR_LF to do your requirement. its like Carriage return and Linefeed. if you add this at the end of each record,automatically next record will appear on the next line.&lt;/P&gt;&lt;P&gt;if you want to give any TAB space between the fields, then vertical tab method of the same class.&lt;/P&gt;&lt;P&gt;or if you are in a NON unicode system, then you can use&lt;/P&gt;&lt;P&gt;DATA : V_TAB TYPE X VALUE '09'. as V_TAB is a horizantal tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 10:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625703#M279565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T10:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: New Line using Transfer Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625704#M279566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vidya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. For application server, &lt;/P&gt;&lt;P&gt;   we have to use open dataset, transfer, close dataset,&lt;/P&gt;&lt;P&gt;   (and take care of the spacing between the fields)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. For presentation server,&lt;/P&gt;&lt;P&gt;   we have to use the fm GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;   and do not pass the parameter &lt;/P&gt;&lt;P&gt;   WRITE_FIELD_SEPARATOR = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  (when we do not pass this parameter,&lt;/P&gt;&lt;P&gt;   the data is written in FIXED-LENGTH&lt;/P&gt;&lt;P&gt;   including spaces)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  (So when we view the data in notepad,&lt;/P&gt;&lt;P&gt;   the fields will be very much aligned,&lt;/P&gt;&lt;P&gt;    one below the other)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 10:53:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625704#M279566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T10:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: New Line using Transfer Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625705#M279567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks to everyone who has tried to help me! i could solve the problem by opening the file in text mode, wherein a new line is added for every 'transfer' statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 11:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-line-using-transfer-statement/m-p/1625705#M279567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T11:31:13Z</dc:date>
    </item>
  </channel>
</rss>

