cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform as Email Body

Former Member
0 Kudos

Hi,

I have a requirement to send the smartform as mail body. I was able to send the smartform as PDF attachment but we need it mail body. I tried converting to html but the data, tables and images are displaying in the distored way. Will it be possible to convert the smartform data to image and send as mail body? Please respond.

Thanks!

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member585060
Active Contributor
0 Kudos

Hi,

Try by below way

1) Generate a spool of that smartform.

2) Get the spool number from TSP01 table.

3) Get the html content of the spool, it can be done by below way

a) Use FM 'RSPO_DISPLAY_SPOOLJOB' providing the spool number,

b) Use FM 'LIST_FROM_MEMORY' to get content from memory.

c) Pass the content got by above FM to 'WWW_HTML_FROM_LISTOBJECT' to get the HTML content.

4) Now process using the CL_DOCUMENT_BCS, using the I_TYPE = html and I_TEXT = HTML content from above.

Thanks & Regards

Bala Krishna.

Former Member
0 Kudos

Thanks Shahin.

Yes, using BCS class we can send the mail with smartform as PDF attachment. We already tried this. But for us, we need the smartform itself as email body. Let me know how can we achieve this.

Thanks!

Former Member
0 Kudos

Hi,

In BCs Class Body or Function Module So_new_Send_API body you can Send Smart form through mail.

Thanks

Dnyaneshwar

former_member361845
Participant
0 Kudos

Hi,

Yes email body can be done by using BCS class..Try to write the logic in smartforms or take help of SDN.

I have done it same way.