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: 

Suppres Print ALv Pop up while printing ALV

gautam_totekar
Active Participant
0 Kudos

I am using REUSE_ALV_BLOCK_LIST_DISPLAY to print ALV report directly.. But it shows a pritnt ALVPop Up in between

with printer name etc. How to suppress the same.

4 REPLIES 4

raymond_giuseppi
Active Contributor
0 Kudos

Try to fill the IS_PRINT parameter (there is a PRI_PARAMS structure in it  that you will fill with FM GET_PRINT_PARAMETERS)

Regards,

Raymond

Former Member
0 Kudos

Hi,

what are the parameters that you're passing into it?

you can try using something like this -

ls_print TYPE slis_print_alv.

ls_print-no_print_selinfos = 'X'. " Display no selection infos

ls_print-no_print_listinfos = 'X'. " Display no list infos

ls_print-reserve_lines = 2.

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'

EXPORTING

i_interface_check = ' '

is_print = ls_print

EXCEPTIONS

program_error = 1

OTHERS = 2.

gautam_totekar
Active Participant
0 Kudos

I am using thebelow code.

call function 'GET_PRINT_PARAMETERS'
    exporting
      no_dialog              = 'X'
    importing
      out_archive_parameters = ls_arc_params
      out_parameters         = ls_params
      valid                  = lv_valid
    exceptions
      others                 = 1.

  gt_print-reserve_lines = 2.
  gt_print-print = 'X'.

  clear  ls_params-primm.
  gt_print-print_ctrl-pri_params = ls_params.
  gt_print-print_ctrl-arc_params = ls_arc_params.
* gt_print-no_change_print_params = 'X'.
  gt_print-no_print_selinfos = 'X'.
  gt_print-no_print_listinfos = 'X'.

  call function 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    exporting
      is_print = gt_print.

Former Member
0 Kudos

Also refer to the below link

http://scn.sap.com/thread/1495169