cancel
Showing results for 
Search instead for 
Did you mean: 

Problem when giving print to smartform

Former Member
0 Kudos

Hi,

I had assigned smartform in driver program.when i execute program, after assigning o/p device(LP01), when i click on print, it is asking to select spool request check box, then it is printing layout. But i dont want to select it in foreground. After this if i want to cancel print, it is asking again output device.

Provide any solution....................

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi friend,

You can set your output device type at the driver program itself. So it will not ask for an output type also you can hide the dialog box popup which shows the options for print and print previw, by setting few printer settings in program.

Here is a sample code to get a default device type and set it.

CALL FUNCTION 'SSF_GET_DEVICE_TYPE'

EXPORTING

i_language = v_language

i_application = 'SAPDEFAULT'

IMPORTING

e_devtype = v_e_devtype

.

x_output_options-tdprinter = v_e_devtype.

x_control_parameters-no_dialog = 'X'.

Here no_dialog = 'X' so the pop up window will not be displayed.

Also possible check whether the printer settings are fine.

I think this will solve your issue. Please revert back to me if you face any issue. I will help you.

Thanks,

Sri Hari

Answers (1)

Answers (1)

Former Member
0 Kudos

why Dont you try ZLOCAL if it is not there tell Basis Team to create