<?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 Problem In Excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excel/m-p/8320836#M1637286</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 a variable with text  lv_longtext  =  ' Invoices must be against##Honeywell SA##Succursale du Luxembou ' and i am replacing the duble hashes with below code. after that we are trying to move this text to excel file but the output is coming as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoices must be againstÂ&amp;nbsp;Honeywell SAÂ&amp;nbsp;Succursale du Luxembou. Please help us to remove the special character  Â FROM THE TEXT. if we check in debug mode we are able to see the space insted of special character Â but after downloaded into the excle we are getting this special character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=&amp;gt;cr_lf IN lv_longtext WITH&lt;/P&gt;&lt;P&gt;                                '&amp;nbsp;&amp;nbsp;'.   ALT 255 ASCII Character is used for space &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Used below fm to display into output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SCMS_STRING_TO_XSTRING'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Nov 2011 12:44:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-10T12:44:45Z</dc:date>
    <item>
      <title>Problem In Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excel/m-p/8320836#M1637286</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 a variable with text  lv_longtext  =  ' Invoices must be against##Honeywell SA##Succursale du Luxembou ' and i am replacing the duble hashes with below code. after that we are trying to move this text to excel file but the output is coming as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoices must be againstÂ&amp;nbsp;Honeywell SAÂ&amp;nbsp;Succursale du Luxembou. Please help us to remove the special character  Â FROM THE TEXT. if we check in debug mode we are able to see the space insted of special character Â but after downloaded into the excle we are getting this special character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=&amp;gt;cr_lf IN lv_longtext WITH&lt;/P&gt;&lt;P&gt;                                '&amp;nbsp;&amp;nbsp;'.   ALT 255 ASCII Character is used for space &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Used below fm to display into output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SCMS_STRING_TO_XSTRING'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 12:44:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excel/m-p/8320836#M1637286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-10T12:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem In Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excel/m-p/8320837#M1637287</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '##' IN lv_longtext WITH space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=&amp;gt;cr_lf IN lv_longtext WITH&lt;/P&gt;&lt;P&gt;'  '.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Çağatay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 12:55:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excel/m-p/8320837#M1637287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-10T12:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem In Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excel/m-p/8320838#M1637288</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;HASHSES are Entered characters of the long text which is there at purchase order level. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In purchase order they have maintained text like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Invoices must be against&lt;/P&gt;&lt;P&gt; Honeywell SA&lt;/P&gt;&lt;P&gt;Succursale du Luxembou &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF we use read_text fm to get this text we will get DUBLE HASES and that we can't remove using some space..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 12:59:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excel/m-p/8320838#M1637288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-10T12:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem In Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excel/m-p/8320839#M1637289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try to convert the text to a stream using FM &lt;STRONG&gt;CONVERT_ITF_TO_STREAM_TEXT&lt;/STRONG&gt; ? Maybe that will work for you in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 14:08:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excel/m-p/8320839#M1637289</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2011-11-10T14:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem In Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excel/m-p/8320840#M1637290</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 to use below coding,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA:
           c_recdel(1)  type c  value '~',
           c_recdelx    TYPE x  VALUE '7E',   " ~ in hex
           c_segdel(1)  type c  value '^',
           c_segdelx    type x  value '5E',   " ^ in hex
           c_space(1)   type c  value ' ',
           c_spacex     TYPE x  VALUE '20'.   " Space in hex

  CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
    EXPORTING
      text           = l_string
*     MIMETYPE       = ' '
*     ENCODING       =
   IMPORTING
     buffer          = l_xstring.

* replace the special characters with a space.
  replace all occurrences of c_recdelx   in l_xstring
          with c_spacex in byte mode.

* replace the special characters with a space.
  replace all occurrences of c_segdelx   in l_xstring
          with c_spacex in byte mode. 

*replace for other special characters....

*   Convert row back to character string.
  CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING'
    EXPORTING
      im_xstring  = l_xstring
      im_encoding = 'UTF-8'
    IMPORTING
      ex_string   = l_string.

  i_final_line = l_string.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 14:14:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excel/m-p/8320840#M1637290</guid>
      <dc:creator>ChandrashekharMahajan</dc:creator>
      <dc:date>2011-11-10T14:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem In Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excel/m-p/8320841#M1637291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;is often used to represent an unprintable character...How do you know the problem is CRLF?  It is very likely something else...in debug, find out what those characters actually are (debug shows the hex value!).  Then, if you have something odd, turn off unicode in program attributes, declare data type x with the value of the hex for the bad character, and search for that and replace it with space or whatever is needed.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your problem could be any hex values below 20 and any hex values above 7E&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 15:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excel/m-p/8320841#M1637291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-10T15:36:09Z</dc:date>
    </item>
  </channel>
</rss>

