<?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 probelm in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124250#M1511528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi check the below code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text = `2551034900000,"1","0,00"`.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Just use three var str1, str2, str3.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT text AT ',' INTO: str1 str2 str3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Str2 and str3 will have the double quotes.You can remove that by REPLACE command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Senthil Kumar on Jul 30, 2010 3:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jul 2010 10:21:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-30T10:21:08Z</dc:date>
    <item>
      <title>Split probelm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124249#M1511527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  I have a requirement like &lt;/P&gt;&lt;P&gt;S2551034900000,"1","0,00"  should become  S2551034900000		1	0,00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i use split at comma the "0,00" has become 0  00 but i want it as single value 0,00.&lt;/P&gt;&lt;P&gt;Is it possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 10:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124249#M1511527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-30T10:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Split probelm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124250#M1511528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi check the below code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text = `2551034900000,"1","0,00"`.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Just use three var str1, str2, str3.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT text AT ',' INTO: str1 str2 str3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Str2 and str3 will have the double quotes.You can remove that by REPLACE command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Senthil Kumar on Jul 30, 2010 3:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 10:21:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124250#M1511528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-30T10:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Split probelm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124251#M1511529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well you cant tell the split statement that it should ignore split criterias which are between hyphens, which would be the soltuion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you either got to do it manually with string operations and then notice the case where you split 0,00 (seems only case where sign BEFORE split sign and AFTER is numerical) and dont do it for this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another much more efficient way would be to ask the dudes from which you get those strings or flat file, from which your string is one line i suppose, to generate it with other seperators than comma. preferably ;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can doa split at ; and all is fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 10:28:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124251#M1511529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-30T10:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Split probelm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124252#M1511530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;Use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE   ALL OCCURRENCES of ',"' In str WITH space.&lt;/P&gt;&lt;P&gt;REPLACE   ALL OCCURRENCES of '"' In str WITH space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it wil work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 10:33:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124252#M1511530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-30T10:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Split probelm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124253#M1511531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to SAP, but I tried, and I think I am getting (desired?)result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: LV_VAR1 TYPE STRING,
      LV_STR1 TYPE STRING,
      LV_STR2 TYPE STRING,
      LV_STR3 TYPE STRING,
      LV_RES TYPE STRING.
LV_VAR1 = 'S2551034900000,"1","0,00"'.
WRITE :/ LV_VAR1.
SPLIT LV_VAR1 AT ',' INTO LV_STR1 LV_STR2 LV_STR3.
WRITE:/  'STR1' , LV_STR1.
WRITE:/  'STR2' , LV_STR2.
WRITE:/  'STR3' , LV_STR3.

REPLACE '"' WITH ' ' INTO LV_STR2.
WRITE:/  'STR2' , LV_STR2.

REPLACE '"' WITH ' ' INTO LV_STR2.
WRITE:/  'STR2' , LV_STR2.

REPLACE '"' WITH ' ' INTO LV_STR3.
WRITE:/  'STR3' , LV_STR3.

REPLACE '"' WITH ' ' INTO LV_STR3.
WRITE:/  'STR3' , LV_STR3.

CONCATENATE LV_STR1 LV_STR2 LV_STR3 INTO LV_RES.
WRITE:/ 'Result :' , LV_RES.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it'll help you.&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Sachin Bhatt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 10:42:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124253#M1511531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-30T10:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Split probelm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124254#M1511532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is "0,00" should treat a single value. it should not split into to two string. &lt;/P&gt;&lt;P&gt;"S2551034900000","1","0,00" should become  S2551034900000		1	0,00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 11:02:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124254#M1511532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-30T11:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Split probelm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124255#M1511533</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;use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA: l_str TYPE string.
  l_str = '"S2551034900000","1","0,00"'.
  TYPES: BEGIN OF itab_type,
          word(20),
        END   OF itab_type.
  DATA: itab TYPE STANDARD TABLE OF itab_type.
  SPLIT l_str AT '"' INTO TABLE itab.
  DELETE itab WHERE word EQ ','.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 11:36:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124255#M1511533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-30T11:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Split probelm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124256#M1511534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Is my answer didnt work for you? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: str1 TYPE string,
      str2 TYPE string,
      str3 TYPE string,
      text TYPE string.

text = `2551034900000,"1","0,00"`.

SPLIT text AT ',' INTO: str1 str2 str3.

WRITE : str1,str2,str3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am getting the output as 2551034900000 "1" "0,00" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can remove the double quote(") by using REPLACE commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it in SE38 and check the output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Senthil Kumar on Jul 30, 2010 5:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 12:29:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124256#M1511534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-30T12:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Split probelm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124257#M1511535</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;Use the foollowing code.It worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: str1 TYPE string,&lt;/P&gt;&lt;P&gt;      str2 TYPE string,&lt;/P&gt;&lt;P&gt;      str3 TYPE string,&lt;/P&gt;&lt;P&gt;      text TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text = `2551034900000,"1","0,00"`.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*SPLIT text AT ',' INTO: str1 str2 str3.&lt;/P&gt;&lt;P&gt;replace all occurrences of  '"' in text  with '' .&lt;/P&gt;&lt;P&gt;WRITE : text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Ramya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 12:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-probelm/m-p/7124257#M1511535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-30T12:36:46Z</dc:date>
    </item>
  </channel>
</rss>

