<?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: Find string after certain position in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-string-after-certain-position/m-p/12125833#M1974690</link>
    <description>&lt;P&gt;Basic algorithm question. Of course it's possible. I think it's possible in one statement if you use ABAP &lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abensubstring_functions.htm"&gt;substring&lt;/A&gt; and &lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abendescriptive_functions.htm"&gt;find&lt;/A&gt; processing functions (see ABAP documentation).&lt;/P&gt;</description>
    <pubDate>Fri, 29 Nov 2019 14:53:25 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2019-11-29T14:53:25Z</dc:date>
    <item>
      <title>Find string after certain position</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-string-after-certain-position/m-p/12125827#M1974684</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;
  &lt;P&gt;I have a string as follow&lt;/P&gt;
  &lt;P&gt;Data(v_string) = '12345***678**9'&lt;/P&gt;
  &lt;P&gt;I need to get the position of * after the number 8.&lt;/P&gt;
  &lt;P&gt;I cannot used:&lt;/P&gt;
  &lt;P&gt;FIND FIRST OCCURRENCE OF '*' in v_string match OFFSET pos&lt;/P&gt;
  &lt;P&gt;because it only return the position of the first * appearance which is the one after number 5.&lt;/P&gt;
  &lt;P&gt;I cannot use&lt;/P&gt;
  &lt;P&gt;SEARCH ... STARTING AT.... because it doesn't recognize *.&lt;/P&gt;
  &lt;P&gt;So is there away to do this?&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 03:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-string-after-certain-position/m-p/12125827#M1974684</guid>
      <dc:creator>former_member641612</dc:creator>
      <dc:date>2019-11-29T03:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Find string after certain position</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-string-after-certain-position/m-p/12125828#M1974685</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;First find the position of occurrence of the number(in your example 8). Then try fetching the next character using string offset.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 03:41:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-string-after-certain-position/m-p/12125828#M1974685</guid>
      <dc:creator>cdprasanna</dc:creator>
      <dc:date>2019-11-29T03:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Find string after certain position</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-string-after-certain-position/m-p/12125829#M1974686</link>
      <description>&lt;P&gt;but the occurrence number is random not always eight,&lt;/P&gt;&lt;P&gt;even the length is also dynamic, it can be 1 to 100 but with two parts that consist of ****&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 03:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-string-after-certain-position/m-p/12125829#M1974686</guid>
      <dc:creator>former_member641612</dc:creator>
      <dc:date>2019-11-29T03:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Find string after certain position</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-string-after-certain-position/m-p/12125830#M1974687</link>
      <description>&lt;P&gt;Hi &lt;A href="https://answers.sap.com/users/902060/samindra-1.html"&gt;Samuel Indrajaya&lt;/A&gt; Try with REGEX, it can be achievable with REGEX, refer to below blogs on how to use REGEX, refer to demo program DEMO_REGEX_TOY&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2009/09/10/abap-geek-14-regular-expressions-made-easy/" target="_blank"&gt;REGEX Demo program DEMO_REGEX_TOY&lt;/A&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2015/02/03/regular-expression-in-abap/" target="_blank"&gt;REGEX in ABAP&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 04:42:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-string-after-certain-position/m-p/12125830#M1974687</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2019-11-29T04:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Find string after certain position</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-string-after-certain-position/m-p/12125831#M1974688</link>
      <description>&lt;P&gt;try some thing like below&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : lv_str TYPE string VALUE '123**34**',
       lv_offset TYPE i,
       lv_var1  TYPE string,
       lv_var2  TYPE string.

"now here i need to find the offset of * which is after 4
"sine i already know i need to find the occurence of * afetr 4 i will first devide it to two halfes and in second half  i will seacrh *

SPLIT lv_str AT '4' INTO lv_var1 lv_var2.
FIND FIRST OCCURRENCE OF '*' IN lv_var2 MATCH OFFSET lv_offset. 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Nov 2019 04:57:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-string-after-certain-position/m-p/12125831#M1974688</guid>
      <dc:creator>cdprasanna</dc:creator>
      <dc:date>2019-11-29T04:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Find string after certain position</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-string-after-certain-position/m-p/12125832#M1974689</link>
      <description>&lt;P&gt;Then FIND ALL OCCURRENCES?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(v_string) = '12345***678**9'.
DATA(_regex) = '[^\*]\*'.
FIND ALL OCCURRENCES OF REGEX _regex IN v_string RESULTS DATA(sub).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Nov 2019 05:40:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-string-after-certain-position/m-p/12125832#M1974689</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2019-11-29T05:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Find string after certain position</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-string-after-certain-position/m-p/12125833#M1974690</link>
      <description>&lt;P&gt;Basic algorithm question. Of course it's possible. I think it's possible in one statement if you use ABAP &lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abensubstring_functions.htm"&gt;substring&lt;/A&gt; and &lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abendescriptive_functions.htm"&gt;find&lt;/A&gt; processing functions (see ABAP documentation).&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 14:53:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-string-after-certain-position/m-p/12125833#M1974690</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-11-29T14:53:25Z</dc:date>
    </item>
  </channel>
</rss>

