<?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: Case sensitivity for search command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-sensitivity-for-search-command/m-p/1551609#M250198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you can use the 'FIND' statement with ignoring case addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: &lt;/P&gt;&lt;P&gt;  c    TYPE STRING, &lt;/P&gt;&lt;P&gt;  p(2) TYPE C. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c = 'Everyone knows this'. &lt;/P&gt;&lt;P&gt;p = 'NO'. &lt;/P&gt;&lt;P&gt;FIND p IN c IGNORING CASE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the search, sy-subrc = 0. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Aug 2006 15:15:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-10T15:15:04Z</dc:date>
    <item>
      <title>Case sensitivity for search command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-sensitivity-for-search-command/m-p/1551608#M250197</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;I am using SEARCH for finding patterns in strings. It works pretty fine (e.g. incl. wildcard support). However, SEARCH does not support case sensitivity (unlike otherwise one can use TRANSLATE to firce the opposite).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to help, SEARCH does not support case - is there any solution to this or an alternative command? I do not want to create a custom function module just to emulate this  and to partly reinvent the wheel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw.: How can I use "match whle words" w/ SEARCH as it somehow can distinguish between delimting characters according to help document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Timo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 15:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-sensitivity-for-search-command/m-p/1551608#M250197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T15:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Case sensitivity for search command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-sensitivity-for-search-command/m-p/1551609#M250198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you can use the 'FIND' statement with ignoring case addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: &lt;/P&gt;&lt;P&gt;  c    TYPE STRING, &lt;/P&gt;&lt;P&gt;  p(2) TYPE C. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c = 'Everyone knows this'. &lt;/P&gt;&lt;P&gt;p = 'NO'. &lt;/P&gt;&lt;P&gt;FIND p IN c IGNORING CASE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the search, sy-subrc = 0. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 15:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-sensitivity-for-search-command/m-p/1551609#M250198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T15:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Case sensitivity for search command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-sensitivity-for-search-command/m-p/1551610#M250199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Revi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dammit, is FIND a newer ABAP command - we have a 4.6C release here and cannot find it in help nor the compiler likes it &lt;SPAN __jive_emoticon_name="confused"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Timo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 15:18:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-sensitivity-for-search-command/m-p/1551610#M250199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T15:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Case sensitivity for search command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-sensitivity-for-search-command/m-p/1551611#M250200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;REFER THE SAP HELP marked in BOLD and UNDERLINED&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use the relational operator "CS" OR "CP".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Program:&lt;/P&gt;&lt;P&gt;DATA: text(30) VALUE 'I like blogging on SDN'.&lt;/P&gt;&lt;P&gt;IF text CS 'IKE'.&lt;/P&gt;&lt;P&gt;  MESSAGE i000(vz) WITH 'True'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  MESSAGE i000(vz) WITH 'False'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF text CP '&lt;STRONG&gt;IKE&lt;/STRONG&gt;'.&lt;/P&gt;&lt;P&gt;  MESSAGE i000(vz) WITH 'True'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  MESSAGE i000(vz) WITH 'False'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excerpt from SAP Help on CS(Contains String):&lt;/P&gt;&lt;P&gt;True if the content of operand2 is contained in operand1. &amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Upper/lower case is not taken into account&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;, trailing blanks of the left operand are taken into account. If operand1 is of type string and initial, or of type c and contains only blank characters, the logical expression is false, unless operand2 is also of type string and initial, or of type c and only contains blank characters. In this case the logical expression is always true. If the result of the comparison is true, sy-fdpos contains the offset of operand2 in operand1. If the result of the comparison is negative, sy-fdpos contains the length of operand1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Covers Pattern: True, if the content of operand1 fits the pattern in operand2. Wildcard characters can be used for forming the operand pattern, where "&lt;STRONG&gt;" represents any character string, and "+" represents any character. &amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Upper/lower case is not taken into account&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;. If the comparison is true, sy-fdpos contains the offset of operand2 in operand1, whereby leading wildcard characters "&lt;/STRONG&gt;" in operand2 are ignored if operand2 also contains other characters. If the comparison is false, sy-fdpos contains the length of operand1. You can select characters in operand2 for a direct comparison by adding the escape symbol "#" before the required characters. For these characters, upper/lower case is taken into account, wildcard characters and the escape symbol itself do not receive special treatment, and trailing blanks in operands of type c are not cut off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;P&gt;*Please mark useful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kiran Raorane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 15:25:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-sensitivity-for-search-command/m-p/1551611#M250200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T15:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Case sensitivity for search command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-sensitivity-for-search-command/m-p/1551612#M250201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case I'm afraid , you have to atleast redesign the wheel if not reinvent it.&lt;/P&gt;&lt;P&gt;You have to use the translate option as you have already noted.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 15:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-sensitivity-for-search-command/m-p/1551612#M250201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T15:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Case sensitivity for search command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-sensitivity-for-search-command/m-p/1551613#M250202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kirna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the suggestion, but again, case is not taken into account here, or am I wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you and regards,&lt;/P&gt;&lt;P&gt;Timo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 15:38:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-sensitivity-for-search-command/m-p/1551613#M250202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T15:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Case sensitivity for search command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-sensitivity-for-search-command/m-p/1551614#M250203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do a bitwise comparison of equality:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF fld1+i(j) = 'Whatever'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 16:15:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-sensitivity-for-search-command/m-p/1551614#M250203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T16:15:23Z</dc:date>
    </item>
  </channel>
</rss>

