Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smartform doubt

Former Member
0 Likes
364

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.

2 REPLIES 2
Read only

Former Member
0 Likes
338

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

Read only

Former Member
0 Likes
338

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.