cancel
Showing results for 
Search instead for 
Did you mean: 

Print dialog box

Former Member
0 Kudos
52

Hi,

I am facing the following issue in smartforms.I created a form.while execution the print dialog box is getting executed for each material number.I need the dialog box only for the first material.

Please suggest any method to suppress the dialog box.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

To suppress the dialog box you need to declare one variable of type SSFCTRLOP and assign it in ssf_open FM.

and set the values as

DATA:CPARMS TYPE SSFCTRLOP.

CPARMS-NO_OPEN = 'X'.

CPARMS-NO_CLOSE = 'X'.

CPARMS-NO_DIALOG = 'X'.

CPARMS-PREVIEW = 'X'.

CALL FUNCTION 'SSF_OPEN'

EXPORTING

CONTROL_PARAMETERS = CPARMS

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5

.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

LEAVE PROGRAM.

ENDIF.

Former Member
0 Kudos

Thanks its working.

Answers (0)