2016 Apr 21 8:29 AM
|
Message was edited by: Matthew Billingham - removed SAP logo
2016 Apr 21 9:17 AM
Hi,
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 got "Literals that take up more than one line not permitted."
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 (&). Like below:
APPEND '<script type="text/javascript">$(".col-sm-3")' &
'.hover(function(e){title = $(this).attr("title");$("#desc").' &
'html("<span>" + title + "</span>");$(this).removeAttr("title");},' &
'function(e){$("span", "#desc").html("DESCRIPTION");' TO lt_html.
Splitting the string up can also help you pinpoint where the error is, if there is one.
Hope this helps.
2016 Apr 21 9:26 AM
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
2016 Apr 21 11:30 AM
Then you should use concatenate of the various pieces into a variable and only after do your append.
2016 Apr 21 11:37 AM
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.
2016 Apr 22 12:46 PM
Hi,
SAP 4.6C not supported more than 255 character long. so you can split the string within 254 characters with using & symbol.
Thanks,
Syed Abbas.
2016 Apr 22 7:38 PM
Sorry to say that & 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.
So, & does not permit more than 255 characters.
The only way to do it in 4.6C is to use the CONCATENATE statement.