on 03-01-2008 5:47 AM
Hi Experts,
I have created a report and a smart form . while executing this it always asks for the out put device
i.e lp01 i am using.
I want that whenever I will execute the smart form it should not ask for the output device window to appear
donot worry abt pts
Regards
Atul
Hi
PUT ALL THOSE THINGS IN A FILE AND INCLUDE THAT FILE IN THE DRIVER PROGRAM
DATA: DEVICE TYPE SSFCTRLOP .
DEVICE-DEVICE = 'PRINTER'.
initialization.
DEVICE-no_dialog = 'X'.
data: control_param type ssfctrlop,
output_opt type ssfcompop,
job_info type ssfcrescl,
job_output type ssfcresop.
control_param-no_dialog = 'X'.
control_param-preview = ''.
control_param-getotf = ''.
output_opt-tddest = 'LP01'.
output_opt-tdimmed = 'X'.
output_opt-tdnewid = 'X'.
output_opt-tdnoprint = ''.
output_opt-tdnoprev = 'X'.
control_param-no_dialog = 'X'.
control_param-preview = 'X'.
control_param-getotf = ''.
output_opt-tddest = 'LP01'.
output_opt-tdimmed = 'X'.
output_opt-tdnewid = 'X'.
output_opt-tdnoprint = ''.
output_opt-tdnoprev = 'X'.
In the driver programs call function add control parameters or un comment it if it is there
Ex:
CALL FUNCTION fm_name_val
EXPORTING
control_parameters = control_param
output_options = output_opt
user_settings = ' '
ITAB_INFO = IT_EMP7
ITAB_BASIC = ITAB2
ITAB_TOTAL = ITAB13
ITAB_FINAL = WA_SAL
IMPORTING
job_output_info = job_info
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
Reward if helpful
Thanks
Krushna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just do like this,
In the SSF_OPEN function module,
Set the OUTPUT OPTIONS paramter TDDEST to your printer name.
Set the CONTROL PARAMETERS and control parameters as shown below,
control-preview = 'X'.
control-no_open = 'X'.
control-no_close = 'X'.
control-no_dialog = 'X'.
control-device = 'PRINTER'.
control_parameters-no_dialog = 'X'.
control_parameters-no_open = 'X'.
control_parameters-no_close = 'X'.
OUTPUT_OPTIONS-TDDEST = 'PRINTER NAME'.
OUTPUT_OPTIONS-TDNOPRINT = 'X'.
CALL FUNCTION 'SSF_OPEN'
EXPORTING
output_options = output_options
control_parameters = control
user_settings = ' '
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.
seshu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.