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 - Print control

abapdeveloper20
Contributor
0 Likes
773

Hi,

I'm using CL_GUI_ALV_GRID-SET_TABLE_FOR_FIRST_DISPLAY to display the list. I have 2 questions

1. Is it possible to provide the user an option to enter the number of rows that needs to be printed per page? Is there any standard object available to do this?

2. There is an option to restrict the number of lines per page when the user clicks on the standard print button available on the ALV toolbar. (Print -> Properties -> General Properties -> Format -> Rows). Is it possible to set this value programmatically?

Thanks,

Raj.

Hi,

I'm using CL_GUI_ALV_GRID-SET_TABLE_FOR_FIRST_DISPLAY to display the list. I have 2 questions

1. Is it possible to provide the user an option to enter the number of rows that needs to be printed per page? Is there any standard object available to do this?

2. There is an option to restrict the number of lines per page when the user clicks on the standard print button available on the ALV toolbar. (Print -> Properties -> General Properties -> Format -> Rows). Is it possible to set this value programmatically?

Thanks,

Raj.

2 REPLIES 2
Read only

Former Member
0 Likes
666

Hi,

As such alv display has standard buttons for changing the layout on the tool bar.

You can programatically change this , you can set the layout, there is one structure in layout.

You can check out "slis_layout_alv"

Also check out for printing settings :

"slis_print_alv0" and "slis_print_alv1" there are fields in this that can help in your scenario.

Its up to you how you use them.

Regards,

Salil.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
666

Hello Raj,

In the method SET_TABLE_FOR_FIRST_DISPLAY you have a param IS_PRINT (structure LVC_S_PRNT).

LVC_S_PRNT is a deep structure containing another structure ALV_S_PCTL (deep structure with PRI_PARAMS & ARC_PARAMS).

You can use the PRI_PARAMS to fit your requirement.

BR,

Suhas