Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV report - control output format

Former Member
0 Likes
678

Hello all,

I have an ALV report and when we try to print the output from List -> Print , we would see Format under properties. I would like to control this format from inside my program. How can we do this? I tried LINE-COUNT and LINE-SIZE additions already with the REPORT statement but did not work. Please share your thoughts. Thanks.

Hello all,

I have an ALV report and when we try to print the output from List -> Print , we would see Format under properties. I would like to control this format from inside my program. How can we do this? I tried LINE-COUNT and LINE-SIZE additions already with the REPORT statement but did not work. Please share your thoughts. Thanks.

4 REPLIES 4
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
630

if you are using reuse alv grid then you can set it in parameter is_print

DATA:LS PRINT TYPE SLISPRINT_ALV.

LS_PRINT-PRINT_CTRL-PRI_PARAMS-PAART = 'X-----X'." page format here

Read only

Former Member
0 Likes
630

Hello,

Thanks for the info. One more thing before I close the ticket. I have a report output with 7 pages. Second page has 20 columns in it. When I use format X_65_255, all 20 columns on the page are not being displayed. When I used X_65_512, the remaining columns overflowed to next page but all other pages (pages 1, 3, 4, 5, 6 and 7) have a blank page after them. Couple of quick questions.

1. How can we get rid of the blank pages?

2. Or is it possible to fit all columns from 2 page into just one page, may be reducing the font?

Please help. Thanks.

Read only

0 Likes
630

Hi,

im not aware of this and havent faced such situation, you can check if there is any print properties or settigs to chnage the font size.

You can also go for a landscape mode, so all columns will be displayed.

Read only

Former Member
0 Likes
630

Solved on own.