<?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 Comma decimal notation in CSV file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544914#M1657710</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 am downloading data into CSV file separated by semi-colon. There are numeric fields with format 12.34&lt;/P&gt;&lt;P&gt;Can you please let me know how to download in format 12,34 (comma notation) in CSV file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2012 08:39:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-01-24T08:39:21Z</dc:date>
    <item>
      <title>Comma decimal notation in CSV file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544914#M1657710</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 am downloading data into CSV file separated by semi-colon. There are numeric fields with format 12.34&lt;/P&gt;&lt;P&gt;Can you please let me know how to download in format 12,34 (comma notation) in CSV file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 08:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544914#M1657710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-24T08:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Comma decimal notation in CSV file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544915#M1657711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before moving the data to internal table you need to format your value. Use a char type variable. Is this a amount field if yes than you can use write to with currency and quanityt addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 08:42:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544915#M1657711</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2012-01-24T08:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Comma decimal notation in CSV file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544916#M1657712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Nabheet for your quick response.&lt;/P&gt;&lt;P&gt;I have formatted before downloading but here the download is to CSV file. At place of comma the numeric value is broken into 2 parts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 08:49:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544916#M1657712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-24T08:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Comma decimal notation in CSV file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544917#M1657713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add double quotes in each field..(before and after)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like &lt;/P&gt;&lt;P&gt;"abc";"def";"123,00";"56,45"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then download into "test.CSV", your CSV file.. now when you open the excel it will all be in one column, you can either run a macro or do a text to column with delimiter as semicolon(;)..to split the column..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if keeping semicolon is not mandatory, it will be even easier..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create lines like&lt;/P&gt;&lt;P&gt;"abc","def","123,00","56,45" ==&amp;gt; see i have kept commas for both delimiter as well as decimal separator&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when you download , it will only split the columns based on the delimiter commas not the commas which are inside "  "s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Soumyaprakash Mishra on Jan 24, 2012 3:46 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 10:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544917#M1657713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-24T10:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Comma decimal notation in CSV file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544918#M1657714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from where do you create this CSV file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 11:00:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544918#M1657714</guid>
      <dc:creator>JL23</dc:creator>
      <dc:date>2012-01-24T11:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Comma decimal notation in CSV file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544919#M1657715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Soumyaprakash.&lt;/P&gt;&lt;P&gt;I have already done concatenation with quote. But still the the value is divided into 2 columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;CONDENSE wa_salaire_reference-salaire_base_mal.&lt;/P&gt;&lt;P&gt;CONCATENATE '"' wa_salaire_reference-salaire_base_mal '"' INTO wa_salaire_reference-salaire_base_mal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 11:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544919#M1657715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-24T11:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Comma decimal notation in CSV file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544920#M1657716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I create the CSV file using GUI_DOWNLOAD with ASC type and .CSV extension.&lt;/P&gt;&lt;P&gt;File is being created successfully. Only problem with numeric fields (made character type in program).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 11:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544920#M1657716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-24T11:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Comma decimal notation in CSV file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544921#M1657717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ASC as file type controls how the data is prepared in the file.&lt;/P&gt;&lt;P&gt;the file extension does not really control anything of the file content.&lt;/P&gt;&lt;P&gt;if you exchange xls with doc, then word opens and tries to interpred the content, but the excel file did not really become a word document just while you change the extension.&lt;/P&gt;&lt;P&gt;So just adding an extension CSV does not make a CSV file fout of an ASC file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look into this OSS note, it explains why SAP does not support CSV&lt;/P&gt;&lt;P&gt;Note 1066919 - Showcase GUI_UPLOAD: Comma separated value (CSV) file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;contrary in OSS note 1167125 SAP says :&lt;/P&gt;&lt;P&gt;we suggest changing the download format into a CSV file by using the WRITE_FIELD_SEPARATOR = 'X' parameter for calling the GUI_DOWNLOAD and changing the file extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jürgen L. on Jan 24, 2012 2:19 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 12:32:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544921#M1657717</guid>
      <dc:creator>JL23</dc:creator>
      <dc:date>2012-01-24T12:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Comma decimal notation in CSV file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544922#M1657718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i wrote a very simple code and it worked, let me know what you think of it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztest.
DATA: s1 type TABLE OF string,
      sw like LINE OF s1.

move '"abcd","10,23","asdasd","10,00"' to sw.
append sw to s1.

CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
    filename                        = 'D:/ABC.CSV'
  tables
    data_tab                        = s1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 14:20:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544922#M1657718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-24T14:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Comma decimal notation in CSV file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544923#M1657719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Soumyaprakash, your piece of code works well for comma separated CSV file but not for semi-colon separated file.&lt;/P&gt;&lt;P&gt;Could you please check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 04:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-decimal-notation-in-csv-file/m-p/8544923#M1657719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-25T04:52:12Z</dc:date>
    </item>
  </channel>
</rss>

