cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms printing

Former Member
0 Kudos

Hi Experts,

I have the following requirement while printing the smartforms.

1. The print preview should not be visible.

2. The print dialog box should be supressed, and it should print the forms immediately.

What should be the control and output parameters for the FM SSF_OPEN for this?

Thanks.

Warm regards,

Harshad.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos
DATA : z_control TYPE ssfctrlop,                                                " here define two structures (ctrl and options)
       z_options TYPE ssfcompop.                                                   " like  ssfctrlop and ssfcompop.


  MOVE 'X' TO : Z_control-no_dialog,                                         " these are the status of variables
                Z_options-tdnewid,			         "  of 'output options' and 'control parameters' structures
                z_control-PREVIEW.	                         " that have to be set before passing to the form.
					       "
					       "
  MOVE 'LP01' TO Z_options-tddest.		      "
  MOVE space  TO Z_options-tdimmed.		      "
  MOVE 'PRINTER' TO Z_control-device.	      "


  call function 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname = <form name>
    IMPORTING
      fm_name  = fname.



  CALL FUNCTION FNAME
    EXPORTING
      CONTROL_PARAMETERS = z_control                 " here the structures are passed
      OUTPUT_OPTIONS     = z_options	           " into the form in stmt 'exporting' so that 
      USER_SETTINGS      = ''	                           " print options are not popped up b4 disp of smartform.
    TABLES
      IT_EKKO            = TAB_EKKO
      IT_EKPO            = TAB_EKPO
      IT_LFA1            = TAB_LFA1.

Regards,

Sumit Nene.

alex_m
Active Contributor
0 Kudos

Set the following value for the control parameters while open the form.

SSFCTRLOP-PREVIEW = ' '

SSFCTRLOP-NO_DIALOG = 'X'.

Former Member
0 Kudos

Hello.

U can mark the No_dialog = 'X'.

Then u wont get the dialog box.

Tnx,

Joe