on 01-08-2015 6:17 AM
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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.