cancel
Showing results for 
Search instead for 
Did you mean: 

No of copies issue in smartforms

Former Member
0 Kudos

Hi,

I have given the below logic in SF to print 2 copies and not working.

Can you please help me in this issue and how should I take care of ?

Logic:

gs_control_param-no_dialog = 'X'.

gs_composer_param-tdnewid = 'X'.

gs_composer_param-tdcopies = '2'.

gs_composer_param-tdimmed = 'X'.

  • gs_composer_param-TDDELETE = 'X'.

*determine smartform function module

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = gv_formname

IMPORTING

fm_name = gv_fm_name

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

IF sy-subrc <> 0.

e_subrc = sy-subrc.

ENDIF.

CALL FUNCTION gv_fm_name

EXPORTING

control_parameters = gs_control_param

output_options = gs_composer_param

user_settings = ' '

TABLES

gi_labels = gi_labels

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

IF sy-subrc <> 0.

e_subrc = sy-subrc.

ENDIF.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

What are the attributes of the spool that has been created? Does that have '2' in the number of copies or '1'? If it has 2 then the problem is between the spool and the printer, if 1 then the problem is in the smartform.

Regards,

Nick

Former Member
0 Kudos

Hi,

I can see only 1 copie in the spool . How should I do ?

Thanks...

Former Member
0 Kudos

Hi,

There will only be one copy in the spool, but in the spool attributes, on the 'Output attributes' tab there is a field 'No. of Copies'.

What value is in this field?

Regards,

Nick

Former Member
0 Kudos

Hi Nick,

It has 2 copies there in the output attributes tab in Spool .

Thanks...

Former Member
0 Kudos

Hi,

Then your smartform is working fine, the problem is in the way the printer is set up.

One for the basis team......

Regards,

Nick

Former Member
0 Kudos

Thank you very much Nick for your help.

Answers (0)