*
* Output Length longer than 255
*
* You can use the length specification in WRITE (or ULINE) to extend
the
* output length of an extra-wide list up to the value of LINE-SIZE.
If
* you want to output a whole field that is longer than 255 characters,
* you must use this, even if the field itself is defined as longer
than
* 255 characters.
*
* Too bad you can't print although you can view the list.
*
REPORT ZWRITE.
DATA: F1(500),
LN(20).
CONCATENATE SY-REPID '255' INTO LN.
NEW-PAGE PRINT ON
LINE-SIZE 1000
COPIES 2
LIST NAME LN.
F1+253(2) = 'F1'.
F1+255(2) = 'F1'.
WRITE: / F1 COLOR COL_NORMAL. " Output with length 255
WRITE: F1.
WRITE: /(500) F1 COLOR COL_NORMAL. " Output with length 500
*--- End of ABAP
| Beam Back -> ABAP Cafe for Abapers |