hi, all
can any body tell me how can i call a smartform in my prog. without printview / print selection screen option
e.g
i made a prog and call a smart form in that .
when i run this prog after putting data in selection screen, it ask for printer device selection screen then i clik on print preview or print butoon then it show report.
so my prob. is i dont want that window come, i take default printer and show report directly.
Thanks,
mukesh
Set the following parameters of the FM interface:
CONTROL_PARAMETERS-DEVICE = <printer_name>.
CONTROL_PARAMETERS-NO_DIALOG = 'X'.
CONTROL_PARAMETERS-PREVIEW = space.
OUTPUT_OPTIONS-TDDEST = <printer_name>.
Not sure about the parameters for the printer name (whether you have to set the first one and/or the second one); I also don't remember whether this represents the printer short or long name; just play with it.
Guenther
I just double-checked, you'll need to set (at least)
OUTPUT_OPTIONS-TDDEST = <printer_name> to pass the printer name.
Message was edited by:
Guenther Schober
Hi,
If the printer is only one u can add this it to Parameters ans set as Default like below.
PARAMETERS: V_PRINTER LIKE TSP03D-NAME default 'Printer Name'.
And then u pass the parameters to following conditions
OUTPUT_OPTIONS-TDDEST = V_PRINTER.
OUTPUT_OPTIONS-TDNOPREV = K_X.
OUTPUT_OPTIONS-TDIMMED = K_X.
CONTROL_PARAMETERS-PREVIEW = ' '.
CONTROL_PARAMETERS-NO_DIALOG = K_X.
If helps please award points.
Add a comment