on 2012 Feb 16 8:31 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.