Quantcast
Channel: SCN : Blog List - ABAP Development
Viewing all articles
Browse latest Browse all 943

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

$
0
0

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.

Capture.PNG

and later converting to HTML for generating the attachment content.

html.jpg

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

Capture.PNG

 

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

 

img.PNG

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.


Viewing all articles
Browse latest Browse all 943

Trending Articles