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: 

Supressing popup for background printer properties

Former Member
0 Kudos

Hi all,

I have created a smart form and assigned printer to it for printing in code. When i execute the job in background using F9 , I get a popup for Background Printer Properties, I want to suppress this popup since printer is aready assigned. Can anyone suggest what should be done.

Thanks,

Komal

6 REPLIES 6

Former Member
0 Kudos

Hi,

try this..

*--- for Output job Info

l_wa_job_info type ssfcrescl,

l_wa_com type ssfcompop.

l_wa_com-tdprinter = l_c_printer. "type rspoptype

l_wa_com-tdnoprev = 'X'

*---Transfer Data to the Form

call function l_v_fm_name

exporting

control_parameters = l_wa_param "type ssfctrlop,

output_options = l_wa_com "type ssfcompop. and

user_settings = ' '

v_lm_name1 = v_lm_name

v_lm_email1 = v_lm_email

v_lm_phn1 = v_lm_phn

importing

job_output_info = l_wa_job_info "type ssfcrescl,

tables

it_smartform = it_smart_form

exceptions

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

others = 5.

Regards,

Mona

0 Kudos

have tried this. It doesnt work .

0 Kudos

In the SmartForm Control structre give NO_DIALOG parameters as 'X'.

CONTROL TYPE SSFCTRLOP, "Smart Forms: Control structure

CONTROL-NO_DIALOG = 'X'.

Former Member
0 Kudos

Hi,

Please add these things also.

*---Control Structure for Smartforms

l_wa_param type ssfctrlop,

c_check type char1 value 'X'

l_wa_param-no_dialog = c_check.

l_wa_param-getotf = c_check.

l_wa_com-tdprinter = l_c_printer. "l_c_printer type rspoptype value 'PDF1',

l_wa_com-tdnoprev = c_check.

0 Kudos

This also doesnt help. It doesnt suppress the popup for background printer properties. When i press F9

Edited by: Komal Prakashlal Lakhwani on Dec 11, 2008 11:29 AM

0 Kudos

Hi,

This pop up can not be suppressed...but if you are scheduling a background job for this program then it will not come please check it.

Regards.

Mona