<?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: ABAP4 syntax errors in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap4-syntax-errors/m-p/11695084#M1946575</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you should use concatenate of the various pieces into a variable and only after do your append.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Apr 2016 10:30:59 GMT</pubDate>
    <dc:creator>Phillip_Morgan</dc:creator>
    <dc:date>2016-04-21T10:30:59Z</dc:date>
    <item>
      <title>ABAP4 syntax errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap4-syntax-errors/m-p/11695081#M1946572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="font-family: arial, sans-serif;"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;P&gt;hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a some crazy errors in my program in sap 4.6C version .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm&amp;nbsp; trying to&amp;nbsp; adapt a code from a different program ( a more recent version ) to the old version 4.6C im working at it right now .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i have lot of synax errors that i can't solve some of them,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if anyone have ideas or can help me ,please dont hesitate to message me or answer me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: im new in SAP /ABAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;the error is :&lt;/SPAN&gt; The text literal "'&amp;lt;script type=" is longer than 255 characters. Please check whether it ends with a quotation mark.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;the code is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp; Appending the description div and the script to make it dynamic&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND '&amp;lt;script type="text/javascript"&amp;gt;$(".col-sm-3")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.hover(function(e){title = $(this).attr("title");$("#desc").&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;html("&amp;lt;span&amp;gt;" + title + "&amp;lt;/span&amp;gt;");$(this).removeAttr("title");},&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;function(e){$("span", "#desc").html("DESCRIPTION");' TO lt_html.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;APPEND '$(this).attr("title",title);});&amp;lt;/script&amp;gt;&amp;lt;div id="desc"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;class="row" style="color:black;padding:5px;margin-left:74px;border: 1px&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dashed black;margin-top:440px;width:78%;background-color:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#dcdcdc;font-size:18px;"&amp;gt;DESCRIPTION&amp;lt;/div&amp;gt;' TO lt_html.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND '&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;' TO lt_html.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND '&amp;lt;/body&amp;gt;' TO lt_html.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND '&amp;lt;/html&amp;gt;' TO lt_html.&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Matthew Billingham - removed SAP logo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 07:29:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap4-syntax-errors/m-p/11695081#M1946572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-21T07:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP4 syntax errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap4-syntax-errors/m-p/11695082#M1946573</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;The first thing: if these strings take up more than one line, you should know that in ABAP it is not permitted. I copied your code and&amp;nbsp; got "Literals that take up more than one line not permitted."&lt;/P&gt;&lt;P&gt;You may want to split them and concatenate or, if you are in a more recent SAP release, you can concatenate using the concatenate operator (&amp;amp;). Like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; APPEND '&amp;lt;script type="text/javascript"&amp;gt;$(".col-sm-3")' &amp;amp;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt; '.hover(function(e){title = $(this).attr("title");$("#desc").' &amp;amp;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt; 'html("&amp;lt;span&amp;gt;" + title + "&amp;lt;/span&amp;gt;");$(this).removeAttr("title");},' &amp;amp;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt; 'function(e){$("span", "#desc").html("DESCRIPTION");' TO lt_html.&lt;/STRONG&gt;&lt;/P&gt;


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Splitting the string up can also help you pinpoint where the error is, if there is one.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope this helps.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 08:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap4-syntax-errors/m-p/11695082#M1946573</guid>
      <dc:creator>Phillip_Morgan</dc:creator>
      <dc:date>2016-04-21T08:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP4 syntax errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap4-syntax-errors/m-p/11695083#M1946574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the code is from a recent sap release,but i should adapt it to an old version sap 4.6C,that why it dont work in old version but it work very good in sap 6.0 release&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 08:26:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap4-syntax-errors/m-p/11695083#M1946574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-21T08:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP4 syntax errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap4-syntax-errors/m-p/11695084#M1946575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you should use concatenate of the various pieces into a variable and only after do your append.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 10:30:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap4-syntax-errors/m-p/11695084#M1946575</guid>
      <dc:creator>Phillip_Morgan</dc:creator>
      <dc:date>2016-04-21T10:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP4 syntax errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap4-syntax-errors/m-p/11695085#M1946576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error message already says that your string is to long. So, I guess you have to split up your big strings into several strings, which do not overflow the limit of 255 chars.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 10:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap4-syntax-errors/m-p/11695085#M1946576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-21T10:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP4 syntax errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap4-syntax-errors/m-p/11695086#M1946577</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;SAP 4.6C not supported more than 255 character long. so you can split the string within 254 characters with using &amp;amp; symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Syed Abbas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 11:46:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap4-syntax-errors/m-p/11695086#M1946577</guid>
      <dc:creator>former_member194739</dc:creator>
      <dc:date>2016-04-22T11:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP4 syntax errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap4-syntax-errors/m-p/11695087#M1946578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to say that &amp;amp; is not a concatenation operator as people could imagine. It was just a way to write a literal of up to 255 characters in the ABAP editor at the time we could only enter 72 characters maximum in a line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, &amp;amp; does not permit more than 255 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way to do it in 4.6C is to use the CONCATENATE statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 18:38:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap4-syntax-errors/m-p/11695087#M1946578</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-04-22T18:38:00Z</dc:date>
    </item>
  </channel>
</rss>

