08-01-2007 12:20 PM
Hi
I have a requirement ..
in the smartform application..user doesnt want the print pre-view screen.
The requirement is ,after F8 control directly goes to the printer..from the program. and Printer Priview screen doesnot appears in between..
Thanks in advance.....
Regards...
lakhan.......
08-01-2007 12:23 PM
Hi,
Refer te example SF_EXAMPLE_03 for checking how to do it.
output_options-TDNEWID = 'X'.
output_options-TDDEST = 'LP01'.
output_options-TDIMMED = 'X'.
and
control_param-NO_DIALOG ='X'. " You need to set this one to suppress the pop up
my function module of smartform is
CALL FUNCTION fmname
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = control_param
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
OUTPUT_OPTIONS = output_options
* USER_SETTINGS = 'X'
imp_lifnr = '100073'
validity_date = sy-datum
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
* EMAILID =
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5.
Regards
Sudheer
08-01-2007 12:23 PM
Hi,
Refer te example SF_EXAMPLE_03 for checking how to do it.
output_options-TDNEWID = 'X'.
output_options-TDDEST = 'LP01'.
output_options-TDIMMED = 'X'.
and
control_param-NO_DIALOG ='X'. " You need to set this one to suppress the pop up
my function module of smartform is
CALL FUNCTION fmname
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = control_param
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
OUTPUT_OPTIONS = output_options
* USER_SETTINGS = 'X'
imp_lifnr = '100073'
validity_date = sy-datum
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
* EMAILID =
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5.
Regards
Sudheer
08-01-2007 12:24 PM
In the FM which you use in the driver program,
Check the NO-DIALOG eq 'X'.
Regards,
Pavan