<?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: Regarding finding the mismatching characters in two strings. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261680#M1215220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use the FIND statement to find the string usbset. once found, find the offset at which the subset occurs. The startingt ta offset u can read the remaining characters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Mar 2009 06:12:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-16T06:12:36Z</dc:date>
    <item>
      <title>Regarding finding the mismatching characters in two strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261677#M1215217</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;Please tell me how to find the differing characters between two strings.&lt;/P&gt;&lt;P&gt;For ex str1 = 'asdwe'.&lt;/P&gt;&lt;P&gt;str2 = 'asd'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i should get 'we' as result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 05:55:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261677#M1215217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T05:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding finding the mismatching characters in two strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261678#M1215218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably the safest way would be to process both string character by character, &lt;STRONG&gt;something&lt;/STRONG&gt; like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DO.
offset = offset + 1.
lv_char1 = str1+offset(1).
lv_char2 = str2+offset(1).

IF lv_char1 &amp;lt;&amp;gt; lv_char2.
***do whatever you want***
ENDIF.
ENDDO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 06:09:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261678#M1215218</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-03-16T06:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding finding the mismatching characters in two strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261679#M1215219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use comparison operators.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://help.sap.com/saphelp_erp2004/helpdata/EN/fc/eb3516358411d1829f0000e829fbfe/frameset.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 06:10:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261679#M1215219</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-03-16T06:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding finding the mismatching characters in two strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261680#M1215220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use the FIND statement to find the string usbset. once found, find the offset at which the subset occurs. The startingt ta offset u can read the remaining characters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 06:12:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261680#M1215220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T06:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding finding the mismatching characters in two strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261681#M1215221</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 the following code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: str1(70) VALUE 'asdwedkre[qriomaaaaaawfhupfewpfjsnjiheuwiqfjaaaaa',
      str2(10) VALUE 'a'.


replace ALL OCCURRENCES OF str2 in str1 WITH ''.   &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the output is sdwedkre[qriomwfhupfewpfjsnjiheuwiqfj without any blacks or spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rajat  Chaturvedi on Mar 16, 2009 11:54 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 06:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261681#M1215221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T06:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding finding the mismatching characters in two strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261682#M1215222</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;This is very simple, hope the below snippet help you out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:String1(5) type c value 'asdwe',
     String2(3) type c value 'asd',
     String3(2) type c.

if String1 CN String2.
String3 = String1+3(2).
endif.

write:/ String3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:if the lenght of the strings are not known then find out the lenght of the 2 strings and use the offset from the fixed value to the length of the strings calculated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover I am assuming that if String1 contains String2 in the starting position only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 06:22:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261682#M1215222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T06:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding finding the mismatching characters in two strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261683#M1215223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;    calculate the length of the 1st string: v_len1&lt;/P&gt;&lt;P&gt;   calculate the length of the  2nd string: v_len2&lt;/P&gt;&lt;P&gt;now,&lt;/P&gt;&lt;P&gt;v_len1 = STRLEN( v_text1)&lt;/P&gt;&lt;P&gt;v_len2 = STRLEN( v_text2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_next1 = 0. &lt;/P&gt;&lt;P&gt;v_count = 0.&lt;/P&gt;&lt;P&gt;v_next2 = 0. &lt;/P&gt;&lt;P&gt;v_count = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;comparing each letter in 1st string with each letter in  2nd string.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO v_len1 TIMES.&lt;/P&gt;&lt;P&gt;DO v_len2 TIMES.&lt;/P&gt;&lt;P&gt;if v_text&lt;EM&gt;v_next1(v_len1) &amp;lt;&amp;gt; v_text2&lt;/EM&gt;v_next2(v_len2). v_text3 = v_text+v_next(v_len1).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;v_next2 = v_next2+1.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;v_next1 = v_next1+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;v_text3 will hve the difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 06:24:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261683#M1215223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T06:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding finding the mismatching characters in two strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261684#M1215224</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;do like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var1 = asd.&lt;/P&gt;&lt;P&gt;var2 = asdewasdew..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then take strlen(var1) into count.&lt;/P&gt;&lt;P&gt;then count holds value 3.&lt;/P&gt;&lt;P&gt;i =1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do count times..&lt;/P&gt;&lt;P&gt;   var3 = var1+0(i).&lt;/P&gt;&lt;P&gt; i = i + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace all occurences of var3 in var2 by space..&lt;/P&gt;&lt;P&gt;codense var2.&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;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here var3 holds value 'a' , in var2 a is been replaced by space and var2 holds sdewsdew..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same way repeat for other two characters also then u r left with ewew..&lt;/P&gt;&lt;P&gt;i think this is ur requireed output..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds.,&lt;/P&gt;&lt;P&gt;subash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 06:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261684#M1215224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T06:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding finding the mismatching characters in two strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261685#M1215225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: st1 TYPE char3 VALUE 'asd', "Important: type length should be equal to value
      st2 TYPE char10 VALUE 'asdwe'.


WRITE: / st2.   "output: asdwe
CONDENSE st1.
REPLACE st1 WITH space INTO st2.
CONDENSE st2.
WRITE: / st2.   "output: we
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 06:30:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261685#M1215225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T06:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding finding the mismatching characters in two strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261686#M1215226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry small change in logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var1 = asd.&lt;/P&gt;&lt;P&gt;var2 = asdewasdew..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then take strlen(var1) into count.&lt;/P&gt;&lt;P&gt;then count holds value 3.&lt;/P&gt;&lt;P&gt;i =1.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;a= 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;do count times..&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var3 = var1+a(i)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;i = i + 1.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;a= a + 1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;replace all occurences of var3 in var2 by space..&lt;/P&gt;&lt;P&gt;codense var2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 06:31:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261686#M1215226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T06:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding finding the mismatching characters in two strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261687#M1215227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here's the logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: counter TYPE i value '5',
      flag,
      str1 TYPE char12 VALUE 'asdwew',
      str2 TYPE char12 VALUE 'asd',
      str3 TYPE char12,
      len type i.

DO counter TIMES.
  len = strlen( str1 ).
  IF str1(sy-index) = str2(sy-index).
    flag = 'X'.
   ELSE.
    sy-index = sy-index - 1.
    move str1+sy-index(len) to str3.
    write:/ str3.
    EXIT.
  ENDIF.
ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks\&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 06:52:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261687#M1215227</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-03-16T06:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding finding the mismatching characters in two strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261688#M1215228</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; Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : lv_lenstr1 TYPE i,&lt;/P&gt;&lt;P&gt;       lv_lenstr2 TYPE i,&lt;/P&gt;&lt;P&gt;       idx_i TYPE i,&lt;/P&gt;&lt;P&gt;       idx_j TYPE i,&lt;/P&gt;&lt;P&gt;       lv_str3 TYPE string,&lt;/P&gt;&lt;P&gt;       lv_char1 TYPE c,&lt;/P&gt;&lt;P&gt;       lv_char2 TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : p_str1 TYPE string,&lt;/P&gt;&lt;P&gt;             p_str2 TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_lenstr1 = STRLEN( p_str1 ).&lt;/P&gt;&lt;P&gt;lv_lenstr2 = STRLEN( p_str2 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ( lv_lenstr1 GT lv_lenstr2 ). "if first string is greater than second&lt;/P&gt;&lt;P&gt;                                 "if second string is greater interchange&lt;/P&gt;&lt;P&gt;                                 "first and second string&lt;/P&gt;&lt;P&gt;  CLEAR : idx_i,&lt;/P&gt;&lt;P&gt;          idx_j.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DO lv_lenstr1 TIMES.&lt;/P&gt;&lt;P&gt;    lv_char1 = p_str1+idx_i(1).&lt;/P&gt;&lt;P&gt;    CLEAR : idx_j.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO lv_lenstr2 TIMES.&lt;/P&gt;&lt;P&gt;      IF idx_i LE lv_lenstr2.&lt;/P&gt;&lt;P&gt;        lv_char2 = p_str2+idx_j(1).&lt;/P&gt;&lt;P&gt;        IF lv_char1 EQ lv_char2.&lt;/P&gt;&lt;P&gt;          EXIT.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;          IF p_str2 CA lv_char1.&lt;/P&gt;&lt;P&gt;            EXIT.&lt;/P&gt;&lt;P&gt;          ELSE.&lt;/P&gt;&lt;P&gt;            CONCATENATE lv_str3 lv_char1 INTO lv_str3.&lt;/P&gt;&lt;P&gt;            EXIT.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        idx_j = idx_j + 1.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF idx_i GT lv_lenstr2.&lt;/P&gt;&lt;P&gt;      IF p_str2 CA lv_char1.&lt;/P&gt;&lt;P&gt;       idx_i = idx_i + 1.&lt;/P&gt;&lt;P&gt;        CONTINUE.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        CONCATENATE lv_str3 lv_char1 INTO lv_str3.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      idx_i = idx_i + 1.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      idx_i = idx_i + 1.&lt;/P&gt;&lt;P&gt;    ENDIF.&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;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE lv_str3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Roopa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 09:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261688#M1215228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T09:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding finding the mismatching characters in two strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261689#M1215229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare two internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of lt_string1 occurs 0,&lt;/P&gt;&lt;P&gt;       line(1) type c,&lt;/P&gt;&lt;P&gt;       end of lt_string1.&lt;/P&gt;&lt;P&gt;data: begin of lt_string2 occurs 0,&lt;/P&gt;&lt;P&gt;         line(1) type c,&lt;/P&gt;&lt;P&gt;        end of lt_string 2.&lt;/P&gt;&lt;P&gt;data: lv_char(10) type c value 'abcd'&lt;/P&gt;&lt;P&gt;data: lv_ch(10) type c value 'ab'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_string1-line = lv_char+0(1)&lt;/P&gt;&lt;P&gt;append lt_string1.&lt;/P&gt;&lt;P&gt;lt_string1-line = lv_char+1(1)&lt;/P&gt;&lt;P&gt;append lt_string1.&lt;/P&gt;&lt;P&gt;and so on....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the same thing with another internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now the two tables have structures like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_string1                 lt_string2&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;                 -&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;a                             a&lt;/P&gt;&lt;P&gt;b                             b&lt;/P&gt;&lt;P&gt;c&lt;/P&gt;&lt;P&gt;d&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_string1.&lt;/P&gt;&lt;P&gt;read table lt_string2 with key line = lt_string1-line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt;  0.&lt;/P&gt;&lt;P&gt;lt_string3-line = lt_string1-line&lt;/P&gt;&lt;P&gt;append lt_string3.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_string3 will have c and d&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 10:02:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-finding-the-mismatching-characters-in-two-strings/m-p/5261689#M1215229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T10:02:48Z</dc:date>
    </item>
  </channel>
</rss>

