on 08-20-2008 1:32 PM
I dont want print preview screen in the smartform output.
so i used control_parameters = 'X' in the my functional module.
but my question is how i make sure i am getting the output screen
or how can i get the output screen by supressing print preview.
Hi,
its not directly
control_parameters = 'X'
DATA: x_control_parameters TYPE ssfctrlop,
x_output_options TYPE ssfcompop.
CONSTANTS:
c_x TYPE char1 VALUE 'X'.
x_output_options-tdimmed = c_x.
x_output_options-tddest = p_prin.
x_output_options-tdnewid = c_x.
x_output_options-tdreceiver = sy-uname.
x_output_options-tdcopies = '001'.
x_control_parameters-device = 'PRINTER'.
x_control_parameters-no_dialog = c_x.
x_control_parameters-langu = sy-langu.
& in your function module pass control_parameters = 'X'.
on the above statements N0_DIALOG is your requirement remaining for your reference please try once.
Thanks,
Phani.
Edited by: phani kumar on Aug 21, 2008 6:21 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We had a similar scenario...
Well here is the solution...
For ONLY PREVIEW
ST_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
ST_CONTROL_PARAMETERS-PREVIEW = 'X'.
For PRINTING DIRECTLY
ST_CONTROL_PARAMETERS-PREVIEW = ' '.
ST_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
ST_OUTPUT_OPTIONS-TDIMMED = 'X'.
CALL FUNCTION v_fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = st_control_parameters
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = st_output_options
USER_SETTINGS = 'X' default it to space
IMPORTING
DOCUMENT_OUTPUT_INFO = st_document_output_info
JOB_OUTPUT_INFO = st_job_output_info
JOB_OUTPUT_OPTIONS = st_job_output_options
TABLES
IS_LABELS = IS_LABELS
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
*********************************************
also
IF sy-subrc = 0.
CALL FUNCTION 'CONVERSION_EXIT_SPDEV_INPUT'
EXPORTING
input = l_pdest
IMPORTING
output = l_output_option-tddest.
ENDIF.
SELECT SINGLE patype
FROM tsp03
INTO l_output_option-tdprinter
WHERE padest = l_output_option-tddest.
IF sy-subrc = 0.
Do nothing
ENDIF.
Populate output options
l_output_option-tdimmed = 'X'.
l_control-no_dialog = 'X'.
CALL FUNCTION v_form_fm
EXPORTING
control_parameters = l_control
output_options = l_output_option
user_settings = ''
p_first = p_first
p_title = v_title
p_prog = v_prog
p_system = v_system
p_date = v_date
p_time = v_time
p_user = v_user
p_plant = v_plant
TABLES
i_report = i_report
i_mat_zfg = i_mat_zfg
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
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.
There will be a field called XSCREEN in the print program.
The possible values for this variable are X or SPACE.
Depending on its value set the values of the CONTROL_PARAMETERS structure.
Hope this helps you.
Thank you,
Surya
Edited by: Surya on Aug 20, 2008 12:23 PM
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.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.