‎2006 Jul 25 11:51 AM
When we try to call the smartform in the print screen(pop up) that comes how to uncheck the check boxes that are defaultly set like delete after output, print immediately.
This we can do it from user settings in su01 trnx but is there a way out?
One more doubt is how to suppress that pop up print screen from coming?
‎2006 Jul 25 11:55 AM
data : g_output TYPE ssfcompop,
g_control TYPE ssfctrlop,
g_control-no_dialog = 'X'.
It will suppress that pop up print screen from coming.
g_output-tdimmed = 'X'.
If it is checked then your spool request will be printed otherwise it will not printed.
g_output-tdDELETE = 'X'.
If it is checked then your spool request will be DELETED AFTER THE OUTPUT otherwise it will not BE DELETED.
Check these two structures you will get a good idea about all the printer setting
SSFCOMPOP : SAP Smart Forms: Smart Composer (transfer) options
SSFCTRLOP : Smart Forms: Control structure
Message was edited by: mukesh kumar
‎2006 Jul 25 11:53 AM
Hello,
One more doubt is how to suppress that pop up print screen from coming?
- if you maintain default printer in your default setting than this screen will not come.
For your first question, you can pass your options for new spool, delete after etc into OUTPUT_OPTIONS parameter.
regards,
Naimesh
‎2006 Jul 25 11:55 AM
Hi phani,
1. while calling the FM for the smartform,
2. there is one IMPORTING parameter
3. OUTPUT_OPTIONS type SSFCOMPOP
4. we can use the fields of this structure,
and manipulate the output/flow.
regards,
amit m.
‎2006 Jul 25 11:55 AM
data : g_output TYPE ssfcompop,
g_control TYPE ssfctrlop,
g_control-no_dialog = 'X'.
It will suppress that pop up print screen from coming.
g_output-tdimmed = 'X'.
If it is checked then your spool request will be printed otherwise it will not printed.
g_output-tdDELETE = 'X'.
If it is checked then your spool request will be DELETED AFTER THE OUTPUT otherwise it will not BE DELETED.
Check these two structures you will get a good idea about all the printer setting
SSFCOMPOP : SAP Smart Forms: Smart Composer (transfer) options
SSFCTRLOP : Smart Forms: Control structure
Message was edited by: mukesh kumar
‎2006 Jul 25 11:58 AM
Hi
The interface of fm of sm has these parameters:
- CONTROL_PARAMETERS (as structure SSFCTRLOP), here you can indicate if to open or not to open the dialog.
- USER_SETTINGS (as flag): it has to be space if yuo don't want to use the user setting.
- OUTPUT_OPTIONS (as structure SSFCOMPOP): here you cam indicate the properties of the print (immediately etc. etc.)
Max