<?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: Reading the file as CSV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-file-as-csv/m-p/7365351#M1542304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello subbara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the line separator, you can use the public constant CR_LF of the class cl_abap_char_utilities ( cl_abap_char_utilities=&amp;gt;cr_lf ) to check all the occurrences of this separator.&lt;/P&gt;&lt;P&gt;Declare a string internal table and do a split command to have all the records without the separator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kleber Santos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Oct 2010 08:36:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-13T08:36:13Z</dc:date>
    <item>
      <title>Reading the file as CSV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-file-as-csv/m-p/7365350#M1542303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have problem in reading the file from excel , i copied the file from excel as csv AND STORED IN ftp FOLDER &lt;/P&gt;&lt;P&gt;i USE FTP CONNECT AND FTP COMMAND TO READ THE FILE  AND THEN USING open  DATA SET method &lt;/P&gt;&lt;P&gt;and split the file at  comma and into some lv_rec  and the contents into workarea of the internal tabel &lt;/P&gt;&lt;P&gt;the problem is  iam getting the file contents but at the end of each record  i am getting # at the end of each record&lt;/P&gt;&lt;P&gt;aprreciated if any body have the   clue to get rid of # .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;subbara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 05:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-file-as-csv/m-p/7365350#M1542303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-13T05:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the file as CSV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-file-as-csv/m-p/7365351#M1542304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello subbara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the line separator, you can use the public constant CR_LF of the class cl_abap_char_utilities ( cl_abap_char_utilities=&amp;gt;cr_lf ) to check all the occurrences of this separator.&lt;/P&gt;&lt;P&gt;Declare a string internal table and do a split command to have all the records without the separator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kleber Santos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 08:36:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-file-as-csv/m-p/7365351#M1542304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-13T08:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the file as CSV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-file-as-csv/m-p/7365352#M1542305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  kleber,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not familiar with oops concepts , can declare the conatant i the declaration and i will do without seperator.&lt;/P&gt;&lt;P&gt;please put a line of code how to use the method or class in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;subbara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 08:48:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-file-as-csv/m-p/7365352#M1542305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-13T08:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the file as CSV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-file-as-csv/m-p/7365353#M1542306</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;the '#' character is probably a line separator. You can remove it programmatically, but it is probably better to try to use addition [OPEN DATASET - linefeed |http://help.sap.com/abapdocu_70/en/ABAPOPEN_DATASET_LINEFEED.htm] whe opening a file. Check also [OPEN DATASET - os_additions |http://help.sap.com/abapdocu_70/en/ABAPOPEN_DATASET_OS_ADDITION.htm].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 08:49:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-file-as-csv/m-p/7365353#M1542306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-13T08:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the file as CSV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-file-as-csv/m-p/7365354#M1542307</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;if you want to remove # programmatically, you can do it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=&amp;gt;cr_lf IN gv_string WITH ''.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; for string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=&amp;gt;cr_lf IN TABLE gt_string_table WITH ''.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; for table of strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I still think, that using some addition for OPEN DATASET statement would be a better solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 08:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-file-as-csv/m-p/7365354#M1542307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-13T08:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the file as CSV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-file-as-csv/m-p/7365355#M1542308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for youe help. resolved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 09:03:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-file-as-csv/m-p/7365355#M1542308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-13T09:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the file as CSV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-file-as-csv/m-p/7365356#M1542309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;resolved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 09:04:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-file-as-csv/m-p/7365356#M1542309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-13T09:04:38Z</dc:date>
    </item>
  </channel>
</rss>

