cancel
Showing results for 
Search instead for 
Did you mean: 

smartform print same form in 3 copies

Pranay_Panchbha
Participant
0 Kudos

hello to all,

i have a smartform for form16 , out put of this is of only one page , my issue is when i press on print command it print 3 copies of same . how is possible without entering the no. of copies in print criteria section.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

For example if u pass your internal table HDR Then put following logic in your report


LOOP AT hdr.
      hdr-orsel = 'ORIGINAL'.
      MOVE-CORRESPONDING hdr TO hdr1.
      APPEND hdr1.
      hdr-orsel = 'DUPLICATE'.
      MOVE-CORRESPONDING hdr TO hdr1.
      APPEND hdr1.
      hdr-orsel = 'TRIPLICATE'.
      MOVE-CORRESPONDING hdr TO hdr1.
      APPEND hdr1.

    ENDLOOP.

Then u pass your internal table insted of HDR you pass HDR1.

Former Member
0 Kudos

When u call your Form u set like


CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
       formname = 'Zform16'
      IMPORTING
        fm_name  = fm_name.

    IF sy-batch EQ 'X'.
    output_options-tdnewid = 'X'.
     control-device = 'PRINTER'.
    control-no_dialog = 'X'.

    ENDIF.

Pranay_Panchbha
Participant
0 Kudos

thanks for reply

but it not work please tell me where i can mention 3 copies to be print.

Former Member
0 Kudos

check field NAST-ANZAL for this purpose.

Former Member
0 Kudos

In the smartform generated FM, you will find output_options structure, pass the value in the field tdcopies, If you want 3 copies, pass 3 and u will get 3 prints.

Vishwa.