<?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: Multiple split in a program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-split-in-a-program/m-p/12131998#M1975219</link>
    <description>&lt;P&gt;Hello &lt;SPAN class="mention-scrubbed"&gt;naveena_10&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;There were few errors, you can use the below code which i hope satisfies your requirement.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONSTANTS : lv_string TYPE char40 VALUE 'we%123456789 gift%happy birthday',
            lv_c1     TYPE char03 VALUE 'we%',
            lv_c2     TYPE char05 VALUE 'gift%'. --&amp;gt; There was error here in Data type declaration.

DATA: str1 TYPE string,
      str2 TYPE string,
      s1   TYPE string,
      s2   TYPE string,
      s3   TYPE string,
      s4   TYPE string.


SPLIT : lv_string AT ' ' INTO str1 str2,
        str1 AT lv_c1 INTO s1 s2, --&amp;gt; You failed to provide two variables as destination
        str2 AT lv_c2 INTO s3 s4. --&amp;gt; You failed to provide two variables as destination

WRITE:/ str1.
WRITE:/ str2.
WRITE:/ s1.
WRITE:/ s2.
WRITE:/ s3.
WRITE:/ s4.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards!&lt;/P&gt;</description>
    <pubDate>Fri, 22 May 2020 04:32:45 GMT</pubDate>
    <dc:creator>former_member1716</dc:creator>
    <dc:date>2020-05-22T04:32:45Z</dc:date>
    <item>
      <title>Multiple split in a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-split-in-a-program/m-p/12131997#M1975218</link>
      <description>&lt;P&gt; CONSTANTS : lv_string type char40 value 'we%123456789 gift%happy birthday',&lt;BR /&gt; lv_c1 TYPE char03 VALUE 'we%',&lt;BR /&gt; lv_c2 TYPE char03 VALUE 'gift%'.&lt;BR /&gt; data: str1 type string,&lt;BR /&gt; str2 type string,&lt;BR /&gt; s1 type string,&lt;BR /&gt; s2 type string.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; SPLIT : lv_string at ' ' into str1 str2,&lt;BR /&gt; str1 at lv_c1 into s,&lt;BR /&gt; str2 at lv_c2 into s2.&lt;BR /&gt; &lt;BR /&gt; write:/ str1.&lt;BR /&gt; write:/ str2.&lt;BR /&gt; write:/ s1.&lt;BR /&gt; write:/ s2.&lt;/P&gt;
  &lt;P&gt;Can any one correct my code? it showing error.&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 03:27:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-split-in-a-program/m-p/12131997#M1975218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-05-22T03:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple split in a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-split-in-a-program/m-p/12131998#M1975219</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="mention-scrubbed"&gt;naveena_10&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;There were few errors, you can use the below code which i hope satisfies your requirement.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONSTANTS : lv_string TYPE char40 VALUE 'we%123456789 gift%happy birthday',
            lv_c1     TYPE char03 VALUE 'we%',
            lv_c2     TYPE char05 VALUE 'gift%'. --&amp;gt; There was error here in Data type declaration.

DATA: str1 TYPE string,
      str2 TYPE string,
      s1   TYPE string,
      s2   TYPE string,
      s3   TYPE string,
      s4   TYPE string.


SPLIT : lv_string AT ' ' INTO str1 str2,
        str1 AT lv_c1 INTO s1 s2, --&amp;gt; You failed to provide two variables as destination
        str2 AT lv_c2 INTO s3 s4. --&amp;gt; You failed to provide two variables as destination

WRITE:/ str1.
WRITE:/ str2.
WRITE:/ s1.
WRITE:/ s2.
WRITE:/ s3.
WRITE:/ s4.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 04:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-split-in-a-program/m-p/12131998#M1975219</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2020-05-22T04:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple split in a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-split-in-a-program/m-p/12131999#M1975220</link>
      <description>&lt;P&gt;Please use the CODE button to format your code so that it's shown in a more user-friendly format (colorized).&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 08:05:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-split-in-a-program/m-p/12131999#M1975220</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-05-22T08:05:52Z</dc:date>
    </item>
  </channel>
</rss>

