<?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: CSV download problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-download-problem/m-p/1753758#M326720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a problem that you will face in Excell when you click on the file and then open with excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with the following steps,&lt;/P&gt;&lt;P&gt;1. Open Microsoft Excel Application&lt;/P&gt;&lt;P&gt;2.Goto Data-&amp;gt;Get External Data -&amp;gt;Import text file &lt;/P&gt;&lt;P&gt;3.Choose the file name of your downloaded file then choose Delimited&lt;/P&gt;&lt;P&gt;4. Click on Next-&amp;gt;and choose the Semicolon option only and then Finish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you would be able to see the file in the format that you require in Excel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Dec 2006 08:48:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-19T08:48:26Z</dc:date>
    <item>
      <title>CSV download problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-download-problem/m-p/1753751#M326713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im downloading an internal table into a CSV file to PC, which contains some QUAN, CURR fields. Im using the 'semicolon' as seperater  in FM SAP_CONVERT_TO_CSV_FORMAT.  Then Im downloading with GUI_DOWNLOAD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is .. there are values for QUAN fields like below..&lt;/P&gt;&lt;P&gt;1,00    ( = 1.00 means cama is used as decimal notation) &lt;/P&gt;&lt;P&gt;12,22  ( = 12.22)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, when displaying EXCEL.. 12 and 22 are falling into two different colomns of XL(CSV file). But if it is 12.22 then displaying correctly in a single colom of XL(CSV file).. But I need to display as 12,22 only..please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 08:00:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-download-problem/m-p/1753751#M326713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T08:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: CSV download problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-download-problem/m-p/1753752#M326714</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;Try download using GUI_DOWNLOAD without using SAP_CONVERT_TO_CSV_FORMAT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 08:04:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-download-problem/m-p/1753752#M326714</guid>
      <dc:creator>graghavendra_sharma</dc:creator>
      <dc:date>2006-12-19T08:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: CSV download problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-download-problem/m-p/1753753#M326715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghav..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply ..but I need a seperator    ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 08:06:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-download-problem/m-p/1753753#M326715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T08:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: CSV download problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-download-problem/m-p/1753754#M326716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use any other character as seprator?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 08:29:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-download-problem/m-p/1753754#M326716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T08:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: CSV download problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-download-problem/m-p/1753755#M326717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;First block will be filling fileds names.&lt;/P&gt;&lt;P&gt;it_send_mail_cats contains the data. to be downloaded.&lt;/P&gt;&lt;P&gt; it_content4-name = text-h01.&lt;/P&gt;&lt;P&gt;  APPEND it_content4.&lt;/P&gt;&lt;P&gt;  CLEAR it_content4.&lt;/P&gt;&lt;P&gt;  it_content4-name = text-h13.&lt;/P&gt;&lt;P&gt;  APPEND it_content4.&lt;/P&gt;&lt;P&gt;  CLEAR it_content4.&lt;/P&gt;&lt;P&gt;  it_content4-name = text-h02.&lt;/P&gt;&lt;P&gt;  APPEND it_content4.&lt;/P&gt;&lt;P&gt;  CLEAR it_content4.&lt;/P&gt;&lt;P&gt;  it_content4-name = text-h03.&lt;/P&gt;&lt;P&gt;  APPEND it_content4.&lt;/P&gt;&lt;P&gt;  CLEAR it_content4.&lt;/P&gt;&lt;P&gt;  it_content4-name = text-h04.&lt;/P&gt;&lt;P&gt;  APPEND it_content4.&lt;/P&gt;&lt;P&gt;  CLEAR it_content4.&lt;/P&gt;&lt;P&gt;  it_content4-name = text-h05.&lt;/P&gt;&lt;P&gt;  APPEND it_content4.&lt;/P&gt;&lt;P&gt;  CLEAR it_content4.&lt;/P&gt;&lt;P&gt;  it_content4-name = text-h06.&lt;/P&gt;&lt;P&gt;  APPEND it_content4.&lt;/P&gt;&lt;P&gt;  CLEAR it_content4.&lt;/P&gt;&lt;P&gt;  it_content4-name = text-h07.&lt;/P&gt;&lt;P&gt;  APPEND it_content4.&lt;/P&gt;&lt;P&gt;  CLEAR it_content4.&lt;/P&gt;&lt;P&gt;  it_content4-name = text-h08.&lt;/P&gt;&lt;P&gt;  APPEND it_content4.&lt;/P&gt;&lt;P&gt;  CLEAR it_content4.&lt;/P&gt;&lt;P&gt;  it_content4-name = text-h10.&lt;/P&gt;&lt;P&gt;  APPEND it_content4.&lt;/P&gt;&lt;P&gt;  CLEAR it_content4.&lt;/P&gt;&lt;P&gt;  it_content4-name = text-h11.&lt;/P&gt;&lt;P&gt;  APPEND it_content4.&lt;/P&gt;&lt;P&gt;  CLEAR it_content4.&lt;/P&gt;&lt;P&gt;  it_content4-name = text-h15.&lt;/P&gt;&lt;P&gt;  APPEND it_content4.&lt;/P&gt;&lt;P&gt;  CLEAR it_content4.&lt;/P&gt;&lt;P&gt;  it_content4-name = text-h16.&lt;/P&gt;&lt;P&gt;  APPEND it_content4.&lt;/P&gt;&lt;P&gt;  CLEAR it_content4.&lt;/P&gt;&lt;P&gt;  it_content4-name = text-h12.&lt;/P&gt;&lt;P&gt;  APPEND it_content4.&lt;/P&gt;&lt;P&gt;  CLEAR it_content4.&lt;/P&gt;&lt;P&gt;  it_content4-name = text-h14.&lt;/P&gt;&lt;P&gt;  APPEND it_content4.&lt;/P&gt;&lt;P&gt;  CLEAR it_content4.&lt;/P&gt;&lt;P&gt;  it_content4-name = text-h09.&lt;/P&gt;&lt;P&gt;  APPEND it_content4.&lt;/P&gt;&lt;P&gt;  CLEAR it_content4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE it_content LINES v_n.&lt;/P&gt;&lt;P&gt;  v_i = 2.&lt;/P&gt;&lt;P&gt;  WHILE v_i &amp;lt;= v_n.&lt;/P&gt;&lt;P&gt;    READ TABLE it_content INDEX v_i.&lt;/P&gt;&lt;P&gt;    it_content1-line = it_content-line.&lt;/P&gt;&lt;P&gt;    v_i = v_i + 1.&lt;/P&gt;&lt;P&gt;    READ TABLE it_content INDEX v_i.&lt;/P&gt;&lt;P&gt;    it_content+254(1) = ' '.&lt;/P&gt;&lt;P&gt;    CONCATENATE it_content1-line it_content-line INTO it_content1-line.&lt;/P&gt;&lt;P&gt;    APPEND it_content1.&lt;/P&gt;&lt;P&gt;    CLEAR it_content1.&lt;/P&gt;&lt;P&gt;    v_i = v_i + 1.&lt;/P&gt;&lt;P&gt;  ENDWHILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE:/ text-023,filename.&lt;/P&gt;&lt;P&gt;  CONCATENATE filename '.XLS' INTO filename.&lt;/P&gt;&lt;P&gt;  MOVE filename TO lv_filename.&lt;/P&gt;&lt;P&gt;  PERFORM set_trail_blanks(saplgrap) USING 'X'.&lt;/P&gt;&lt;P&gt;  PERFORM set_fixlen(saplgrap) USING '0' '510'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    BIN_FILESIZE                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      filename                        = lv_filename&lt;/P&gt;&lt;P&gt;     filetype                        = 'DAT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    APPEND                          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    WRITE_FIELD_SEPARATOR           = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    HEADER                          = '00'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    TRUNC_TRAILING_BLANKS           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    WRITE_LF                        = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    COL_SELECT                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    COL_SELECT_MASK                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     dat_mode                        = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CONFIRM_OVERWRITE               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    NO_AUTH_CHECK                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CODEPAGE                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IGNORE_CERR                     = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    REPLACEMENT                     = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    WRITE_BOM                       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    TRUNC_TRAILING_BLANKS_EOL       = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    WK1_N_FORMAT                    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    WK1_N_SIZE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    WK1_T_FORMAT                    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    WK1_T_SIZE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    FILELENGTH                      =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                        =  it_send_mail_cats&lt;/P&gt;&lt;P&gt;      fieldnames                      =   it_content4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 08:38:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-download-problem/m-p/1753755#M326717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T08:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: CSV download problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-download-problem/m-p/1753756#M326718</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;&lt;/P&gt;&lt;P&gt;Here is a the sample program Im trying..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zmb_test2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS : truxs.&lt;/P&gt;&lt;P&gt;DATA: t_itab1 TYPE truxs_t_text_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF t_tab1 OCCURS 0,&lt;/P&gt;&lt;P&gt;    f1 LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;    f2 TYPE netpr,      " curr field&lt;/P&gt;&lt;P&gt;    f3(20) TYPE n,&lt;/P&gt;&lt;P&gt;END OF t_tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_tab1-f1 = 'mat1'.&lt;/P&gt;&lt;P&gt;t_tab1-f2 = '1111'.&lt;/P&gt;&lt;P&gt;t_tab1-f3 = 'mat111'.&lt;/P&gt;&lt;P&gt;APPEND t_tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_tab1-f1 = 'mat2'.&lt;/P&gt;&lt;P&gt;t_tab1-f2 = '2222'.&lt;/P&gt;&lt;P&gt;t_tab1-f3 = 'mat222'.&lt;/P&gt;&lt;P&gt;APPEND t_tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          i_field_seperator    = ';'&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          i_tab_sap_data       = t_tab1&lt;/P&gt;&lt;P&gt;     CHANGING&lt;/P&gt;&lt;P&gt;          i_tab_converted_data = t_itab1&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          conversion_failed    = 1&lt;/P&gt;&lt;P&gt;          OTHERS               = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          filename = 'C:\ZMB_TEST.CSV'&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          data_tab = t_itab1&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          OTHERS   = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and output is as below.. (falling into two coloms of XL)&lt;/P&gt;&lt;P&gt;mat1;1.111	00;00000000000000000111   &lt;/P&gt;&lt;P&gt;mat2;2.222	00;00000000000000000222&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the expected output is .. (single colom of XL)&lt;/P&gt;&lt;P&gt;mat1;1.111,00;00000000000000000111&lt;/P&gt;&lt;P&gt;mat2;2.222,00;00000000000000000222&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 08:41:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-download-problem/m-p/1753756#M326718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T08:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: CSV download problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-download-problem/m-p/1753757#M326719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use , as separator instead of semicolon and give file type in GUi_download as 'DAT'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 08:42:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-download-problem/m-p/1753757#M326719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T08:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: CSV download problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-download-problem/m-p/1753758#M326720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a problem that you will face in Excell when you click on the file and then open with excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with the following steps,&lt;/P&gt;&lt;P&gt;1. Open Microsoft Excel Application&lt;/P&gt;&lt;P&gt;2.Goto Data-&amp;gt;Get External Data -&amp;gt;Import text file &lt;/P&gt;&lt;P&gt;3.Choose the file name of your downloaded file then choose Delimited&lt;/P&gt;&lt;P&gt;4. Click on Next-&amp;gt;and choose the Semicolon option only and then Finish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you would be able to see the file in the format that you require in Excel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 08:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-download-problem/m-p/1753758#M326720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T08:48:26Z</dc:date>
    </item>
  </channel>
</rss>

