<?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 Strings comparison in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/strings-comparison/m-p/2939199#M692834</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field value which comes dynamically..this field needs to be checked if it contains other characters other than all A-Z, 0-9, &amp;amp;, #, ', ". If YES, an error message is to be throen..How to do the comparison..pls help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scond thing is I need to check if this field value has two spaces between two words..if yes, again error..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2007 07:51:22 GMT</pubDate>
    <dc:creator>abdulazeez12</dc:creator>
    <dc:date>2007-10-23T07:51:22Z</dc:date>
    <item>
      <title>Strings comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strings-comparison/m-p/2939199#M692834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field value which comes dynamically..this field needs to be checked if it contains other characters other than all A-Z, 0-9, &amp;amp;, #, ', ". If YES, an error message is to be throen..How to do the comparison..pls help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scond thing is I need to check if this field value has two spaces between two words..if yes, again error..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 07:51:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strings-comparison/m-p/2939199#M692834</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2007-10-23T07:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Strings comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strings-comparison/m-p/2939200#M692835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4222037"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: str(100) type c.&lt;/P&gt;&lt;P&gt;data: str_n type string.&lt;/P&gt;&lt;P&gt;data: str_c type string.&lt;/P&gt;&lt;P&gt;data: len type i.&lt;/P&gt;&lt;P&gt;data: ofst type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;str = '#ABCD%'.&lt;/P&gt;&lt;P&gt;len = strlen( str ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ofst = len.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if str+ofst(1) co sy-abcde.&lt;/P&gt;&lt;P&gt;concatenate str_c str+ofst(1) into str_c.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;concatenate str_n str+ofst(1) into str_n.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ofst = ofst + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ str.&lt;/P&gt;&lt;P&gt;write:/ str_c.&lt;/P&gt;&lt;P&gt;write:/ 'spacial chracter',20 str_n.&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;Function module SF_SPECIALCHAR_DELETE DX_SEARCH_STRING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_address1 = i_adrc-street.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK NOT L_ADDRESS1 IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len = STRLEN( l_address1 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do len times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not l_address1+l(1) ca&lt;/P&gt;&lt;P&gt;'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if i_adrc-street+l(1) CO sy-abcde.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;elseif i_adrc-street+l(1) CO L_NUMCHAR.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;l = l + 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;&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;&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;P&gt;&lt;/P&gt;&lt;P&gt;Rewards if useful..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Minal Nampalliwar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 07:53:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strings-comparison/m-p/2939200#M692835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T07:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Strings comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strings-comparison/m-p/2939201#M692836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shakir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lv_allowed type string.&lt;/P&gt;&lt;P&gt;concatenate sy-abcde(26) '0123456789&amp;amp;# '''"' into lv_allowed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;lt;your test string&amp;gt; NA lv_allowed.&lt;/P&gt;&lt;P&gt;message E0000 'error' .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 08:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strings-comparison/m-p/2939201#M692836</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-10-23T08:24:42Z</dc:date>
    </item>
  </channel>
</rss>

