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

Doubt in smartforms!!!

Former Member
0 Likes
579

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
548

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

4 REPLIES 4
Read only

naimesh_patel
Active Contributor
0 Likes
548

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

Read only

Former Member
0 Likes
548

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.

Read only

Former Member
0 Likes
549

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

Read only

Former Member
0 Likes
548

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