SAP OO OBS LITERALS 1

Get Example source ABAP code based on a different SAP table
  


ABAP Code Snippet
ARTICLE

Cannot Process a Literal over Several Lines
In ABAP Objects and, as of release 7.0, outside of classes, a literal can no longer occupy multiple program lines.

In ABAP Objects, the following statement causes an error message:

<(>WRITE 'Start...<)>
<(> ...end'.<)>
Correct syntax:

WRITE 'Start... '
' ...end'.
Cause:

The number of spaces inserted depends on the length of the line in the Editor. The line length of the Editor is not of fixed length, since it may increase in a future release. Literals that are longer than one line in the Editor can be made up from several literals put together, if you use the ampersand ( ) sign.