Skip to Content
avatar image
Former Member

3 copies from a single smartform

Hi Guys,

I have a smartform which gives output of Invoice Related things.

Now my requirement is I need to get 3 copies of the same output with different heading.

Only heading should be different in all the 3 copies remaining all the display should be same.

How to do this?

Thanks,

Prasad.

Guys I got some results in this forum.

Working on that.

Edited by: Dheeru Prasad on Jul 15, 2009 4:38 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jul 15, 2009 at 03:30 PM

    Hope you are triggering the smartform through some output type that has been assigned using VF03. In that case you could just use nast-kschl (output type) to decide on which heading output has to be triggered.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 16, 2009 at 09:42 AM

    Bellow Code is used for No of Copies in Print Out

    data: cop_page type ssfpp-tdcopies value '3'.

    DATA : i_control TYPE ssfctrlop,

    i_tddest TYPE ssfcompop,

    w_fname TYPE rs38l_fnam.

    i_tddest-tdcopies = cop_page .

    i_control-no_dialog = 'X'.

    i_control-preview = 'X'.

    i_control-no_open = 'X'.

    i_control-no_close = 'X'.

    CALL FUNCTION 'SSF_OPEN'

    EXPORTING

    • ARCHIVE_PARAMETERS =

    user_settings = ' '

    • MAIL_SENDER =

    • MAIL_RECIPIENT =

    • MAIL_APPL_OBJ =

    output_options = i_tddest

    control_parameters = i_control

    • IMPORTING

    • JOB_OUTPUT_OPTIONS =

    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.

    CALL FUNCTION w_fname "'/1BCDWB/SF00001316'

    EXPORTING

    • ARCHIVE_INDEX =

    • ARCHIVE_INDEX_TAB =

    • ARCHIVE_PARAMETERS =

    control_parameters = i_control

    • MAIL_APPL_OBJ =

    • MAIL_RECIPIENT =

    • MAIL_SENDER =

    output_options = i_tddest

    user_settings = ' '

    • IMPORTING

    • DOCUMENT_OUTPUT_INFO =

    • JOB_OUTPUT_INFO =

    • JOB_OUTPUT_OPTIONS =

    TABLES

    i_final = i_final

    • 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.

    CALL FUNCTION 'SSF_CLOSE'

    • IMPORTING

    • JOB_OUTPUT_INFO =

    EXCEPTIONS

    formatting_error = 1

    internal_error = 2

    send_error = 3

    OTHERS = 4

    .

    IF sy-subrc <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    Add comment
    10|10000 characters needed characters exceeded