Application Development and Automation 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: 
Read only

send Smartform as HTML

Former Member
0 Likes
838

I need to send Smartform as HTML e-mail body. Please let me know if anyone has done this solution.

Thanks in advance.

5 REPLIES 5
Read only

vinoth_aruldass
Contributor
0 Likes
757

hi,

you cannot send smartform output as email body. you can convert the output to pdf and send it with attachment by convert abapspooll2pdf. check standard program RSTXPDFT4′.

regards,

Vinoth.

Read only

Former Member
0 Likes
757

Hey,

You can not send smartforms as an email body, but you can send the smartforms as an attachment in email by converting it to pdf format. find following function modules to do this.

  •   CONVERT_OTF_2_PDF :- used to convert the smartform OTF data to PDF format.
  •   SO_DOCUMENT_SEND_API1 :- after getting PDF from above FM use this one to send email with PDF attachment

Read only

0 Likes
757

We already have the logic to send Smartform as PDF. Business want to receive mail as HTML e-mail body for Smartform.

Read only

0 Likes
757

i think there is way around use this FM 'CONVERT_OTF' and give format as html and use this html as your email body...

Read only

Aashish28
Contributor
0 Likes
757

Hiii,

       Please check this demo program - SF_XSF_DEMO_MAIL

Run this program and see - SBWP. I hope you know how to send mail outside of SAP so get idea or logic from this program and change your program as per your requirement