<?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: STRING MANUPULATION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupulation/m-p/7373493#M1543261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you will just need to split your string2  as mentioned above.&lt;/P&gt;&lt;P&gt;Loop throuhg this table and do a CS of each word in string1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Oct 2010 01:05:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-11T01:05:48Z</dc:date>
    <item>
      <title>STRING MANUPULATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupulation/m-p/7373490#M1543258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in need of a help for comparison of two strings...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A lot of operators and function modules are provided by SAP but my requirement is little fuzzy.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;string1 = how &lt;STRONG&gt;is&lt;/STRONG&gt; everybody &lt;STRONG&gt;doing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;string2 = doing is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to get the string comparisons true.....&lt;/P&gt;&lt;P&gt;Unfortunately all string manupulation operators and function modules are giving sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in short I need to compare a &lt;STRONG&gt;group of words&lt;/STRONG&gt; in a String and should return true if the words &lt;STRONG&gt;get matched in any order&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function modules available for this???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this is highly appreciated.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Oct 2010 22:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupulation/m-p/7373490#M1543258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-09T22:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: STRING MANUPULATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupulation/m-p/7373491#M1543259</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;I don't think it exists out of the box.&lt;/P&gt;&lt;P&gt;But, what you ask is simply testing the string several times, isn't it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF string1 CP '*is*' AND string1 CP '*doing*' ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Oct 2010 00:02:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupulation/m-p/7373491#M1543259</guid>
      <dc:creator>guillaume-hrc</dc:creator>
      <dc:date>2010-10-10T00:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: STRING MANUPULATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupulation/m-p/7373492#M1543260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can acheive this by making the string into table using SPLIT command.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SPLIT string1 AT space INTO TABLE itab1.
SPLIT string2 AT space INTO TABLE itab2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Compare itab1 and itab2 for each word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT itab1.
  READ TABLE itab2.
...
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Oct 2010 07:13:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupulation/m-p/7373492#M1543260</guid>
      <dc:creator>asik_shameem</dc:creator>
      <dc:date>2010-10-10T07:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: STRING MANUPULATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupulation/m-p/7373493#M1543261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you will just need to split your string2  as mentioned above.&lt;/P&gt;&lt;P&gt;Loop throuhg this table and do a CS of each word in string1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 01:05:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupulation/m-p/7373493#M1543261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T01:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: STRING MANUPULATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupulation/m-p/7373494#M1543262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data t2 type table of string.&lt;/P&gt;&lt;P&gt;data t2s type string.&lt;/P&gt;&lt;P&gt;data istrue type flag.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;put string2 into a table of words&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;split string2 at space into table t2. &lt;/P&gt;&lt;P&gt;*initialise true flag to 'ON'&lt;/P&gt;&lt;P&gt;istrue = 'X".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;loop through all words in string2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;loop at t2 into t2s.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if the current string2 word is not in string...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; if string1 ns t2s.&lt;/P&gt;&lt;P&gt;*... set true flag OFF&lt;/P&gt;&lt;P&gt;    clear istrue.&lt;/P&gt;&lt;P&gt;*... leave the loop&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if ISTRUE is not blank all words in string2 are in string1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 02:38:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupulation/m-p/7373494#M1543262</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2010-10-11T02:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: STRING MANUPULATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupulation/m-p/7373495#M1543263</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 simple code. Will help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA:itab TYPE TABLE OF string,
       itab1 TYPE TABLE OF string,
       wa TYPE string.

  PARAMETERS: string1 TYPE string LOWER CASE,
              string2 TYPE string LOWER CASE.

  SPLIT string1 AT space INTO TABLE itab.

  LOOP AT itab INTO wa.
    IF string2 CS wa.                 " Use CS (Contains String) operator
      APPEND wa TO itab1.
    ENDIF.
  ENDLOOP.

  WRITE: 'Matched words between 2 strings:'.
  LOOP AT itab1 INTO wa.
    WRITE:/ wa.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 02:54:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupulation/m-p/7373495#M1543263</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2010-10-11T02:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: STRING MANUPULATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupulation/m-p/7373496#M1543264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all!!!.....The samples code worked for me........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 16:04:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupulation/m-p/7373496#M1543264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-12T16:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: STRING MANUPULATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupulation/m-p/7373497#M1543265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well.. People like spoon feeding..!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 09:34:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manupulation/m-p/7373497#M1543265</guid>
      <dc:creator>asik_shameem</dc:creator>
      <dc:date>2010-10-14T09:34:19Z</dc:date>
    </item>
  </channel>
</rss>

