<?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: Splitting string into noncharacter fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-string-into-noncharacter-fields/m-p/1557929#M252514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using SPLIT only will work if you do it on character types, so you should do it first to a char type and then to a non-char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Sep 2006 12:02:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-28T12:02:28Z</dc:date>
    <item>
      <title>Splitting string into noncharacter fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-string-into-noncharacter-fields/m-p/1557927#M252512</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;I have an internal table with character type data.&lt;/P&gt;&lt;P&gt;I have some 200 structures having some non-character fields like DEC and INT.&lt;/P&gt;&lt;P&gt;Now i want to split the line of internal table in to these structure fields one by one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is SPLIT is a string function and only allows character type Field attributes.&lt;/P&gt;&lt;P&gt;Is there any way out, to SPLIT string in some non character fields?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 11:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-string-into-noncharacter-fields/m-p/1557927#M252512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T11:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting string into noncharacter fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-string-into-noncharacter-fields/m-p/1557928#M252513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Insted of Splitting the ITAB data using SPLIT, why don't you use the &amp;lt;b&amp;gt;offsets&amp;lt;/b&amp;gt;,&lt;/P&gt;&lt;P&gt;Move:itab-data+0(10) to DEC.&lt;/P&gt;&lt;P&gt;Move:itab-data+10(20) to DEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 12:01:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-string-into-noncharacter-fields/m-p/1557928#M252513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T12:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting string into noncharacter fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-string-into-noncharacter-fields/m-p/1557929#M252514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using SPLIT only will work if you do it on character types, so you should do it first to a char type and then to a non-char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 12:02:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-string-into-noncharacter-fields/m-p/1557929#M252514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T12:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting string into noncharacter fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-string-into-noncharacter-fields/m-p/1557930#M252515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data : begin of itab occurs 0,
         str type string,
       end of itab.

loop at it_char.
 split it_char at &amp;lt;delimiter&amp;gt; into table itab.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;now loop at the ne itab and extract ur values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not sure if it can satify ur requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 12:05:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-string-into-noncharacter-fields/m-p/1557930#M252515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T12:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting string into noncharacter fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-string-into-noncharacter-fields/m-p/1557931#M252516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudheer,&lt;/P&gt;&lt;P&gt;Offsets can be used..but the problem is length is not fixed.&lt;/P&gt;&lt;P&gt;I mean that i need to split at ';'.&lt;/P&gt;&lt;P&gt;Is there any FM available which performs the similar task that is performed by wrapper classes in JAVA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;G@urav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 12:16:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-string-into-noncharacter-fields/m-p/1557931#M252516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T12:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting string into noncharacter fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-string-into-noncharacter-fields/m-p/1557932#M252517</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;PRE&gt;&lt;CODE&gt;REPORT demo_mod_tech_fb_string_split.

DATA: text(10) TYPE c VALUE '0123456789',
      text1(6) TYPE c,
      text2(6) TYPE c.

PARAMETERS position TYPE i.

CALL FUNCTION 'STRING_SPLIT_AT_POSITION'
     EXPORTING
          string            = text
          pos               = position
     IMPORTING
          string1           = text1
          string2           = text2
     EXCEPTIONS
          string1_too_small = 1
          string2_too_small = 2
          pos_not_valid     = 3
          OTHERS            = 4.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 12:25:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-string-into-noncharacter-fields/m-p/1557932#M252517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T12:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting string into noncharacter fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-string-into-noncharacter-fields/m-p/1557933#M252518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandrashekhar,&lt;/P&gt;&lt;P&gt;Thanks, i think this will solve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;G@urav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 12:28:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/splitting-string-into-noncharacter-fields/m-p/1557933#M252518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T12:28:50Z</dc:date>
    </item>
  </channel>
</rss>

