Skip to Content
0
Former Member
Apr 07, 2010 at 05:40 AM

Mime logo not displaying

880 Views

Hi all,

I have a mime logo in datbase as ''/SAP/BC/fp/graphics/PUBLIC/GRAPHICS/j7l/bcol/logo.png''. I want to display this logo in my webdynpro UI element.

For this I am changing this into xstring format and set the image with xstring attribute. But I cann't able to display the image. It displays as X at runtime.

Can any one suggest me how to displat this image. I am also providing you my code as below:

DATA lo_nd_logo TYPE REF TO if_wd_context_node.

DATA lo_el_logo TYPE REF TO if_wd_context_element.

DATA ls_logo TYPE wd_this->element_logo.

DATA lv_image TYPE wd_this->element_logo-image.

lo_nd_logo = wd_context->get_child_node( name = wd_this->wdctx_logo ).

lo_el_logo = lo_nd_logo->get_element( ).

  • BREAK-POINT.

lv_image = zcl_hrasr00_process_utilities=>get_logo( ).

Here LV_IMAGE have the Xstring data.

  • set single attribute

lo_el_logo->set_attribute(

name = `IMAGE`

value = lv_image ).