Skip to Content
avatar image
Former Member

How to add Image dynamically in Webdynpro ABAP

Hi Experts,

How to add Image dynamically in Webdynpro ABAP.

My requirement is i maintain all the images in a table.

image source has to pick the table URl dynamically and display.

is that possible in webdynpro?

and also please give the suggesion,

without using MIME objects is that anyway to get images?

Thanks in advance.

Regrads,

Jeyanthi

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jun 08, 2009 at 06:18 AM

    Hi,

    are those icons wou want to display then. he following code will be useful.

    data : lo_IMG type ref to CL_WD_IMAGE.
    
    LO_IMG = cl_wd_IMAGE=>new_IMAGE( id = img_id SOURCE = 'ICON_BW_APD_TARGET' tooltip = sts_tltp ).
    
    lo_cont->add_child( the_child = lo_img ).

    here lo_cont is the container where you want to add the image dynamically and source is the attribiute through which you can change the ICON image. this thing you can getit from data base table and change accordingly.

    Regards,

    Anil kumar G

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 08, 2009 at 02:07 PM

    Images are just binary data (XSTRING) and as such can be stored in any database table. If you don't want to store in the MIME repository consider just creating a custom database table to hold the data. You can perform SQL on the table just like normal as well. Binary long strings really don't complicate the logic.

    Add comment
    10|10000 characters needed characters exceeded