cancel
Showing results for 
Search instead for 
Did you mean: 

Print dialogue window

Former Member
0 Kudos

Hi Friends,

How to avoid the print dialogue window in smartforms.

Kindly guide me.

TIA.

Regards,

Mark K

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You will also need to set the field DEVICE to PRINTER in structure CONTROL_PARAMETERS, as well as filling the print parameter in OUTPUT_OPTIONS.

DATA : device TYPE ssfctrlop,

ws_form_fname TYPE rs38l_fnam.

INITIALIZATION .

device-no_dialog = 'X'.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'Smartform Name'

IMPORTING

fm_name = ws_form_fname.

CALL FUNCTION ws_form_fname

EXPORTING

control_parameters = device

IMPORTING

job_output_info = ls_output_info

TABLES

i_final_ap = i_final_ap.

Regards,

Narendra.

Reward points if helpful!!

Former Member
0 Kudos

Hi

Thanks for your reply.

I am getting the following error. Kindly guide me to correct the same.

-


Field "LS_OUTPUT_INFO" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement.

-


Regards,

Former Member
0 Kudos

Hi,

Define a structure ls_output_info of type SSFCRESCL, and then pass it.

I believe even this is not required, just the structure device needs to be modified with the value 'X' ..along with the value for the device as printer (device-device = 'PRINTER').

Regards,

Narendra.

Answers (0)