web api programming and web template
we want to embed some picture on a BW query into a Web template.
In particular we need to link a mime object to any occurrence of the material code into the query
To do this we've create a custom class derived from
CL_RSR_WWW_MODIFY_TABLE redefining the method
CAPTION_CELL and CHARACHTERISTIC_CELL to modifying the HTML output code just to insert a <IMG SRC...> tag yhat point to the MIME that we want to relate to the material code.
Here's the code that we crated:
*CALL METHOD SUPER->CHARACTERISTIC_CELL
data : l_icon_path type string.
data : l_alt_text type string.
data : w_CELL_CONTENT like c_CELL_CONTENT .
IF I_IOBJNM = 'ZMATERIAL'.
call method me->get_icon_path
r_path = l_icon_path.
*'<IMG src="/sap/bw/Mime/Customer/Images/' I_CHAVL '.jpg">'
'<img src = "' l_icon_path 'imo_chart_bw.gif "border="0"> '
*'<img src = "/sap/bw/Mime/Customer/Images/melissa58.jpg "border="0"> '
into c_CELL_CONTENT .
The code get the MIME form the mime repository and if we run the web template from the web application designer anything seem to work fine and the images are displayed into the query.
When we use the download scheduler from the reporting agent to export the generated HTML, the system doesn't export the image file we linked to the web template.
Does anyone know how to solve it?
Thanks in advance