<?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 Need to create CSV file. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-csv-file/m-p/9813148#M1781628</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;I have requirement to create csv file which has two headers, one body and one trailer. First header has 5 fields. Second header has 58 fields. Body has 58 fields. Trailer has 2 fields. If i'll create 4 internal tables then can you please tell me how I can be able to append all these internal tables one by one to the csv file?. Also csv file should be separated by ^, how to do this ? Sample code would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2013 08:00:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-09-27T08:00:42Z</dc:date>
    <item>
      <title>Need to create CSV file.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-csv-file/m-p/9813148#M1781628</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;I have requirement to create csv file which has two headers, one body and one trailer. First header has 5 fields. Second header has 58 fields. Body has 58 fields. Trailer has 2 fields. If i'll create 4 internal tables then can you please tell me how I can be able to append all these internal tables one by one to the csv file?. Also csv file should be separated by ^, how to do this ? Sample code would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 08:00:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-csv-file/m-p/9813148#M1781628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-27T08:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create CSV file.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-csv-file/m-p/9813149#M1781629</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;Have a look here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/servlet/JiveServlet/download/14388283-193968/y_r_eitan_test_71_01.txt.zip" title="http://scn.sap.com/servlet/JiveServlet/download/14388283-193968/y_r_eitan_test_71_01.txt.zip"&gt;http://scn.sap.com/servlet/JiveServlet/download/14388283-193968/y_r_eitan_test_71_01.txt.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/message/14388283#14388283"&gt;http://scn.sap.com/message/14388283#14388283&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specially to FORM wrt_data_1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change cl_abap_char_utilities=&amp;gt;horizontal_tab to your delimeterif you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 08:57:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-csv-file/m-p/9813149#M1781629</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2013-09-27T08:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create CSV file.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-csv-file/m-p/9813150#M1781630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abap Guy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create one final output table gi_output type c length 1500 (or according to urs).&lt;/P&gt;&lt;P&gt;gw_hearder1 - 5 fields&lt;/P&gt;&lt;P&gt;gw_header2 - 58 fields&lt;/P&gt;&lt;P&gt;gi_body - 58 fields&lt;/P&gt;&lt;P&gt;gw_trailer - 2 fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first append first header &lt;/P&gt;&lt;P&gt;concatenate gw_headr-field1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gw_header-field2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gw_header-field5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into gw_output-data seperated by &amp;lt;your delimiter&amp;gt;.&lt;/P&gt;&lt;P&gt;append gw_output to gi_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now append second header similar as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now loop over your main body table &lt;/P&gt;&lt;P&gt;loop at gi_body into gw_body.&lt;/P&gt;&lt;P&gt;concatenate gw_body-field1 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gw_body-fieldn&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into gw_output-data seperated by &amp;lt;delimiter&amp;gt;&lt;/P&gt;&lt;P&gt;append gw_output to gi_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope this wil solve your issue.&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;A. trivedi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 09:16:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-create-csv-file/m-p/9813150#M1781630</guid>
      <dc:creator>former_member212705</dc:creator>
      <dc:date>2013-09-27T09:16:53Z</dc:date>
    </item>
  </channel>
</rss>

