<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1160927#M120430</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;i have 2 strings one with 15 characters(string1) and the other one can have up to 15 characters(string2).&lt;/P&gt;&lt;P&gt;Im trying to figure out how i can check if string2 contains the letters of string1 and as soon as it finds a letter that does not match it sends an error.&lt;/P&gt;&lt;P&gt;However, the characters in the string2 can be in different order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2006 18:27:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-20T18:27:02Z</dc:date>
    <item>
      <title>String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1160927#M120430</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;i have 2 strings one with 15 characters(string1) and the other one can have up to 15 characters(string2).&lt;/P&gt;&lt;P&gt;Im trying to figure out how i can check if string2 contains the letters of string1 and as soon as it finds a letter that does not match it sends an error.&lt;/P&gt;&lt;P&gt;However, the characters in the string2 can be in different order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2006 18:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1160927#M120430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-20T18:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1160928#M120431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couple different ways to do this.  Here is one solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0003.

data: string1 type string.
data: string2 type string.
data: offset type i.
data: length type i.

string1 = 'ABCDEFGHI'.
string2 = 'IHGFXEDCBA'.


length = strlen( string2 ).

while sy-subrc  = 0.

  if  offset =&amp;gt; length.
    exit.
  endif.

  search string1 for string2+offset(1).
  if sy-subrc &amp;lt;&amp;gt; 0.
    message e001(00) with 'Value not found in string1'.
  endif.

  offset = offset + 1.

endwhile.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2006 18:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1160928#M120431</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-20T18:36:08Z</dc:date>
    </item>
  </channel>
</rss>

