<?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 Split string to numbers and characteristics in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-numbers-and-characteristics/m-p/5809335#M1313013</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;Does anyone know a FM that splits a string to numbers and characteristics ?&lt;/P&gt;&lt;P&gt;For example - string "56ddfdfhh hjhj 12 ggh fss 33s-yuyu" will give the following internal table:&lt;/P&gt;&lt;P&gt;56&lt;/P&gt;&lt;P&gt;ddfdfhh hjhj &lt;/P&gt;&lt;P&gt;12&lt;/P&gt;&lt;P&gt; ggh fss &lt;/P&gt;&lt;P&gt;33&lt;/P&gt;&lt;P&gt;s-yuyu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;Rebeka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2009 13:12:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-24T13:12:14Z</dc:date>
    <item>
      <title>Split string to numbers and characteristics</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-numbers-and-characteristics/m-p/5809335#M1313013</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;Does anyone know a FM that splits a string to numbers and characteristics ?&lt;/P&gt;&lt;P&gt;For example - string "56ddfdfhh hjhj 12 ggh fss 33s-yuyu" will give the following internal table:&lt;/P&gt;&lt;P&gt;56&lt;/P&gt;&lt;P&gt;ddfdfhh hjhj &lt;/P&gt;&lt;P&gt;12&lt;/P&gt;&lt;P&gt; ggh fss &lt;/P&gt;&lt;P&gt;33&lt;/P&gt;&lt;P&gt;s-yuyu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;Rebeka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 13:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-numbers-and-characteristics/m-p/5809335#M1313013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-24T13:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Split string to numbers and characteristics</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-numbers-and-characteristics/m-p/5809336#M1313014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the FM&lt;/P&gt;&lt;P&gt;FIEB_EXTRACT_NUMBERS to extract the numbers&lt;/P&gt;&lt;P&gt;FIEB_EXTRACT_CHARACTERS to extract the characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 13:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-numbers-and-characteristics/m-p/5809336#M1313014</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-06-24T13:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Split string to numbers and characteristics</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-numbers-and-characteristics/m-p/5809337#M1313015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: str(100),
      len type i,
      counter type i,
      symb.
data: begin of itab occurs 0,
      flag,
      str(20),
      end of itab.
data: begin of xtab occurs 0,
      str(20),
      end of xtab.
str = '56ddfdfhh hjhj 12 ggh fss 33s-yuyu'.
len = strlen( str ).
do len times.
  symb = str+counter(1).
  itab-str = symb.
  if symb CO '0123456789'.
    itab-flag = 'N'.
  else.
    itab-flag = 'C'.
  endif.
  append itab.
  counter = counter + 1.
enddo.

loop at itab.
  at new flag.
    clear xtab.
  endat.

  concatenate xtab-str itab-str into xtab-str.

  at end of flag.
    append xtab.
  endat.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 13:52:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-numbers-and-characteristics/m-p/5809337#M1313015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-24T13:52:50Z</dc:date>
    </item>
  </channel>
</rss>

