<?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: Comparing Text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-text/m-p/6301937#M1391256</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 this FM &lt;STRONG&gt;MEDCMT_COMPARE_TEXTS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First translate them to UPPER CASE and then using an IF condition you can compare them .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Nov 2009 06:27:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-10T06:27:10Z</dc:date>
    <item>
      <title>Comparing Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-text/m-p/6301936#M1391255</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;&lt;/P&gt;&lt;P&gt;I have a requirement like i need to compare two texts for example i need to retrieve the text from Purchase order as well from Purchase requisiton and i need to compare the both and if there is any difference i have update a flag. i am retrieving the texts from READ_TEXT function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one suggest me some optimised way to compare the tex(If both the texts are same or different)??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 06:17:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-text/m-p/6301936#M1391255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T06:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-text/m-p/6301937#M1391256</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 this FM &lt;STRONG&gt;MEDCMT_COMPARE_TEXTS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First translate them to UPPER CASE and then using an IF condition you can compare them .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 06:27:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-text/m-p/6301937#M1391256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T06:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-text/m-p/6301938#M1391257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the below code snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: str1 TYPE string VALUE 'NiTesh',
      str2 TYPE string VALUE 'Nitesh'.
DATA: lv_length1 TYPE i,
      lv_length2 TYPE i,
      lv_temp TYPE i VALUE 1.
lv_length1 = STRLEN( str1 ).
lv_length2 = STRLEN( str2 ).
IF lv_length1 EQ lv_length1.
  DO lv_length1 TIMES.
    IF str1+0(lv_temp) NE str2+0(lv_temp).
      EXIT.
    ELSE.
      lv_temp = lv_temp + 1.
    ENDIF.
  ENDDO.
ENDIF.&lt;/CODE&gt;&lt;/PRE&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>Tue, 10 Nov 2009 06:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-text/m-p/6301938#M1391257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T06:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-text/m-p/6301939#M1391258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using READ_TEXT function module, a table with all the 'lines' will be returned (tables parameter LINES). Compare the two internal tables and you will know, like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF gt_lines1[] = gt_lines2[].  "gt_lines1 and 2 are internal tables per READ_TEXT.
* Same
ELSE.
*Different
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 07:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-text/m-p/6301939#M1391258</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-11-10T07:07:45Z</dc:date>
    </item>
  </channel>
</rss>

