01-21-2008 11:53 AM
Hi,
Is there a possibility of mailing the smartform output directly from the smartform itself.........bcoz we have an option email in output device....pls advice
Thx,
Will.
01-21-2008 11:56 AM
Hi Smith,
Good!
Gothrough the like
smartform to MAIL
https://wiki.sdn.sap.com/wiki/display/Snippets/SmartformtoMailasPDF+attachment
Thanks,
Sunil
01-21-2008 12:03 PM
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = wrk_filesiz
TABLES
otf = st_prnout_info-otfdata[]
lines = it_lines
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 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.
01-21-2008 12:15 PM
HI Smith,
In the smartform itself how will you get the data to print. So I think you are using some print program to get the data right?
if you are using standard print program then that will take care of mailing funnctionality . You just need to configure in the NACE transaction.
Thanks,
Nageswar
01-21-2008 12:18 PM
hi Nageswar,
no im not using std program...i hav a zreport(driver pgm) which calls the form.