Application Development 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: 

Printing in ALV Grid

Former Member
0 Kudos

Hi experts,

When I'm printing ALV table, fonts are that small, that it is difficult to read the text. Any ideas how can control this?

Thanks in advance,

Michal

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hI,

you can do this if you have the class CL_DD_DOCUMENT

for reference check the example in SE38

DD_STYLE_TABLE

Or

Use the IT_SORT paramter of the ALV function module..

define an internal table of type it_sort in your program..

for this pass the field name 'PERNR' AND append it...

and give this table to the FM.....

data:

t_sort type SLIS_T_SORTINFO_ALV,

w_sort type slis_sortinfo_alv.

w_sort-fieldname = 'PERNR'.

w_sort-up = 'X'.

append w_sort to t_sort.

w_sort

You will get the required output...

********************

you may increase font size using CL_DD_DOCUMENT only for grid header and bottom area, it will not have any effect on the cells.

Inside the cells, the font and it's size is derived from SAPGUI settings (and monitor size).

In the cells you can set standard character atrributes color, intensied and inverse.

***********************

Regards

vasu

3 REPLIES 3

Former Member
0 Kudos

hI,

you can do this if you have the class CL_DD_DOCUMENT

for reference check the example in SE38

DD_STYLE_TABLE

Or

Use the IT_SORT paramter of the ALV function module..

define an internal table of type it_sort in your program..

for this pass the field name 'PERNR' AND append it...

and give this table to the FM.....

data:

t_sort type SLIS_T_SORTINFO_ALV,

w_sort type slis_sortinfo_alv.

w_sort-fieldname = 'PERNR'.

w_sort-up = 'X'.

append w_sort to t_sort.

w_sort

You will get the required output...

********************

you may increase font size using CL_DD_DOCUMENT only for grid header and bottom area, it will not have any effect on the cells.

Inside the cells, the font and it's size is derived from SAPGUI settings (and monitor size).

In the cells you can set standard character atrributes color, intensied and inverse.

***********************

Regards

vasu

Former Member
0 Kudos

Former Member
0 Kudos

hi

good

you can do this if you have the class CL_DD_DOCUMENT

for reference check the example in SE38

DD_STYLE_TABLE

Or

Use the IT_SORT paramter of the ALV function module..

define an internal table of type it_sort in your program..

for this pass the field name 'PERNR' AND append it...

and give this table to the FM.....

data:

t_sort type SLIS_T_SORTINFO_ALV,

w_sort type slis_sortinfo_alv.

w_sort-fieldname = 'PERNR'.

w_sort-up = 'X'.

append w_sort to t_sort.

w_sort

You will get the required output...

reward point if helpful.

thanks

mrutyun6