<?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: Finding Special Characters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-special-characters/m-p/5515818#M1261062</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;On each iterartion on your table ask if they have special chars...something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

CONCATENATE SY-ABCDE '0123456789' INTO STRING
LOOP AT IT_MATNR.

IF IT_MATNR-MATNR CO STRING,
" ONLY CONTAINS NORMAL CHARACTERS
ELSE.
" PRINT WHAT YOU NEED.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gabriel P.-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2009 16:08:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-14T16:08:41Z</dc:date>
    <item>
      <title>Finding Special Characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-special-characters/m-p/5515817#M1261061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;During an import into the MARM table, some material number (MATNR) have been imported with special characters.  The character we have found was A0(Hex), which is a non-breaking space.  The way I found this was through debugging.  The special characters are causing some issues with other functions.  I'm now trying to write a program to search through the current MATNRs and check if they have these special characters and then print them and the hex versions.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any advice?  I've tried looking in different spots but I'm either overlooking it or can't seem to find any info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;CD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 16:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-special-characters/m-p/5515817#M1261061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T16:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Special Characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-special-characters/m-p/5515818#M1261062</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;On each iterartion on your table ask if they have special chars...something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

CONCATENATE SY-ABCDE '0123456789' INTO STRING
LOOP AT IT_MATNR.

IF IT_MATNR-MATNR CO STRING,
" ONLY CONTAINS NORMAL CHARACTERS
ELSE.
" PRINT WHAT YOU NEED.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gabriel P.-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 16:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-special-characters/m-p/5515818#M1261062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T16:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Special Characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-special-characters/m-p/5515819#M1261063</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;SEARCH dobj FOR pattern (IN BYTE or CHARACTER MODE) could do it but the statement is obsolete.&lt;/P&gt;&lt;P&gt;This can help you to a new equivalent one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Issa SY on Apr 14, 2009 6:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 16:14:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-special-characters/m-p/5515819#M1261063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T16:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Special Characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-special-characters/m-p/5515820#M1261064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
field-symbols &amp;lt;x&amp;gt; type x.
assign gv_matnr to &amp;lt;x&amp;gt; casting.

loop at it_matnr into gv_matnr.
  if gv_matnr cn gv_wanted_chars.
    write:
     / 'Char', gv_matnr,
     / 'Hex', &amp;lt;x&amp;gt;.
  endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also [this thread.|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7312356"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best wishes&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 16:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-special-characters/m-p/5515820#M1261064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T16:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Special Characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-special-characters/m-p/5515821#M1261065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this code to remove special characters.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: C_MATNR TYPE CHAR.
DATA: l_d_offset LIKE sy-index.
CONSTANTS: c_allowed(100) TYPE c value u2018ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_u2019.
C_MATNR = MATNR. 
TRANSLATE C_MATNR TO UPPER CASE.  
DO 60 TIMES.
  l_d_offset = sy-index u2013 1.
  IF +l_d_offset(1) CO c_allowed.   " Character allowed, donu2019t do anything
  ELSE.                             " Character not allowed, replace with blank space character
    C_MATNR+l_d_offset(1) = u2018 u2018.
  ENDIF.
  CONDENSE C_MATNR.
  MATNR = C_MATNR.
ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This will definitely help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit Mohan Gupta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 16:43:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-special-characters/m-p/5515821#M1261065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T16:43:25Z</dc:date>
    </item>
  </channel>
</rss>

