Dynamic line-size

his tip has been copied from SearchSap.com
Tip submitted by: Ben Meijs

Sometimes you want to define a dynamic line-size in your report because you do not know beforehand the number of columns to WRITE.

With NEW-PAGE LINE-SIZE TP_LINESIZE you can do this. But then there is always the problem that you want to be able to use the very last position of your list, f.e. to write a vertical line or a page number.


* This writes a vertical line

WRITE AT sy-linsz sy-vline.

* If you want your FORMAT COLOR to last to end of line use this:

* This writes page-number to utmost right
data: lo_offset type i.
lo_offset = sy-linsz - 5.
WRITE AT lo_offset(5) sy-pagno


Converted from CHM to HTML with chm2web Standard 2.7 (unicode)