SAP LINE WIDTH - Guide
Get Example source ABAP code based on a different SAP table
Line Width
ABAP_BACKGROUND
The maximum line width of an ABAP program is restricted to 255 characters.
ABAP_RULE
Limit the width of a line in the source code to a reasonable size. As a rule of thumb, you should be able to print a program on common paper formats without truncation or line breaks.
ABAP_DETAILS
Whereas the old restriction to 72 characters was too strict, the full utilization of the 255 characters that are now available would not make a program any more legible. Although very large monitors are now available, it can still be necessary, for example, for code inspections or reviews, to print a program or program section. It is therefore advisable to break long
Note
The example programs in the documentation are restricted in width in a natural way, which makes them legible at the same time. Unfortunately this sometimes means using shorter
Example ABAP Coding
In the first method of the program
The second method uses a literal whose content is identical to the one of the previous method; here, however, it is composed of multiple shorter literals using the literal operator
ABAP_EXAMPLE_END