<?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: FM SAP_CONVERT_TO_CSV_FORMAT - separator is wrong. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849164#M667579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use GUI_DOWNLOAD FM ,for field separator :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Lokale Schnittstelle:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(BIN_FILESIZE) TYPE  I OPTIONAL&lt;/P&gt;&lt;P&gt;*"     REFERENCE(FILENAME) TYPE  STRING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(FILETYPE) TYPE  CHAR10 DEFAULT 'ASC'&lt;/P&gt;&lt;P&gt;*"     REFERENCE(APPEND) TYPE  CHAR01 DEFAULT SPACE&lt;/P&gt;&lt;P&gt;*"     &amp;lt;b&amp;gt;REFERENCE(WRITE_FIELD_SEPARATOR) TYPE  CHAR01&amp;lt;/b&amp;gt; DEFAULT SPACE&lt;/P&gt;&lt;P&gt;*"     REFERENCE(HEADER) TYPE  XSTRING DEFAULT '00'&lt;/P&gt;&lt;P&gt;*"     REFERENCE(TRUNC_TRAILING_BLANKS) TYPE  CHAR01 DEFAULT SPACE&lt;/P&gt;&lt;P&gt;*"     REFERENCE(WRITE_LF) TYPE  CHAR01 DEFAULT 'X'&lt;/P&gt;&lt;P&gt;*"     REFERENCE(COL_SELECT) TYPE  CHAR01 DEFAULT SPACE&lt;/P&gt;&lt;P&gt;*"     REFERENCE(COL_SELECT_MASK) TYPE  CHAR255 DEFAULT SPACE&lt;/P&gt;&lt;P&gt;*"     REFERENCE(DAT_MODE) TYPE  CHAR01 DEFAULT SPACE&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(FILELENGTH) TYPE  I&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      DATA_TAB&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      FILE_WRITE_ERROR&lt;/P&gt;&lt;P&gt;*"      NO_BATCH&lt;/P&gt;&lt;P&gt;*"      GUI_REFUSE_FILETRANSFER&lt;/P&gt;&lt;P&gt;*"      INVALID_TYPE&lt;/P&gt;&lt;P&gt;*"      NO_AUTHORITY&lt;/P&gt;&lt;P&gt;*"      UNKNOWN_ERROR&lt;/P&gt;&lt;P&gt;*"      HEADER_NOT_ALLOWED&lt;/P&gt;&lt;P&gt;*"      SEPARATOR_NOT_ALLOWED&lt;/P&gt;&lt;P&gt;*"      FILESIZE_NOT_ALLOWED&lt;/P&gt;&lt;P&gt;*"      HEADER_TOO_LONG&lt;/P&gt;&lt;P&gt;*"      DP_ERROR_CREATE&lt;/P&gt;&lt;P&gt;*"      DP_ERROR_SEND&lt;/P&gt;&lt;P&gt;*"      DP_ERROR_WRITE&lt;/P&gt;&lt;P&gt;*"      UNKNOWN_DP_ERROR&lt;/P&gt;&lt;P&gt;*"      ACCESS_DENIED&lt;/P&gt;&lt;P&gt;*"      DP_OUT_OF_MEMORY&lt;/P&gt;&lt;P&gt;*"      DISK_FULL&lt;/P&gt;&lt;P&gt;*"      DP_TIMEOUT&lt;/P&gt;&lt;P&gt;*"      FILE_NOT_FOUND&lt;/P&gt;&lt;P&gt;*"      DATAPROVIDER_EXCEPTION&lt;/P&gt;&lt;P&gt;*"      CONTROL_FLUSH_ERROR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2007 14:41:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-20T14:41:37Z</dc:date>
    <item>
      <title>FM SAP_CONVERT_TO_CSV_FORMAT - separator is wrong.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849159#M667574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using FM SAP_CONVERT_TO_CSV_FORMAT and I have the field separator as a comma but when the file is exported it has the separator as a semicolon.  Does anybody have any ideas why this is happening?  Below is my code and a portion of the exported document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
    EXPORTING
      i_field_seperator    = ','
    TABLES
      i_tab_sap_data       = it_table
    CHANGING
      i_tab_converted_data = it_table_csv
    EXCEPTIONS
      conversion_failed    = 1
      OTHERS               = 2.

  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      filename = w_filename
    TABLES
      data_tab = it_table_csv
    EXCEPTIONS
      OTHERS   = 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0080629699;04/05/2007;LF;04/05/2007;0520;H1;01;PP;Destination;0000200471;DI;0000200471&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 14:29:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849159#M667574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T14:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: FM SAP_CONVERT_TO_CSV_FORMAT - separator is wrong.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849160#M667575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried it again but using '|' as the separator and it still comes through as a semicolon.  Is it not possible to override the default?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 14:33:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849160#M667575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T14:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: FM SAP_CONVERT_TO_CSV_FORMAT - separator is wrong.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849161#M667576</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;Please try FM SAP_CONVERT_TO_TEX_FORMAT instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 14:35:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849161#M667576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T14:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: FM SAP_CONVERT_TO_CSV_FORMAT - separator is wrong.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849162#M667577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like the function module calls another function module (see below) in which it passes the constant field separator which is defined as a semi colon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_FIELD_SEPERATOR    = C_FIELD_SEPARATOR&lt;/P&gt;&lt;P&gt;      I_LINE_HEADER        = I_LINE_HEADER&lt;/P&gt;&lt;P&gt;      I_FILENAME           = I_FILENAME&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      I_TAB_SAP_DATA       = I_TAB_SAP_DATA&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      I_TAB_CONVERTED_DATA = I_TAB_CONVERTED_DATA&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      CONVERSION_FAILED    = C_RC4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 14:36:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849162#M667577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T14:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: FM SAP_CONVERT_TO_CSV_FORMAT - separator is wrong.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849163#M667578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fred, I was just about to post that.  It doesn't make much sense that SAP would tell you that you can change it when you really can't.  This makes me want to find the developer and give him a swift kick in the butt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ferry, I will try your solution, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 14:38:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849163#M667578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T14:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: FM SAP_CONVERT_TO_CSV_FORMAT - separator is wrong.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849164#M667579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use GUI_DOWNLOAD FM ,for field separator :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Lokale Schnittstelle:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(BIN_FILESIZE) TYPE  I OPTIONAL&lt;/P&gt;&lt;P&gt;*"     REFERENCE(FILENAME) TYPE  STRING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(FILETYPE) TYPE  CHAR10 DEFAULT 'ASC'&lt;/P&gt;&lt;P&gt;*"     REFERENCE(APPEND) TYPE  CHAR01 DEFAULT SPACE&lt;/P&gt;&lt;P&gt;*"     &amp;lt;b&amp;gt;REFERENCE(WRITE_FIELD_SEPARATOR) TYPE  CHAR01&amp;lt;/b&amp;gt; DEFAULT SPACE&lt;/P&gt;&lt;P&gt;*"     REFERENCE(HEADER) TYPE  XSTRING DEFAULT '00'&lt;/P&gt;&lt;P&gt;*"     REFERENCE(TRUNC_TRAILING_BLANKS) TYPE  CHAR01 DEFAULT SPACE&lt;/P&gt;&lt;P&gt;*"     REFERENCE(WRITE_LF) TYPE  CHAR01 DEFAULT 'X'&lt;/P&gt;&lt;P&gt;*"     REFERENCE(COL_SELECT) TYPE  CHAR01 DEFAULT SPACE&lt;/P&gt;&lt;P&gt;*"     REFERENCE(COL_SELECT_MASK) TYPE  CHAR255 DEFAULT SPACE&lt;/P&gt;&lt;P&gt;*"     REFERENCE(DAT_MODE) TYPE  CHAR01 DEFAULT SPACE&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(FILELENGTH) TYPE  I&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      DATA_TAB&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      FILE_WRITE_ERROR&lt;/P&gt;&lt;P&gt;*"      NO_BATCH&lt;/P&gt;&lt;P&gt;*"      GUI_REFUSE_FILETRANSFER&lt;/P&gt;&lt;P&gt;*"      INVALID_TYPE&lt;/P&gt;&lt;P&gt;*"      NO_AUTHORITY&lt;/P&gt;&lt;P&gt;*"      UNKNOWN_ERROR&lt;/P&gt;&lt;P&gt;*"      HEADER_NOT_ALLOWED&lt;/P&gt;&lt;P&gt;*"      SEPARATOR_NOT_ALLOWED&lt;/P&gt;&lt;P&gt;*"      FILESIZE_NOT_ALLOWED&lt;/P&gt;&lt;P&gt;*"      HEADER_TOO_LONG&lt;/P&gt;&lt;P&gt;*"      DP_ERROR_CREATE&lt;/P&gt;&lt;P&gt;*"      DP_ERROR_SEND&lt;/P&gt;&lt;P&gt;*"      DP_ERROR_WRITE&lt;/P&gt;&lt;P&gt;*"      UNKNOWN_DP_ERROR&lt;/P&gt;&lt;P&gt;*"      ACCESS_DENIED&lt;/P&gt;&lt;P&gt;*"      DP_OUT_OF_MEMORY&lt;/P&gt;&lt;P&gt;*"      DISK_FULL&lt;/P&gt;&lt;P&gt;*"      DP_TIMEOUT&lt;/P&gt;&lt;P&gt;*"      FILE_NOT_FOUND&lt;/P&gt;&lt;P&gt;*"      DATAPROVIDER_EXCEPTION&lt;/P&gt;&lt;P&gt;*"      CONTROL_FLUSH_ERROR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 14:41:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849164#M667579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T14:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: FM SAP_CONVERT_TO_CSV_FORMAT - separator is wrong.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849165#M667580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ferry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked like a charm.  While you did answer my question I have another question relating to this FM.  Is there any way to add the column titles to the csv table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 14:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849165#M667580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T14:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: FM SAP_CONVERT_TO_CSV_FORMAT - separator is wrong.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849166#M667581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Davis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            I_FIELD_SEPERATOR    = C_FIELD_SEPARATOR&lt;/P&gt;&lt;P&gt;          &amp;lt;b&amp;gt;  I_LINE_HEADER        = I_LINE_HEADER&amp;lt;/b&amp;gt;            I_FILENAME           = I_FILENAME&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            I_TAB_SAP_DATA       = I_TAB_SAP_DATA&lt;/P&gt;&lt;P&gt;       CHANGING&lt;/P&gt;&lt;P&gt;            I_TAB_CONVERTED_DATA = I_TAB_CONVERTED_DATA&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            CONVERSION_FAILED    = C_RC4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the bold one ,you can add column titles here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 15:05:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849166#M667581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T15:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: FM SAP_CONVERT_TO_CSV_FORMAT - separator is wrong.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849167#M667582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Seshu.  I did not try that parameter because it looked to me like it would only accept a field of type Char01.  I will try that out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 15:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sap-convert-to-csv-format-separator-is-wrong/m-p/2849167#M667582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T15:16:09Z</dc:date>
    </item>
  </channel>
</rss>

