Dynamic positioning to right of list

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

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:
WRITE AT SY-LINSZ ''.

* This writes page-number to utmost right
data: lo_offset type i.
lo_offset = sy-linsz - 5.
WRITE AT lo_offset(5) sy-pagno 
NO-SIGN.   
		
		
This was last published in October 2001

Dig Deeper on SAP ABAP

PRO+

Content

Find more PRO+ content and other member only offers, here.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close