11-14-2007 11:25 AM
In SMART FORMS, how to skip the:---
1. Printing Option Window and
2. Print Preview window
and give PRINT DIRECTLY...WITH OUT ANY SCREENS AND WINDOWS....
11-14-2007 11:51 AM
You will need to set the CONTROL_PARAMETERS fields DEVICE to 'PRINTER' and NO_DIALOG to 'X'.
This will avoid the printing options window, assuming you have set the print parameters in OUTPUT_OPTIONS.
Regards,
Nick
11-14-2007 11:35 AM
DATA: ps_print_parameters TYPE pri_params.
First use Fm: GET_PRINT_PARAMETERS ->exporting ps_print_parameters .
*THEN,
SUBMIT <program_name> TO SAP-SPOOL
SPOOL PARAMETERS ps_print_parameters
WITHOUT SPOOL DYNPRO AND RETURN.
11-14-2007 11:46 AM
in the Smartform FM,
OUTPUT OPTIONS parameter of type SSFCOMPOP.
Pass SSFCOMPOP-TDNOPREV = 'X'.
11-14-2007 11:51 AM
You will need to set the CONTROL_PARAMETERS fields DEVICE to 'PRINTER' and NO_DIALOG to 'X'.
This will avoid the printing options window, assuming you have set the print parameters in OUTPUT_OPTIONS.
Regards,
Nick
11-14-2007 11:59 AM
11-14-2007 12:06 PM
You need to look at your print program, here it will call the generated function module that is the Smartform.
You will need to define a structure and fill it with the required values;
DATA: DEVICE TYPE SSFCTRLOP .
DEVICE-DEVICE = 'PRINTER'.
DEVICE-NO_DIALOG = 'X'.
Then pass this structure to the function module parameter CONTROL_PARAMETERS.
Regards,
Nick
11-14-2007 12:44 PM
DEVICE-DEVICE = 'PRINTER'.
what is PRINTER here.
Is Printer my printer name or sometning else.
11-14-2007 12:45 PM
11-14-2007 12:50 PM
11-14-2007 1:10 PM
Your question was about stopping the print parameters screen appearing, which the additional parameters should do.
If your print out is not appearing this could be down to something else.
Regards,
Nick