Skip to Content
avatar image
Former Member

Printing in ALV Grid

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 08, 2007 at 08:33 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 08, 2007 at 08:37 AM

    Hi,

    Check this link,

    https://forums.sdn.sap.com/click.jspa?searchID=5757945&messageID=4217836

    Thanks,

    Reward If Helpful.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 08, 2007 at 09:13 AM

    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

    Add comment
    10|10000 characters needed characters exceeded