<?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 Convert a string to a table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-a-string-to-a-table/m-p/2677688#M618734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are in the process of upgrading to ECC 6.0 and are correcting unicode errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to convert a string into a flat structure containing various data types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at func modules but have not come across one that fits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our internal table is defined as a standard table of type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We loop thru this table and now want to assign each line of the table into a structure defined as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Begin of _ttype&lt;/P&gt;&lt;P&gt;    m like mseg,&lt;/P&gt;&lt;P&gt;    other fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end of ttype&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i_mseg like ttype occurs 0 with header line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help is appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Aug 2007 14:23:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-17T14:23:08Z</dc:date>
    <item>
      <title>Convert a string to a table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-a-string-to-a-table/m-p/2677688#M618734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are in the process of upgrading to ECC 6.0 and are correcting unicode errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to convert a string into a flat structure containing various data types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at func modules but have not come across one that fits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our internal table is defined as a standard table of type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We loop thru this table and now want to assign each line of the table into a structure defined as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Begin of _ttype&lt;/P&gt;&lt;P&gt;    m like mseg,&lt;/P&gt;&lt;P&gt;    other fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end of ttype&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i_mseg like ttype occurs 0 with header line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help is appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 14:23:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-a-string-to-a-table/m-p/2677688#M618734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T14:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a string to a table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-a-string-to-a-table/m-p/2677689#M618735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;we can do it by field symbols  easily&lt;/P&gt;&lt;P&gt;take one generic field symbol.&lt;/P&gt;&lt;P&gt;copy source data to field symbol then from field symbol  to destination.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 14:33:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-a-string-to-a-table/m-p/2677689#M618735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T14:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a string to a table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-a-string-to-a-table/m-p/2677690#M618736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there any field seperator in the string .. if yes just us split command..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 14:44:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-a-string-to-a-table/m-p/2677690#M618736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T14:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a string to a table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-a-string-to-a-table/m-p/2677691#M618737</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;Assuming that the string contains the data with the right lengths and offsets then you can use the methods of class &amp;lt;b&amp;gt;CL_ABAP_CONTAINER_UTILITIES&amp;lt;/b&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FILL_CONTAINER_C	Fill Container of Type C or STRING with Content
READ_CONTAINER_C	Read Container of Type C or STRING&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 14:54:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-a-string-to-a-table/m-p/2677691#M618737</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-08-17T14:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a string to a table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-a-string-to-a-table/m-p/2677692#M618738</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;if you have a string you can do it with the split command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ie:&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;      itab TYPE TABLE OF string, &lt;/P&gt;&lt;P&gt;      text TYPE string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text = `What a drag it is getting old`. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT text AT space INTO: str1 str2 str3, &lt;/P&gt;&lt;P&gt;                          TABLE itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 14:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-a-string-to-a-table/m-p/2677692#M618738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T14:57:35Z</dc:date>
    </item>
  </channel>
</rss>

