<?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: Adding titlles while loading on App. Server...urgent!!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-titlles-while-loading-on-app-server-urgent/m-p/1290029#M155054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just write to the dataset before the loop.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zrich_0001.


parameters: d2 type localfile default '/usr/sap/TST/SYS/Data1.txt'.


data: begin of itab occurs 0,
      rec(200) type c,
      end of itab.
data: wa(200) type c.


start-of-selection.

* Open
  open dataset d2 for output in text mode.

&amp;lt;b&amp;gt;* Write headings
  wa = 'Field1,Field2,Field3,Field4,Field5'.
  transfer wa to d2.&amp;lt;/b&amp;gt;

* Write detail from itab
  loop at itab.
    transfer itab to d2.
  endloop.

* Close it
  close dataset d2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Apr 2006 17:06:37 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-04-04T17:06:37Z</dc:date>
    <item>
      <title>Adding titlles while loading on App. Server...urgent!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-titlles-while-loading-on-app-server-urgent/m-p/1290027#M155052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what i'm doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************************&lt;/P&gt;&lt;P&gt;Open dataset....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Collect all data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Concatenating all fields into string separated by comma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;transfer string to string1&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;close dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to add headings/titles corresponding to the fields that i'm concatenating into the string so that when i open the file on the App. Server I see the titles corresponding to the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2006 16:54:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-titlles-while-loading-on-app-server-urgent/m-p/1290027#M155052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-04T16:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Adding titlles while loading on App. Server...urgent!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-titlles-while-loading-on-app-server-urgent/m-p/1290028#M155053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Open dataset....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at internal table.&lt;/P&gt;&lt;P&gt;  at first.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Concatenating all headings into string separated by &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  comma&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    transfer string to string1&lt;/P&gt;&lt;P&gt;  endat.&lt;/P&gt;&lt;P&gt;*Collect all data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Concatenating all fields into string separated by comma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;transfer string to string1&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;close dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2006 17:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-titlles-while-loading-on-app-server-urgent/m-p/1290028#M155053</guid>
      <dc:creator>LucianoBentiveg</dc:creator>
      <dc:date>2006-04-04T17:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adding titlles while loading on App. Server...urgent!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-titlles-while-loading-on-app-server-urgent/m-p/1290029#M155054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just write to the dataset before the loop.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zrich_0001.


parameters: d2 type localfile default '/usr/sap/TST/SYS/Data1.txt'.


data: begin of itab occurs 0,
      rec(200) type c,
      end of itab.
data: wa(200) type c.


start-of-selection.

* Open
  open dataset d2 for output in text mode.

&amp;lt;b&amp;gt;* Write headings
  wa = 'Field1,Field2,Field3,Field4,Field5'.
  transfer wa to d2.&amp;lt;/b&amp;gt;

* Write detail from itab
  loop at itab.
    transfer itab to d2.
  endloop.

* Close it
  close dataset d2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2006 17:06:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-titlles-while-loading-on-app-server-urgent/m-p/1290029#M155054</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-04-04T17:06:37Z</dc:date>
    </item>
  </channel>
</rss>

