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: 

ALV Grid not displying properly when spool is generated by print button

Former Member
0 Kudos

Hi All,

When print button is used to genarate spool of the ALV Grid, then in the spool the end of page content is getting over lapped on the main lines. Please let me know how to display end of page content without geting overlapped on the lines.

Below is the code which I have written.

<cut>

Edit: Please see next post.

Thanks in Advance!

Regards,

Preethi G

Edited by: Julius Bussche on Feb 14, 2010 9:15 AM

2 REPLIES 2

faisal_altaf2
Active Contributor
0 Kudos

Hi, Preethi

This will help you => <= Check limit of 2500 characters per post

Former Member
0 Kudos

Hi All,

Sorry. Please ignore my first post. When print button is used to generate spool then in the spool file the end of page content is getting overlapped on the main lines. Please let me know to solve this.

Thanks in Advance!

Below is the code written

ALV Grid display

alv_layout-colwidth_optimize = 'X'.
  alv_layout-zebra             = 'X'.
  wa_print_info-no_print_listinfos  = 'X'.
 CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program       = sy-repid
        i_grid_title             = ''
        i_callback_pf_status_set = 'FRM_SET_STATUS'
        i_callback_user_command  = 'FRM_USER_COMMAND'
        is_layout                = alv_layout
        it_events                = i_events
        it_fieldcat              = alv_fieldcat
        is_print                 = wa_print_info
      TABLES
        t_outtab                 = it_payroll
      EXCEPTIONS
        program_error            = 1
        OTHERS                   = 2.

End of Page and End of list

IF sy-pagno = 0.
    s_pageno = 1.
  ELSE.
    s_pageno = sy-pagno.
  ENDIF.
  CLEAR: i_list_comments[].
  SKIP.
  SKIP.
  CONCATENATE 'u85AAu8D44u4E13u5458' '________' 'HRSu7ECFu7406' '________' 'u4EBAu529Bu8D44u6E90u603Bu76D1'
 '________'  'u7EE9u6548u8D22u52A1u603Bu76D1' '________' 'u603Bu7ECFu7406' '________'''INTO s_out
  SEPARATED BY space.
  NEW-LINE.
  WRITE AT (sy-linsz) s_out CENTERED.
  SKIP.
  CONCATENATE  s_pageno '-' v_pagsum  'u9875' INTO
   w_list_comments-info SEPARATED BY space.
  NEW-LINE.
  WRITE  AT (sy-linsz) w_list_comments-info CENTERED.

Edited by: Julius Bussche on Feb 14, 2010 9:16 AM

Tried to fix formatting a bit.