cancel
Showing results for 
Search instead for 
Did you mean: 

Inserting Image into HTML template

Former Member
0 Kudos

Hi,

i am customising a HTML template in a web application. This web application is published on <b>integrated ITS</b> using an internet service (in SE80).

i am not able to insert an image into a HTML template which is generated using sapgui for HTML . i am able to insert the images and icons which are available in theme 99, theme bc. But i am not able to insert external images (which are not available in themes).

  • i have activated the mixed mode while generating the HTML template

  • i have imported the external image into the internet service object (in SE80) by clicking the context menu and choosing <b>create mime</b> option .

  • i have inserted this in HTML template using plain HTML code . But when i publish the service i am not able to see this image on the screen.

please let me know if i have to import these external images to any other directory so that i can insert them into an HTML template.

Accepted Solutions (1)

Accepted Solutions (1)

athavanraja
Active Contributor
0 Kudos

so you see only the "X"m mark instead of picute on the browser? right click on the "X" mark go to attributes and see whether the url for the image is generated properly

Regards

Raja

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

found the solution myself..

this can be done using SRC='mimeurl(...)'

regards,

Prasad

Former Member
0 Kudos

Hi Durairaj,

i have inserted an internal mimeobject

SRC="`~urlmime`/webgui/99/images/img/hourglass.gif" ALT="image not available"

After publishing this hourglass.gif is visible on the screen.

i have imported an external mimeobject "mimeimage.gif" into the web application object. i have assigned package as local object ( $tmp) and THEME 99.

The folder structure is as follows.

__object name

....---THEME 99

........**Mime Objects

........... --mimeimage.gif

........**HTML Templates

............ --template1

.............--template2

i used this url to insert the mime.

SRC="`~urlmime`/99/mimeimage.gif" ALT="image not available"

The properties of the image is showing the following URL.

//servername:portnumber/sap/public/bc/its/mimes/99/MIMEIMAGE.gif

so i understand that the path is not correct. But where are the external images stored on importing them ? (on saving them as local objects)

regards

Prasad