<?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: Compare 2 String Values and Count How Many Chars Are Different in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-2-string-values-and-count-how-many-chars-are-different/m-p/10700379#M1870788</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe the distance function will help you to reach your goal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_702/en/abendistance_functions.htm"&gt;http://help.sap.com/abapdocu_702/en/abendistance_functions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It computes the &lt;A href="http://en.wikipedia.org/wiki/Levenshtein_distance" title="http://en.wikipedia.org/wiki/Levenshtein_distance"&gt;Levenshtein distance&lt;/A&gt; of two strings.&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;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Oct 2014 11:38:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-10-10T11:38:15Z</dc:date>
    <item>
      <title>Compare 2 String Values and Count How Many Chars Are Different</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-2-string-values-and-count-how-many-chars-are-different/m-p/10700378#M1870787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to compare 2 string fields, which contain names, and count how many different characters there are. If there are more than 3 different characters that line will be marked 'X'. For example;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME: JAKC BAUE&lt;/P&gt;&lt;P&gt;CHANGED NAME: JACK BAUER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here there are 3 different characters so; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLAG = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME: ACK BOUER&lt;/P&gt;&lt;P&gt;CHANGED NAME: JACK BAUER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLAG = ' '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I discussed with an ABAP developer and we could not find an exact solution because the first name field is usually entered by mistake and the second one contains the fixed name. That s why there are so many cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calculating length differences work for some cases but not all, also 'CP' doesnt cover all the cases so I decided to ask for other opinions. Please feel free to write down your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Merih&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 10:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-2-string-values-and-count-how-many-chars-are-different/m-p/10700378#M1870787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-10T10:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 String Values and Count How Many Chars Are Different</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-2-string-values-and-count-how-many-chars-are-different/m-p/10700379#M1870788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe the distance function will help you to reach your goal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_702/en/abendistance_functions.htm"&gt;http://help.sap.com/abapdocu_702/en/abendistance_functions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It computes the &lt;A href="http://en.wikipedia.org/wiki/Levenshtein_distance" title="http://en.wikipedia.org/wiki/Levenshtein_distance"&gt;Levenshtein distance&lt;/A&gt; of two strings.&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;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 11:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-2-string-values-and-count-how-many-chars-are-different/m-p/10700379#M1870788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-10T11:38:15Z</dc:date>
    </item>
  </channel>
</rss>

