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

Print a NEw Report

Former Member
0 Likes
419

Hi

My requirement is when i execute a report it need to fire a printout, i,e indtead of diplaying the report out put on screen i need it to print it.

Help me in this.

Hi

My requirement is when i execute a report it need to fire a printout, i,e indtead of diplaying the report out put on screen i need it to print it.

Help me in this.

2 REPLIES 2
Read only

amit_khare
Active Contributor
0 Likes
397

Hi,

Try this -

call function 'GET_PRINT_PARAMETERS'

exporting

destination = loc_dest

copies = wf_copies

list_name = wf_listname

list_text = wf_listtext

immediately = 'X'

release = ' '

new_list_id = 'X'

expiration = wf_days

line_size = 200

line_count = 65

layout = 'X_65_200'

sap_cover_page = 'X'

receiver = 'SAP*'

department = ''

no_dialog = 'X'

importing

out_parameters = wf_params

valid = wf_valid.

if wf_valid <> space.

new-page print on parameters wf_params no dialog.

perform write_summary .

new-page print off.

endif .

or use 'PRINT_REPORT'

Regards,

Amit

Reward all helpful answers.

Read only

santhosh_patil
Contributor
0 Likes
397

Hi rao,

Using the ALV u can do it.

In the REUSE_ALV_LIST_DISPLAY there is a option for PRINT only

for this u need to set the parameter print to 'X'.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

i_callback_program = g_f_repid

  • i_callback_pf_status_set = 'PF_STATUS_SET1'

  • i_callback_user_command = 'USER_COMMAND1'

  • I_STRUCTURE_NAME =

is_layout = g_r_layout

it_fieldcat = g_t_fieldcat[]

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • IT_SORT =

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

  • i_save = g_f_save

is_variant = g_r_variant

it_events = g_t_events[]

  • IT_EVENT_EXIT =

<b> IS_PRINT = 'X'</b>*

IS_REPREP_ID =

<b>PRINT</b>

value set: SPACE, 'X'

'X' = the list is to be printed and not displayed on the screen.

-


santhosh