Skip to Content
avatar image
Former Member

Sending Mail in PDF for Multiple Copies generated in Samartform


Hi All,

How can we attach Multiple Copies ( Say Original ,Duplicate ) in a single pdf attachment in a single mail  in Smart forms .

Regards,

Sarat

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 08, 2015 at 07:16 AM

    Did you try to append the OTF generated by 2 calls to smartform into one table and then convert that OTF to PDF? Does that work?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 08, 2015 at 06:27 AM

    Hi Sarat Babu.

    Please Use copy window in Smartform.

    and make code when you call smartform.

    data:   ST_OUTPUT_OPTIONS TYPE SSFCOMPOP.

    ST_OUTPUT_OPTIONS-TDCOPIES = '3'


    CALL FUNCTION FMNAME "'/1BCDWB/SF00000119'

         EXPORTING

           CONTROL_PARAMETERS         = ST_CONTROL_PARAMETERS

    *   MAIL_APPL_OBJ              =

    *   MAIL_RECIPIENT             =

    *   MAIL_SENDER                =

           OUTPUT_OPTIONS             = ST_OUTPUT_OPTIONS

    *   USER_SETTINGS              = 'X'

           PVBELN                     = PVBELN-LOW

    *      TOTWIGHT                 = TOTWIGHT

    *      TOTBOX                   = TOTBOX

    *      TOTNETTD                 = TOTNETTD

    *      TOTTAXABL                = TOTTAXABL

    *      TOTLOOSE                 = TOTLOOSE

    *      TOTVOL                   = TOTVOL

    *      TOTGAMT                  = TOTGAMT

    *      TOTTD                    = TOTTD

    *      TOTNET                   = TOTNET

    *      TOTTAX                   = TOTTAX

    *      TOTSURCH                 = TOTSURCH

    *      TOTBILLAMT               = TOTBILLAMT

    *      TOTED                    = TOTED

    *      TOTMRP                   = TOTMRP

          IMPORTING

           DOCUMENT_OUTPUT_INFO      = ST_DOCUMENT_OUTPUT_INFO

           JOB_OUTPUT_INFO           = ST_JOB_OUTPUT_INFO

           JOB_OUTPUT_OPTIONS        = ST_JOB_OUTPUT_OPTIONS

         TABLES

           ITVBELN                   = ITVBELN

           IFINAL                    = IFINAL

           TKOMV                     = TKOMV

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

    .

    Add comment
    10|10000 characters needed characters exceeded