on 04-08-2008 11:06 AM
Hi frnds,
now i am calling the smartform thru report when i choose the one radio button. But when i select radiobutton and execute it is going to PRINT popup and asking for Print Preview or Print. But my requirement is this popup should not come. it has to generate the spool number of this layout.
how to do this.
points will be rewarded for your helpful answers.
Thanks in Advance.
Regards,
Balu
Hi,
For this do one thing in Driver program before SSF_FUNCTION_MODULE_NAME
declare like this.
data: gst_control_parameters type ssfctrlop,
gst_output_options type ssfcompop,
gt_job_output_info type ssfcrescl,
gt_output_options type ssfcresop.
Then before callingSmartform Generated Fm
write like this-->
gst_control_parameters-no_dialog = 'X'.
gst_control_parameters-getotf = 'X'.
gst_control_parameters-preview = 'X'. "Print preview will not Come
Then in the Fm pass the parameter as
control_parameters = gst_control_parameters
output_options = gst_output_options
job_output_info = gt_job_output_info
job_output_options = gt_output_options
For detailed info See the link below:--
[http://help.sap.com/saphelp_nw2004s/helpdata/en/71/9ccd9c8e0e11d4b608006094192fe3/frameset.htm]
Regards
Sandipan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
DATA:SSFCOMPOP1 TYPE SSFCOMPOP.
DATA: SSFCRESCL1 TYPE SSFCRESCL.
DATA: SPOOL TYPE RSPOID.
DATA: CONTROL TYPE SSFCTRLOP.
SSFCOMPOP1-TDNEWID = 'X'.
SSFCOMPOP1-TDIMMED = 'X'.
CONTROL-PREVIEW = 'X'.
CONTROL-NO_OPEN = 'X'.
CONTROL-NO_CLOSE = 'X'.
CONTROL-NO_DIALOG = 'X'.
CONTROL-DEVICE = 'PRINTER'.
CALL FUNCTION 'SSF_OPEN'
EXPORTING
ARCHIVE_PARAMETERS =
USER_SETTINGS = ' '
MAIL_SENDER =
MAIL_RECIPIENT =
MAIL_APPL_OBJ =
OUTPUT_OPTIONS = SSFCOMPOP1
CONTROL_PARAMETERS = CONTROL
IMPORTING
JOB_OUTPUT_OPTIONS =
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.
ENDIF.
call ur fm_name
then
CALL FUNCTION 'SSF_CLOSE'
IMPORTING
JOB_OUTPUT_INFO =
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
OTHERS = 4
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
regards
Devanand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.