<?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: Excel upload - remove line break in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-remove-line-break/m-p/8008665#M1607518</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;thank you for quick reply.&lt;/P&gt;&lt;P&gt;What is  wa_itab-CR_LF IN itab-rec with space.&lt;/P&gt;&lt;P&gt;    CLEAR idat.&lt;/P&gt;&lt;P&gt;    SPLIT itab-rec AT ',' INTO...&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;I wrote this code and it doesn´t work. The program still sets the line break.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Anna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2011 08:47:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-07-28T08:47:41Z</dc:date>
    <item>
      <title>Excel upload - remove line break</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-remove-line-break/m-p/8008663#M1607516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to read an excel sheet using function module  GUI_UPLOAD. Everything is working well, except for cells with line break. How can I remove line break in my code? The excel has CSV format.&lt;/P&gt;&lt;P&gt;My code looks as follows:&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;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filename = file_str&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = itab&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;file_open_error = 1&lt;/P&gt;&lt;P&gt;file_read_error = 2&lt;/P&gt;&lt;P&gt;no_batch = 3&lt;/P&gt;&lt;P&gt;gui_refuse_filetransfer = 4&lt;/P&gt;&lt;P&gt;invalid_type = 5&lt;/P&gt;&lt;P&gt;no_authority = 6&lt;/P&gt;&lt;P&gt;unknown_error = 7&lt;/P&gt;&lt;P&gt;bad_data_format = 8&lt;/P&gt;&lt;P&gt;header_not_allowed = 9&lt;/P&gt;&lt;P&gt;separator_not_allowed = 10&lt;/P&gt;&lt;P&gt;header_too_long = 11&lt;/P&gt;&lt;P&gt;unknown_dp_error = 12&lt;/P&gt;&lt;P&gt;access_denied = 13&lt;/P&gt;&lt;P&gt;dp_out_of_memory = 14&lt;/P&gt;&lt;P&gt;disk_full = 15&lt;/P&gt;&lt;P&gt;dp_timeout = 16&lt;/P&gt;&lt;P&gt;OTHERS = 17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab.&lt;/P&gt;&lt;P&gt;CLEAR idat.&lt;/P&gt;&lt;P&gt;SPLIT itab-rec AT ',' INTO idat-fld1&lt;/P&gt;&lt;P&gt;idat-fld2&lt;/P&gt;&lt;P&gt;idat-fld3.&lt;/P&gt;&lt;P&gt;APPEND idat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT idat.&lt;/P&gt;&lt;P&gt;WRITE:/ idat-fld1, idat-fld2, idat-fld3.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see I use the seperator ';'. The problem is that cells with line break dislocate my data, although I use ';' as seperator the cells get seperated when there is a line break too (and they get seperated by ';'.If there is no line break, everything working well).&lt;/P&gt;&lt;P&gt;What do I have to do to declare line breake as line breake, if I want to use the function 'REPLACE ALL OCCURRENCES OF '  ' IN itab-rec WITH ' '? I would replace the line breake with an blank or something like that.&lt;/P&gt;&lt;P&gt;Please don´t offer a complete new solution, because this one is working very fine and I´m just searching for a solution to solve problem with line break.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 15:40:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-remove-line-break/m-p/8008663#M1607516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-27T15:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Excel upload - remove line break</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-remove-line-break/m-p/8008664#M1607517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT itab into wa_itab.
REPLACE ALL OCCURRENCES OF CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF in wa_itab-&amp;lt;field&amp;gt; with space.
CLEAR idat.
SPLIT itab-rec AT ',' INTO idat-fld1
idat-fld2
idat-fld3.
APPEND idat.

ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 16:54:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-remove-line-break/m-p/8008664#M1607517</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2011-07-27T16:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Excel upload - remove line break</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-remove-line-break/m-p/8008665#M1607518</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;thank you for quick reply.&lt;/P&gt;&lt;P&gt;What is  wa_itab-CR_LF IN itab-rec with space.&lt;/P&gt;&lt;P&gt;    CLEAR idat.&lt;/P&gt;&lt;P&gt;    SPLIT itab-rec AT ',' INTO...&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;I wrote this code and it doesn´t work. The program still sets the line break.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Anna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 08:47:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-upload-remove-line-break/m-p/8008665#M1607518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-28T08:47:41Z</dc:date>
    </item>
  </channel>
</rss>

