<?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: To find any special character in a string using function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707864#M309905</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;You can use SEARCH statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEARCH dobj FOR pattern  &lt;/P&gt;&lt;P&gt;This statement searches the data object dobj according to the search pattern specified in pattern.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2006 10:44:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-02T10:44:33Z</dc:date>
    <item>
      <title>To find any special character in a string using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707856#M309897</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;Is there any function module to find out any special character in a STRING? OR any other method to find a special character???????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points will be rewarded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 09:04:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707856#M309897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T09:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: To find any special character in a string using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707857#M309898</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;FCT... i don't know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can create a constant contains all special symbol and you can control if string contains one of symbol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 09:08:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707857#M309898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T09:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: To find any special character in a string using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707858#M309899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DX_SEARCH_STRING&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;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 09:10:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707858#M309899</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2006-11-02T09:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: To find any special character in a string using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707859#M309900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data: str(100) type c.
data: str_n type string.
data: str_c type string.
data: len type i.
data: ofst type i.
 
str = '#ABCD%'.
len = strlen( str ).
 
 
 
do.
 
  if ofst = len.
    exit.
  endif.
 
  if str+ofst(1) co sy-abcde.
    concatenate str_c str+ofst(1) into str_c.
  else.
    concatenate str_n str+ofst(1) into str_n.
  endif.
 
  ofst = ofst + 1.
 
enddo.
 
write:/ str.
write:/ str_c.
write:/ 'spacial chracter',20 str_n.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 09:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707859#M309900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T09:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: To find any special character in a string using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707860#M309901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont think the function  module can help you to find out any special character in a string, for that you have to write the logic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get the length of the string, &lt;/P&gt;&lt;P&gt;check each and every character using loop and store in a new character variable .&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;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 09:13:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707860#M309901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T09:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: To find any special character in a string using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707861#M309902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;    store all special characters in internal table&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;     loop at itab.&lt;/P&gt;&lt;P&gt;      if string ca itab-char.&lt;/P&gt;&lt;P&gt;       write 'special characters'. &lt;/P&gt;&lt;P&gt;      endif. &lt;/P&gt;&lt;P&gt;     endloop.    &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 09:57:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707861#M309902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T09:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: To find any special character in a string using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707862#M309903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi jaysree , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have answered this query in one of ur posts ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that code just include all the special charaters in to a single string and compare .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : spchar(40) type c value '&lt;STRONG&gt;~!@#$$%^&amp;amp;&lt;/STRONG&gt;()?...'etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :gv_char .&lt;/P&gt;&lt;P&gt;data:inp(20) type c.&lt;/P&gt;&lt;P&gt;take the string length .&lt;/P&gt;&lt;P&gt;len = strlen (i/p).&lt;/P&gt;&lt;P&gt;do len times &lt;/P&gt;&lt;P&gt; MOVE FNAME+T(1) TO GV_CHAR.&lt;/P&gt;&lt;P&gt;    IF gv_char CA spchar.&lt;/P&gt;&lt;P&gt;     MOVE fname&lt;EM&gt;T(1) TO inp2&lt;/EM&gt;T(1).&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    T = T + 1.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&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;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 10:20:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707862#M309903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T10:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: To find any special character in a string using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707863#M309904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can check this ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZEX4 .&lt;/P&gt;&lt;P&gt;PARAMETERS: fname  LIKE rlgrap-filename .&lt;/P&gt;&lt;P&gt;DATA: len TYPE i,&lt;/P&gt;&lt;P&gt;      T  TYPE I VALUE 0,&lt;/P&gt;&lt;P&gt;      inp(20) TYPE C,&lt;/P&gt;&lt;P&gt;      inp1(20) type c,&lt;/P&gt;&lt;P&gt;      inp2(20) type c,&lt;/P&gt;&lt;P&gt;      inp3(20) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :gv_char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : spchar(20) type c value '#$%^&amp;amp;*()_+`~'.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONDENSE fname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  len = strlen( fname ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; WRITE:/ len.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DO len TIMES.&lt;/P&gt;&lt;P&gt;  MOVE FNAME+T(1) TO GV_CHAR.&lt;/P&gt;&lt;P&gt;    IF gv_char ca spchar.&lt;/P&gt;&lt;P&gt;      MOVE fname&lt;EM&gt;T(1) TO inp&lt;/EM&gt;T(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    T = T + 1.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE INP.&lt;/P&gt;&lt;P&gt;write:/ 'Special Characters  :', inp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 10:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707863#M309904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T10:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: To find any special character in a string using function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707864#M309905</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;You can use SEARCH statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEARCH dobj FOR pattern  &lt;/P&gt;&lt;P&gt;This statement searches the data object dobj according to the search pattern specified in pattern.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 10:44:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-find-any-special-character-in-a-string-using-function-module/m-p/1707864#M309905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T10:44:33Z</dc:date>
    </item>
  </channel>
</rss>

