<?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: validate that a string is composed from a defined character set in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-that-a-string-is-composed-from-a-defined-character-set/m-p/3836074#M922462</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;Please find the folowing code.&lt;/P&gt;&lt;P&gt;Use the comparing operator 'CO'. On right side you can write all your 54 possible characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : str1 type string value 'eCA d'.&lt;/P&gt;&lt;P&gt;if str1 Co 'ABCdefghijklmnopqrstuvwx yz*'.&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;mahantesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2008 12:07:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-13T12:07:24Z</dc:date>
    <item>
      <title>validate that a string is composed from a defined character set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-that-a-string-is-composed-from-a-defined-character-set/m-p/3836072#M922460</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 need to validate that a string enetered as parameter is composed of the following character set :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;26 alphabets (both in capital or lower case), a &amp;#147;&amp;#146;&amp;#148; (like O&amp;#146;Brien), a blank between characters like (Mc Donald). So the total valid characters on any of these fields will be 54.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could You provide with an &lt;STRONG&gt;efficient&lt;/STRONG&gt; code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz Help....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards gauranteed........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 11:39:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-that-a-string-is-composed-from-a-defined-character-set/m-p/3836072#M922460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T11:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: validate that a string is composed from a defined character set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-that-a-string-is-composed-from-a-defined-character-set/m-p/3836073#M922461</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;Use   variable CA { a,b,c}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 11:45:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-that-a-string-is-composed-from-a-defined-character-set/m-p/3836073#M922461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T11:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: validate that a string is composed from a defined character set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-that-a-string-is-composed-from-a-defined-character-set/m-p/3836074#M922462</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;Please find the folowing code.&lt;/P&gt;&lt;P&gt;Use the comparing operator 'CO'. On right side you can write all your 54 possible characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : str1 type string value 'eCA d'.&lt;/P&gt;&lt;P&gt;if str1 Co 'ABCdefghijklmnopqrstuvwx yz*'.&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;mahantesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 12:07:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-that-a-string-is-composed-from-a-defined-character-set/m-p/3836074#M922462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T12:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: validate that a string is composed from a defined character set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-that-a-string-is-composed-from-a-defined-character-set/m-p/3836075#M922463</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;Check the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: var(52) type c Value  'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.&lt;/P&gt;&lt;P&gt;data: v1(14) type c value 'welcome to SDN'.&lt;/P&gt;&lt;P&gt;data: v2 type i.&lt;/P&gt;&lt;P&gt;data: v3 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  v3 = 0.&lt;/P&gt;&lt;P&gt;  v2 = STRLEN( v1 ).&lt;/P&gt;&lt;P&gt;  do v2 times.&lt;/P&gt;&lt;P&gt;   if v1+v3(1) = space .&lt;/P&gt;&lt;P&gt;    write:/ 'test contains character space'.&lt;/P&gt;&lt;P&gt;   elseif v1+v3(1) ca var.&lt;/P&gt;&lt;P&gt;    write:/ 'test'.&lt;/P&gt;&lt;P&gt;   elseif v1(v3) = '/'.&lt;/P&gt;&lt;P&gt;    write:/ 'test contains character /'.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;     v3 = v3 + 1.&lt;/P&gt;&lt;P&gt;  enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shravan G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 12:09:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-that-a-string-is-composed-from-a-defined-character-set/m-p/3836075#M922463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T12:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: validate that a string is composed from a defined character set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-that-a-string-is-composed-from-a-defined-character-set/m-p/3836076#M922464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use regular expressions for validating the characters.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lv_string  TYPE string VALUE 'My Name is O''Neill'.&lt;/P&gt;&lt;P&gt;DATA: lv_pattern TYPE string VALUE '[a-zA-Z| |'']+'.&lt;/P&gt;&lt;P&gt;DATA: lv_result  TYPE boolean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_result = CL_ABAP_MATCHER=&amp;gt;MATCHES( pattern = lv_pattern text = lv_string ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If lv_result is X, it is OK. If is empty, then a invalid character is in the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 13:02:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-that-a-string-is-composed-from-a-defined-character-set/m-p/3836076#M922464</guid>
      <dc:creator>BGarcia</dc:creator>
      <dc:date>2008-05-13T13:02:25Z</dc:date>
    </item>
  </channel>
</rss>

