cancel
Showing results for 
Search instead for 
Did you mean: 

2nd copy print problem with blank value from SMARTFORMS

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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