cancel
Showing results for 
Search instead for 
Did you mean: 

Different no of copies for page 1 and page 2 of smartform

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

aidan_mulcahy
Active Participant
0 Kudos

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.

Former Member
0 Kudos

Hi Kroc,

Thanks a lot.

Can u elobrate more on the first option?

How to set TDCOPIEs...if possibel wid example.

Thanks

krishan

aidan_mulcahy
Active Participant
0 Kudos

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.

Former Member
0 Kudos

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