cancel
Showing results for 
Search instead for 
Did you mean: 

ALV - Pprint-GET-PRINT-PRAMETERS

Former Member
0 Kudos

Hi all,

We have made SAP Query (The majority and 'was written in ABAP code), a report using ALV grid (function 'REUSE_ALV_GRID_DISPLAY'). There is a 'Print' button on the grid. If the user presses this button the system will send a screen where the user can choose print parameters (name of printer, printing, direct or not, etc..) If the user presses 'Continue' a spool request is then created.

But the users do not want to see the screen parameters.

After pressing the button 'Print' on the grid, the spool request should be immediately created using the parameters seted in the ABAP program, the same program that creates ALV.

Any idea how to do this?

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi when the smartform called , after the SSF_FUNCTION_MODULE_NAME function module

and before the smartform function module call pass parameters to supress the dialog box

that is the screen

eg: st_output_options-tdprinter = v_e_devtype.

st_control_parameters-no_dialog = 'X'.

st_control_parameters-getotf = 'X'.

set these parameters and pass to the smartform function module name

CALL FUNCTION v_fm_name

EXPORTING

control_parameters = st_control_parameters

output_options = st_output_options

frm_date = so_budat-low

to_date = so_budat-high

IMPORTING

document_output_info = st_document_output_info

job_output_info = st_job_output_info

job_output_options = st_job_output_options

TABLES

ta_srvtax = t_srvtax[]

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Former Member
0 Kudos

I would not use the SmartForm. I would like to send a spool ALV, created with the function 'REUSE_ALV_GRID_DISPLAY'.

Answers (0)