<?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: Very large string to internal text table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-large-string-to-internal-text-table/m-p/4220345#M1008382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution is right but is very slow process and if the file grows, the cost increases exponentially.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jul 2008 09:54:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-14T09:54:02Z</dc:date>
    <item>
      <title>Very large string to internal text table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-large-string-to-internal-text-table/m-p/4220339#M1008376</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;I have a string that contains all the information read from a flat file and I want to put all that information in an internal table where each row is just 1024 char in order to contain a row of the original flat file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the string I can recognize the special character "carriage return" in order to separate identify each row but now my problem is that I don't know can I parse the string text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 06:55:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/very-large-string-to-internal-text-table/m-p/4220339#M1008376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T06:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Very large string to internal text table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-large-string-to-internal-text-table/m-p/4220340#M1008377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marshal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think by declaring a internal table of type string will help you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 07:05:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/very-large-string-to-internal-text-table/m-p/4220340#M1008377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T07:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Very large string to internal text table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-large-string-to-internal-text-table/m-p/4220341#M1008378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi marshal ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do like this first read the internal table and replace the all occurencse of carriage return with '#'  and split the string&lt;/P&gt;&lt;P&gt;at '#'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constant : c_enter type c ,&lt;/P&gt;&lt;P&gt;              c_hash  type c value '#' ..&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  BEGIN OF wa_text ,&lt;/P&gt;&lt;P&gt;          text(1024) TYPE c,&lt;/P&gt;&lt;P&gt;  END OF wa_text.&lt;/P&gt;&lt;P&gt;  i_text LIKE STANDARD TABLE OF wa_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF c_enter&lt;/P&gt;&lt;P&gt;            IN wa_text WITH c_hash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT wa_text AT c_hash INTO: str1 str2 str3, &lt;/P&gt;&lt;P&gt;                          TABLE i_text. &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;sandeep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sandeep patel on Jul 14, 2008 12:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 07:09:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/very-large-string-to-internal-text-table/m-p/4220341#M1008378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T07:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Very large string to internal text table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-large-string-to-internal-text-table/m-p/4220342#M1008379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I need the information in a type char internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I don't know how to parse the string to get something like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT string INTO aux_string FOR EACH new_line.

 APPEND aux_string TO char_internal_table.

ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously you can't use loop at string... but I need some way to do something similar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Marshal Oliveras on Jul 14, 2008 9:12 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 07:11:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/very-large-string-to-internal-text-table/m-p/4220342#M1008379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T07:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Very large string to internal text table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-large-string-to-internal-text-table/m-p/4220343#M1008380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marshal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;continuing the program of sandeep.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Constant:
  c_enter type c,
  c_hash type c value '#' .

Data:
  BEGIN OF wa_text ,
    text(1024) TYPE c,
  END OF wa_text.
  
  i_text LIKE STANDARD TABLE OF wa_text.

REPLACE ALL OCCURRENCES OF c_enter
IN wa_text WITH c_hash.

DO.
    SPLIT wa_text AT c_hash INTO: str1 str2.
    IF str2 NE SPACE.
      APPEND str1 To i_text.
      wa_text = str2.
      CLEAR str2.
    ELSE.
      EXIT.
  ENDIF.
ENDDO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE &lt;STRONG&gt;c_enter&lt;/STRONG&gt; contains the value of Carriage Return, which I also don't know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sunil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 07:33:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/very-large-string-to-internal-text-table/m-p/4220343#M1008380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T07:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Very large string to internal text table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-large-string-to-internal-text-table/m-p/4220344#M1008381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks  Sunil Saini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should work!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 07:36:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/very-large-string-to-internal-text-table/m-p/4220344#M1008381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T07:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Very large string to internal text table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-large-string-to-internal-text-table/m-p/4220345#M1008382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution is right but is very slow process and if the file grows, the cost increases exponentially.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 09:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/very-large-string-to-internal-text-table/m-p/4220345#M1008382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T09:54:02Z</dc:date>
    </item>
  </channel>
</rss>

