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: 

Disabling printer selection screen

Former Member
0 Kudos
224

Hi All,

I have developed a smartform which will be printed throug a normal report.

When i am executing the report, i am getting the pop up screen for selecting the output device, etc...i want to disable this screen, so that after executing the report, i can directly see my output with out this printer selection pop up screen.

Thanks,

Raju

5 REPLIES 5

Former Member
0 Kudos
68

Raj,

When you call your Smartform Function Module, there is an Export Parameter OUTPUT_OPTIONS. This parameter is a structure of type SSFCOMPOP where you can pass the details which we pass in the Pop up Screen.

Once this parameter is passed you will directly get the Output.

Former Member
0 Kudos
68

Hi Raj,

Yes, you can do this declare the structure of type SSFCOMPOP and pass in to the smart form, firstly you look in this structure in se11 you will get an idea.

Best Regards,

Varun.

Former Member
0 Kudos
68

Hi Raj,

here is a piece of code.

DATA:

W_INPUT TYPE SSFCOMPIN,

W_CONTROL TYPE SSFCTRLOP.

W_INPUT-DIALOG = 'X'.

CALL FUNCTION 'SSFCOMP_OPEN'

EXPORTING

INPUT = W_INPUT

EXCEPTIONS

ERROR = 1.

LOOP AT IT_FINAL INTO WA_FINAL.

W_CONTROL-NO_OPEN = 'X'.

W_CONTROL-NO_CLOSE = 'X'.

CALL FUNCTION FNAME

EXPORTING

CONTROL_PARAMETERS = W_CONTROL.

ENDLOOP.

CALL FUNCTION 'SSFCOMP_CLOSE'

EXCEPTIONS

ERROR = 1.

The above can be also used for Single spool generation.

Thanks & regards,

Dileep .C

0 Kudos
68

Hi All,

The problem is solved.

Solution -

data : control TYPE ssfctrlop,

control_parameters TYPE ssfctrlop.

control-preview = 'X'.

control-no_dialog = 'X'.

control-device = 'PRINTER'.

control_parameters-no_dialog = 'X'.

CALL FUNCTION lf_fm_name

EXPORTING

CONTROL_PARAMETERS = control

and your parameter that needs to be passed to smartforms.

Thanks,

Raju

Former Member
0 Kudos
68

Solved