sitemap
SapMaterial.com
Dynamic line-size

This 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.



Code


* 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.   
All of the  product names here are trademarks of their respective companies.  The site
www.allsaplinks.com no way affiliated with SAP AG. We have made every effort for the content
integrity.  Information used on this site is at your own risk.
ABAP TECHNICAL

SAP Introduction

sap abap faq

sap Tables

SAP Transaction codes

Internal tables

data dictionary

performance tuning

transports & Requests

Sap scripts

Smartforms

lsmw

reports

sap Workflow

module pool/ dialog
programming

table control

user exits

sap memory

abap memory

alv reports

ABAP ADVANCED

IDOC

ALE

BAPI

BADI

RFC


FUNCTIONAL SIDE

Materials Management

FICO

Human Resources

BIW / BW / SEM


Free Documentation
Abap Material

Ale Material

BAPI Material

BC Material

IDOC Material

R/3 Database Management

SAP material

RFC

Transport

Sales & Distribution Material

Basic Data and Function
Material

Basis (BC) Material

Billing Material

CA Material

CATT : Computer Aided Test
Tool

Capacity Evaluation and
leveling Material

Capacity Planning Material

Cross Application Material

Countries

Customer Service Material

Enterpise  Material

Financial / Controlling (FICO)

Internet Time Sheet

Inspection Material

HR Material

Material Management
Material

Payments Material

Payroll Material

Pension Fund

Production Planning and
Control

Plant Maintenance

Quality Management Material

Real Estate Material

SAP material

Wage Types