<?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 CSV file - Strings with multiple double quotes and commas in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-strings-with-multiple-double-quotes-and-commas/m-p/11501612#M1932848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write data from an internal table into a CSV file, but some fields has multiple commas (,) and double quotes (") within it. I tried covering the whole string within double quotes ("), but since the string has multiple double quotes and commas, the output in the file is not aligned. Can someone guide me how to overcome this issue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to have Horizontal tab as delimiter, since this is .CVS file and not .XLS file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Gaurav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2016 20:11:33 GMT</pubDate>
    <dc:creator>SAPSeeker</dc:creator>
    <dc:date>2016-02-10T20:11:33Z</dc:date>
    <item>
      <title>CSV file - Strings with multiple double quotes and commas</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-strings-with-multiple-double-quotes-and-commas/m-p/11501612#M1932848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write data from an internal table into a CSV file, but some fields has multiple commas (,) and double quotes (") within it. I tried covering the whole string within double quotes ("), but since the string has multiple double quotes and commas, the output in the file is not aligned. Can someone guide me how to overcome this issue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to have Horizontal tab as delimiter, since this is .CVS file and not .XLS file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Gaurav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 20:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-strings-with-multiple-double-quotes-and-commas/m-p/11501612#M1932848</guid>
      <dc:creator>SAPSeeker</dc:creator>
      <dc:date>2016-02-10T20:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file - Strings with multiple double quotes and commas</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-strings-with-multiple-double-quotes-and-commas/m-p/11501613#M1932849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;I suggest you generate it with ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;(Semicolon).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Additionalally you can use the following function module.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;SAP_CONVERT_TO_CSV_FORMAT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 22.8444px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards, Andreas&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 20:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-strings-with-multiple-double-quotes-and-commas/m-p/11501613#M1932849</guid>
      <dc:creator>former_member183045</dc:creator>
      <dc:date>2016-02-10T20:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file - Strings with multiple double quotes and commas</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-strings-with-multiple-double-quotes-and-commas/m-p/11501614#M1932850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got the issue resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Followed the format of adding double quotes before existing ones and also covering the entire string within double quotes, as mentioned in the below RFC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://tools.ietf.org/html/rfc4180" title="http://tools.ietf.org/html/rfc4180"&gt;RFC 4180 - Common Format and MIME Type for Comma-Separated Values (CSV) Files&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Gaurav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 21:25:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file-strings-with-multiple-double-quotes-and-commas/m-p/11501614#M1932850</guid>
      <dc:creator>SAPSeeker</dc:creator>
      <dc:date>2016-02-10T21:25:18Z</dc:date>
    </item>
  </channel>
</rss>

