cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable and disable print dialog in smartform

Former Member
0 Kudos

My smartform gets called in the program several times to print many documents. It gives a popup for the printer every time. I would like for the dialog box to show first time to ask for the printer and rest of the documents should use that info to print and should not give a popup. Can anyone help me on this issue please?

thanks

Krishna

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

The interface of function module of the smartform has the parameter CONTROL_PARAMETERS, where you can see the following fields:

NO_OPEN

NO_CLOSE

NO_DIALOG

NO_DIALOG: The dialog popup is not open, but every time the smartform is called a new spool is created

If you want to create only one spool:

- The first time the smartform is called NO_CLOSE = 'X' (so the spool is not closed) and NO_OPEN = space

- The next call NO_CLOSE = 'X' and NO_OPEN = 'X' (so any new spool will be created)

- The last call NO_CLOSE = space and NO_OPEN = 'X

The dialog poppup is called only if NO_OPEN is space, so in this case you don't need to set it (i.e NO_DIALOG can be always space)

Max

Answers (1)

Answers (1)

ananthula_sumanth
Participant
0 Kudos

Hi,

In the form interface, you can find CONTROL_PARAMETERS for NO_DIALOG. Pass 'X' to the field to suppress Printer Dialog.