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

How include server-side image in SAP inbox message using HTML

Former Member
0 Likes
441

Hi all,

I have to send a message, formatted as HTML, including an image to a user’s inbox. I am familiar with sending messages to e-mail / SAP inbox. However, I am not too sure how to include an image. I came across a few related forums and I referred to example reports BCS_EXAMPLE_* and RSSOHTMLGIF. The problem lies with including the image - in all the examples, the image is uploaded directly form the front-end at run-time using GUI_UPLOAD and if I understand correctly, the image is converted to binary data and then added as an attachment to the message.

The image should not be uploaded from the user’s PC but should reside on the server.

I’m planning to upload the image using transaction SE78.

My question: how do I convert this image now to binary form or is it already stored in binary form? If so, how do I identify the image? Is there a particular function module / method to use for this purpose? Is it all possible?

Your suggestions will be much appreciated.

Regards

Liza-Marie

1 REPLY 1
Read only

athavanraja
Active Contributor
0 Likes
383

if you choose to store the image using SE78, you can then use the following method to get it in binary format at runtime.

CL_SSF_XSF_UTILITIES=>GET_BDS_GRAPHIC_AS_BMP

Regards

Raja