Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Mailing directly from a smartform.

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

Hi Smith,

Good!

Gothrough the like

smartform to MAIL

https://wiki.sdn.sap.com/wiki/display/Snippets/SmartformtoMailasPDF+attachment

Thanks,

Sunil

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

hi Nageswar,

no im not using std program...i hav a zreport(driver pgm) which calls the form.