Ansicht
Dokumentation

ABENOO_OBS_LITERALS_2 - OO OBS LITERALS 2

ABENOO_OBS_LITERALS_2 - OO OBS LITERALS 2

General Material Data   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

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.






General Material Data   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 1168 Date: 20240419 Time: 163605     sap01-206 ( 21 ms )