Skip to Content
Author's profile photo Joffy John

Report as HTML attachment – why one of the image is disappearing?

Hi I am Joffy working as SAP Development Consultant.

This blog is about one of the  issue that we faced recently which many others has faced earlier

but solution not clearly documented anywhere. One cute bug. 🙂

We were in the developement of  a new  Report as HTML attachment  emailing requirement

where we getting the  report as list object by submiting the report and  exporting to memory.


and later converting to HTML for generating the attachment content.


But while user acceptance testing  an image missing error was noted as shown below.


What happened to that image ? After verifying the source of this HTML page a clue was got about this missing icon image.


So the possible solutions are

1) download the ICON image and include that file pathin the HTML generation code.

2) Filter out the HTML code for image <IMG>

Refer the below code.txt file for code for removing the image html tag

We used the second solution as SAP as adopted the same in some of HTML based mail sending function module.

This is may be a small issue but has lots of technical stuffs involved.

Finally the issue is resolved and our utility is live in PRD. 🙂

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.