<?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 Concatenate large text into string gives syntax error in compiler in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-large-text-into-string-gives-syntax-error-in-compiler/m-p/6604331#M1437785</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 am trying to concatenate a large amount of HTML code into a string in order to build a Web page in a HTTP handler. The HTML code will be pushed to the browser with the statement below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 

data: lv_html type string.
CALL METHOD server-&amp;gt;response-&amp;gt;set_cdata( data = lv_html ).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The HTML text is 1870 lines long and 250 columns wide. When I try to concatenate this text into a string, I get the syntax error in the compiler "The last statement is not complete (period missing)" with reference to the concatenate statement. If I try to concatenate only 140 of the lines, I do no get a syntax error on syntax check. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a limit to the amount of text that can be concatenated into a string? If so, is there a better way for me to get the HTML code into the string? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Frank Stødle on Feb 5, 2010 9:59 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Feb 2010 08:54:58 GMT</pubDate>
    <dc:creator>frank_stdle</dc:creator>
    <dc:date>2010-02-05T08:54:58Z</dc:date>
    <item>
      <title>Concatenate large text into string gives syntax error in compiler</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-large-text-into-string-gives-syntax-error-in-compiler/m-p/6604331#M1437785</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 am trying to concatenate a large amount of HTML code into a string in order to build a Web page in a HTTP handler. The HTML code will be pushed to the browser with the statement below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 

data: lv_html type string.
CALL METHOD server-&amp;gt;response-&amp;gt;set_cdata( data = lv_html ).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The HTML text is 1870 lines long and 250 columns wide. When I try to concatenate this text into a string, I get the syntax error in the compiler "The last statement is not complete (period missing)" with reference to the concatenate statement. If I try to concatenate only 140 of the lines, I do no get a syntax error on syntax check. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a limit to the amount of text that can be concatenated into a string? If so, is there a better way for me to get the HTML code into the string? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Frank Stødle on Feb 5, 2010 9:59 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 08:54:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-large-text-into-string-gives-syntax-error-in-compiler/m-p/6604331#M1437785</guid>
      <dc:creator>frank_stdle</dc:creator>
      <dc:date>2010-02-05T08:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate large text into string gives syntax error in compiler</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-large-text-into-string-gives-syntax-error-in-compiler/m-p/6604332#M1437786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;                   STring does not have a limit on the number of characters. I haved used it to store a HTML code even more than what you have mentioned.In my case I had this requirement in BSP, so I assigned the value to the string from the client side( Javascript) using Forms. That may not be relevant in your case, but what I am trying to highlight here is that there is no limit on teh numebr of characters a string can hold.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 09:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-large-text-into-string-gives-syntax-error-in-compiler/m-p/6604332#M1437786</guid>
      <dc:creator>former_member206377</dc:creator>
      <dc:date>2010-02-05T09:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate large text into string gives syntax error in compiler</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-large-text-into-string-gives-syntax-error-in-compiler/m-p/6604333#M1437787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, but is there then some limit on the concatenate statement? I will try to append all my text to a table of strings instead and then convert the table to a plain string using CL_IAC_HELPER_CONVERSIONS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 09:12:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-large-text-into-string-gives-syntax-error-in-compiler/m-p/6604333#M1437787</guid>
      <dc:creator>frank_stdle</dc:creator>
      <dc:date>2010-02-05T09:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate large text into string gives syntax error in compiler</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-large-text-into-string-gives-syntax-error-in-compiler/m-p/6604334#M1437788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I appended all the text to a table of strings and converted the table to a string using CL_IAC_HELPER_CONVERSIONS, problem solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 10:05:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-large-text-into-string-gives-syntax-error-in-compiler/m-p/6604334#M1437788</guid>
      <dc:creator>frank_stdle</dc:creator>
      <dc:date>2010-02-05T10:05:58Z</dc:date>
    </item>
  </channel>
</rss>

