on 10-12-2011 4:54 AM
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!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.