‎2009 Apr 26 9:43 AM
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
‎2009 Apr 26 10:15 AM
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.
‎2009 Apr 26 10:16 AM
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.
‎2009 Apr 27 7:07 AM
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
‎2009 Apr 27 9:42 AM
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
‎2009 May 06 7:15 AM