on 05-14-2009 12:14 PM
Hi ,
I am having a scenario in smartform in which i want THREE copies for page 1 and ONE copies for page 2. please advice how to do this?
thanks
krishan
2 slightly silly answers but might work.....
1.
Set the TDCOPIES to 3 and put a condition (alternative) on the windows in page 2 that they only output once. Maybe have all the windows in a folder and have the alternative on that.
2. Repeat Page 1 three times. Only one page 2.
Must be a more inteligent way but that was off the top of my head.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the interface paramater OUTPUT_OPTIONS has the field tdcopies. This can be populated from where the form is called or in the intialisation screen in the form.
pi_output-tdcopies = 3.
call function g_fm_name "SF function module
EXPORTING
output_options = pi_output
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.
in print program
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING formname = lf_formname
Call smartform Order Confirmation
CALL FUNCTION lf_fm_name
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = space
here the output_options strcture
ls_composer_param TYPE ssfcompop,
click the strcture ssfcompop in this strcture you can find field TDCOPIES there you enter number of copies like 3 or 4 or 10
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
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.