Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

web api programming and web template

Hi all,

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:

method CHARACTERISTIC_CELL.

*CALL METHOD SUPER->CHARACTERISTIC_CELL

  • EXPORTING

  • I_X =

.....

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

receiving

r_path = l_icon_path.

concatenate '<TABLE><TR><TD>'

*'<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"> '

'</TD><TD>' c_CELL_CONTENT

'</TD></TR></TABLE>'

into c_CELL_CONTENT .

*

endif.

endmethod.

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

Michele

Former Member
Not what you were looking for? View more on this topic or Ask a question