‎2009 Nov 06 10:39 PM
Hi all,
I have implemented a function module to send HTML emails with SO_DOCUMENT_SEND_API1.
It works fine, but in every email I have at the end a CRLF which looks not very nice in MS Outlook.
It seems that this will be added to every email in addition to my HTML text.
Has anyone an idea how I can prevent this?
Thanks in advance for your help.
Best Regards,
Marcel
‎2009 Nov 07 12:42 AM
Hi Marcel,
did you try with CL_BCS? It may be worth a try.
Regards,
Clemens
‎2009 Nov 06 10:49 PM
I heard adding a
<br />tag at end of each line, would remove it.. never test.. but might work
‎2009 Nov 06 10:51 PM
Hi J@y,
thanks for your quick reply. I have already tested this and also adding a CRLF at the end, but without success.
The strange thing is if I have only a short line everything works fine.
Any other ideas?
Best Regards,
Marcel
‎2009 Nov 06 11:06 PM
[Microsoft Support |http://support.microsoft.com/kb/314336/]
‎2009 Nov 06 11:11 PM
Hi J@y,
thanks for the idea, but I also have the issue in the OWA so it seems to be not an issue with the Outlook.
The article also describes, that it converts the CRLF to Space. If this would happen I would have the solution.
Thanks for your help so far. Any other idea?
Cheers,
Marcel
‎2009 Nov 07 12:42 AM
Hi Marcel,
did you try with CL_BCS? It may be worth a try.
Regards,
Clemens
‎2009 Nov 07 10:47 AM
Hi Clemens,
can you give me a hint what you mean? Can I also use this class to send emails?
Thanks in advance,
Marcel
‎2009 Nov 07 11:07 AM
yes... this cl_bcs can definitely be used to send mail.. with some added features than so..send..api1
there are few blogs already posted for this..
check these out..
‎2009 Nov 07 2:56 PM
Hi Marcel,
not only you can, you should use CL_BCS for sending of email. Although I expect it to be not too different from the old functions, it points to the object oriented future of SAP/ABAP. At least it should run more stable and SAP recommends to use it as a replacement for old functions.
I came across one blog
[Sending HTML Email from SAP CRM/ERP|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417300%29ID2058700050DB10227264795501776639End?blog=/pub/wlg/2273]
You may be careful with this one: Probably it's not exactly what you need.
The one I love most for its simplicity is this one
[Unknown thus unloved?|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417300%29ID2058700050DB10227264795501776639End?blog=/pub/wlg/3443]
although it does not mention HTML - I think easy for you to adapt. Compared to functional SO_DOCUMENT.. approach the program will shrink.
If you want to understand the concepts behind, nobody explains it better than
[Thomas Jung: Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417300%29ID2058700050DB10227264795501776639End?blog=/pub/wlg/789]
or - if you still feel unsafe in oo environment -
[Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417300%29ID2058700050DB10227264795501776639End?blog=/pub/wlg/15408]
Happy coding!
Regards,
Clemens