‎2006 Jan 19 2:12 AM
Hi,
If we execute smartform or SAPscript it will show us the dialog box with the options PRINTPREVIEW,PRINT,NO OF COPIES etc. I want to supress this dialog box.i.e if i execute the smartform it should give the PRINTPREVIEW without showing us the dialog box.
‎2006 Jan 19 2:23 AM
Hi Siddharth,
Please try with NO_Dialog flag in control parameters as 'X'.
CONTROL_PARAM-No_dialog = 'X'.
This will supress the Dialog box.
Lanka
‎2006 Jan 19 2:33 AM
Hi!
Refer to code snippet:
DATA:
control_parameters TYPE ssfctrlop,
output_options TYPE ssfcompop.
output_options-tddest = 'YOUR_OUTPUT_DEVICE'.
output_options-tdimmed = 'X'.
control_parameters-no_dialog = 'X'.
control_parameters-preview = 'X'.
CALL FUNCTION smartform_fm_name
EXPORTING
control_parameters = control_parameters
output_options = output_options
user_settings = ' '.
Hope it helps.
Regards,
Maxim.