How can I add a new line on a string in ABAP on Eclipse? This is my code below and I just want to put a newline after the first line so my code will not be redundant:
OUT->write( |Firstname: { gc_fname }| ).
OUT->write( |Middlename: { gc_mname }| ).
|...|
is called String Template in ABAP. The documentation for "control characters" mention that newline is |\n|
(possibly |\r\n|
).
OUT->write( |Firstname: { gc_fname }\n|
&& |Middlename: { gc_mname }| ).
Output: