Skip to Content
avatar image
Former Member

Inserting Image into HTML template

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Nov 11, 2006 at 10:30 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 11, 2006 at 01:33 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 23, 2006 at 02:54 PM

    Hi

    found the solution myself..

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

    regards,

    Prasad

    Add comment
    10|10000 characters needed characters exceeded