on 11-15-2010 4:34 AM
Hi Experts,
I want to print 2nd copy of form from smartforms for some field with blank value.
I can see the 2nd copy with values when am using ssfcompop-tdcopies = '2'.
Please help to solve this problem.
Thanks & Regards,
Ajmal.
you have to call 2 time the smartforms with this option:
CLEAR w_copy.
DO 2 TIMES.
IF w_copy IS INITIAL.
ls_control_param-no_open = ' '.
ls_control_param-no_close = 'X'.
ELSE.
ls_control_param-no_open = 'X'.
ls_control_param-no_close = ' '.
ENDIF.
Determine smartform function module for invoice
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = lf_formname
IMPORTING
fm_name = lf_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
error handling
ENDIF.
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 = ' '
nast = nast
w_copy = w_copy
wa_lfa1 = l_lfa1
TABLES
it_tab1 = it_tab1
it_tab2 = it_tab2
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
error handling
ENDIF.
w_copy = 'X'.
ENDDO.
and, inside the forms you can understand:
w_copy = space mean original or
w_copy = 'X'. mean the copy so show or not the filed
Let me know if it's ok.
regards
roberto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.