cancel
Showing results for 
Search instead for 
Did you mean: 

Setting the Line size at runtime

Former Member
0 Kudos

Hi All,

I am printing a classical report. Usually we set the

Page width statically ie by using Line-Size.

But I need a way to change this value at runtime.

Is there a way out to this problem?

Thanks & Regards,

Abhijeet.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Abhijeet,

You cannot change the width of individual pages within a list level. You can only change the width of all pages of a new list level. To do so, use the NEW-PAGE statement:

Syntax

NEW-PAGE LINE-SIZE <width>.

All list levels starting from the new page have a width of <width> instead of the one specified in the REPORT statement. If you set <width> to 0, the system uses the width of the standard list .

If you set <width> to SY-SCOLS, you can adapt the width of the new list level to the window width, even if the window is smaller than the standard window. The SY-SCOLS system field contains the number of characters of a line of the current window.

Within a list level, that is, if the next page is not the beginning of a new list level, the system ignores the LINE-SIZE option.

Regards,

vidya.

former_member181962
Active Contributor
0 Kudos

Use the command,

new-page line size <line size>.

Regards,

Ravi

Former Member
0 Kudos

hi abhizeet ,

can you describe your scenario ?

Regards,

Kunal.