cancel
Showing results for 
Search instead for 
Did you mean: 

web api programming and web template

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

i havent tried the scenario you explained, but just a thought,

try changing the relatvie path of the image src to absolute path

Regards

Raja