<?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: Split a string by second character in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-a-string-by-second-character/m-p/12072298#M1970166</link>
    <description>&lt;P&gt;Just read the online (or F1) help on statement SPLIT.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2019 11:40:18 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2019-08-20T11:40:18Z</dc:date>
    <item>
      <title>Split a string by second character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-a-string-by-second-character/m-p/12072295#M1970163</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;
  &lt;P&gt;first of all forgive my English, but I need your help with this.&lt;/P&gt;
  &lt;P&gt;I need to split a string by the second repetition of an hyphen, I know, I explain myself badly, but I give an example:&lt;/P&gt;
  &lt;P&gt;my string is like this:&lt;/P&gt;
  &lt;P&gt;CO-CODA (CODE) TA - 8 hours (500)&lt;/P&gt;
  &lt;P&gt;and I need it to be like this:&lt;/P&gt;
  &lt;P&gt;CO-CODA (CODE) TA&lt;/P&gt;
  &lt;P&gt;8 hours (500)&lt;/P&gt;
  &lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 10:56:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-a-string-by-second-character/m-p/12072295#M1970163</guid>
      <dc:creator>former_member628493</dc:creator>
      <dc:date>2019-08-20T10:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Split a string by second character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-a-string-by-second-character/m-p/12072296#M1970164</link>
      <description>&lt;P&gt;You can do it in many ways, for example with &lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abapsplit.htm"&gt;SPLIT&lt;/A&gt;, &lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abensegment_functions.htm"&gt;segment&lt;/A&gt;, &lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abensubstring_functions.htm"&gt;substring_before&lt;/A&gt;, &lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abenmatch_functions.htm"&gt;match&lt;/A&gt;, and so on.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 11:06:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-a-string-by-second-character/m-p/12072296#M1970164</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-08-20T11:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Split a string by second character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-a-string-by-second-character/m-p/12072297#M1970165</link>
      <description>&lt;P&gt;and if I don't know how many hyphens are in the string, how can I separate them in a way to have all the string until the last hyphen?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 11:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-a-string-by-second-character/m-p/12072297#M1970165</guid>
      <dc:creator>former_member628493</dc:creator>
      <dc:date>2019-08-20T11:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Split a string by second character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-a-string-by-second-character/m-p/12072298#M1970166</link>
      <description>&lt;P&gt;Just read the online (or F1) help on statement SPLIT.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 11:40:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-a-string-by-second-character/m-p/12072298#M1970166</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2019-08-20T11:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Split a string by second character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-a-string-by-second-character/m-p/12072299#M1970167</link>
      <description>&lt;P&gt;You can still do it with the statements above.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 11:59:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-a-string-by-second-character/m-p/12072299#M1970167</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-08-20T11:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Split a string by second character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-a-string-by-second-character/m-p/12072300#M1970168</link>
      <description>&lt;P&gt;As mentioned by Sandra you can do it by many ways. Here is how you will do it by Split keyword.&lt;/P&gt;&lt;P&gt;First split the string into three strings at the hyphen. (Str1, Str2, Str3)&lt;/P&gt;&lt;P&gt;Then concatenate the first two part (Str1, Str2) into result string separated by hyphen.&lt;/P&gt;&lt;P&gt;DATA text TYPE string. &lt;/P&gt;&lt;P&gt;text = `CO-CODA (CODE) TA - 8 hours (500)`.  "Example Text&lt;/P&gt;&lt;P&gt;SPLIT text AT '-' INTO: DATA(str1) DATA(str2) DATA(str3). &lt;/P&gt;&lt;P&gt;CONCATENATE str1 str2 INTO DATA(result) SEPARATED BY '-'. &lt;/P&gt;&lt;P&gt;WRITE:/ result.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 16:01:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-a-string-by-second-character/m-p/12072300#M1970168</guid>
      <dc:creator>kaleem_ahmed</dc:creator>
      <dc:date>2019-08-20T16:01:28Z</dc:date>
    </item>
  </channel>
</rss>

