<?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 string function for ignoring case while comparison in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-for-ignoring-case-while-comparison/m-p/4865666#M1137689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function to ignore case of two alphanumeric strings while their comparison.For ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string1: M23456n&lt;/P&gt;&lt;P&gt;string2:m23456n&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i compare these two strings,i want them to be equal,i.e. the case to be  ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Meena.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Nov 2008 09:22:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-19T09:22:37Z</dc:date>
    <item>
      <title>string function for ignoring case while comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-for-ignoring-case-while-comparison/m-p/4865666#M1137689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function to ignore case of two alphanumeric strings while their comparison.For ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string1: M23456n&lt;/P&gt;&lt;P&gt;string2:m23456n&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i compare these two strings,i want them to be equal,i.e. the case to be  ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Meena.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 09:22:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-for-ignoring-case-while-comparison/m-p/4865666#M1137689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T09:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: string function for ignoring case while comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-for-ignoring-case-while-comparison/m-p/4865667#M1137690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to use temp variables for that. copy the values to the tempory variables, translate them to uppercase and comapre them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:
  s1 type string,
  s2 type string,
  t1 type string,
  t2 type string.

start-of-selection.
  s1 = `M23456n`.
  s2 = `m23456n`.

  t1 = s1.
  t2 = s2.
  translate t1 to upper case.
  translate t2 to upper case.

  if t1 = t2.
    perform do_something.
  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 09:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-for-ignoring-case-while-comparison/m-p/4865667#M1137690</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-11-19T09:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: string function for ignoring case while comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-for-ignoring-case-while-comparison/m-p/4865668#M1137691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the two strings one by one in the function module 2054_TRANSLATE_2_UPPERCASE and store them in say str1 and str2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then compare them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 09:25:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-for-ignoring-case-while-comparison/m-p/4865668#M1137691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T09:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: string function for ignoring case while comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-for-ignoring-case-while-comparison/m-p/4865669#M1137692</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;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : VAL1 TYPE STRING VALUE 'M23456n',
       VAL2 type string value 'm23456n'.

TRANSLATE VAL1 TO UPPER CASE.
TRANSLATE VAL2 TO UPPER CASE.


IF VAL1 = VAL2.

WRITE 'Same'.

ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 09:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-for-ignoring-case-while-comparison/m-p/4865669#M1137692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T09:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: string function for ignoring case while comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-for-ignoring-case-while-comparison/m-p/4865670#M1137693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Meena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go for the following code snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: a TYPE string VALUE 'M23456n',&lt;/P&gt;&lt;P&gt;b TYPE string VALUE 'm23456N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF a CS b.&lt;/P&gt;&lt;P&gt;  WRITE 'true'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For detailed info refer this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NS (contains No String)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logical expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;f1&amp;gt; NS &amp;lt;f2&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is true if &amp;lt;f1&amp;gt; does not contain the string &amp;lt;f2&amp;gt;. Trailing spaces are ignored and the comparison is not case-sensitive. If the comparison is true, the system field SY-FDPOS contains the length of &amp;lt;f1&amp;gt;. If it is false, SY-FDPOS contains the offset of &amp;lt;f2&amp;gt; in &amp;lt;f1&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;NItesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 09:33:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-for-ignoring-case-while-comparison/m-p/4865670#M1137693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T09:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: string function for ignoring case while comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-for-ignoring-case-while-comparison/m-p/4865671#M1137694</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;&lt;/P&gt;&lt;P&gt;Scenario is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an interface,XI team sends an idoc.This idoc name is a sring. I have my own idoc ,so we have to compare the two idocs,i.e. the strings are suppose to be passed at run time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 09:37:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-for-ignoring-case-while-comparison/m-p/4865671#M1137694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T09:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: string function for ignoring case while comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-for-ignoring-case-while-comparison/m-p/4865672#M1137695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot guys....but TRANSLATE helped me and i got the desired result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 11:37:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-for-ignoring-case-while-comparison/m-p/4865672#M1137695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T11:37:24Z</dc:date>
    </item>
  </channel>
</rss>

