<?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: how to identify substring in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-substring/m-p/12250632#M1986126</link>
    <description>&lt;P&gt;By the way, I think that most of Constructor Expressions just use the same byte code as old ABAP. Consequently, it's rarely faster, it's just that when correctly used it can be much more legible ("functional" syntax). If anyone knows a link to a performance workbench blog post, I am interested &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Dec 2020 19:56:07 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2020-12-07T19:56:07Z</dc:date>
    <item>
      <title>how to identify substring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-substring/m-p/12250626#M1986120</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
  &lt;P&gt;i have a string which has around 100 names concatenated and i have to write a query to identify the sub string.&lt;/P&gt;
  &lt;P&gt;1. I should consider it as substring even if the order of the names are different&lt;/P&gt;
  &lt;P&gt;2. I should consider it as substring only if all the names present in str2 are present in str1.&lt;/P&gt;
  &lt;P&gt;i can split all the names and add it to internal table and than comparing it using loop but it be a performance issue.&lt;/P&gt;
  &lt;P&gt;can anyone suggest other way.&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;CONCATENATE 'ram' 'viju' 'meera' INTO lv_string.
CONCATENATE 'viju' 'ram' INTO lv1_string.


IF lv1_string CA lv_string. (This is not working as it will satisfy even if it has 1 diff name)


  write 'the lv1_string is a substring'.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Dec 2020 05:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-substring/m-p/12250626#M1986120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-12-07T05:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to identify substring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-substring/m-p/12250627#M1986121</link>
      <description>&lt;P&gt;Why do you think it's a performance issue for doing IF on 100 names?&lt;/P&gt;&lt;P&gt;It should take something like micro seconds, is it too much for you?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 08:12:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-substring/m-p/12250627#M1986121</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-12-07T08:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to identify substring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-substring/m-p/12250628#M1986122</link>
      <description>&lt;P&gt;Hello  &lt;SPAN class="mention-scrubbed"&gt;vijayashri&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Why would you look for another way? Splitting into internal table, LOOPing and comparing will be as fast as a lightning and will not be a performance issue in any way. &lt;/P&gt;&lt;P&gt;The only issue I can see in your example is that the names are not separated by any separator. How will you split them then?&lt;/P&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Mon, 07 Dec 2020 08:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-substring/m-p/12250628#M1986122</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2020-12-07T08:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to identify substring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-substring/m-p/12250629#M1986123</link>
      <description>&lt;P&gt;i was thinking if there is any 7.5 syntax that can solve this issue&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 08:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-substring/m-p/12250629#M1986123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-12-07T08:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to identify substring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-substring/m-p/12250630#M1986124</link>
      <description>&lt;P&gt;Exactly how I would solve this. Simple, straightforward and fast. &lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 10:29:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-substring/m-p/12250630#M1986124</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2020-12-07T10:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to identify substring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-substring/m-p/12250631#M1986125</link>
      <description>&lt;P&gt;So, not really an issue... you just want to use a Constructor Expression (available since 7.40), for unknown reason...&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 19:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-substring/m-p/12250631#M1986125</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-12-07T19:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to identify substring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-substring/m-p/12250632#M1986126</link>
      <description>&lt;P&gt;By the way, I think that most of Constructor Expressions just use the same byte code as old ABAP. Consequently, it's rarely faster, it's just that when correctly used it can be much more legible ("functional" syntax). If anyone knows a link to a performance workbench blog post, I am interested &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 19:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-substring/m-p/12250632#M1986126</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-12-07T19:56:07Z</dc:date>
    </item>
  </channel>
</rss>

