cancel
Showing results for 
Search instead for 
Did you mean: 

Set Attribute not working for icon

0 Kudos

Hi Experts,

I am new to Webdynpro and just started the WD development. Kinldy help me to relsove the below issue.

Scenario:

on change of the drop down(zzscope_risk), we need to set the icon(zzindicator - type icon_d) value dynamically. These custom fields are created in a stadard table and configured in SPRO which is displayed dynamically in view. For displaying, no code and attributes created.

Problem:

onselect of zzscope_risk the following code is executed but not working.

LV_SCOPE_ICON =  '@5B'.

CALL METHOD LO_EL_ITEM_ATTRIBUTES->SET_ATTRIBUTE

  EXPORTING

    VALUE  = LV_SCOPE_ICON

    NAME   = 'ZZINDICATOR'.

set_atttibute is working fine for other fields except icon. Is there anyother way to make this work? Please post you comments

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

This can be achieved by PPM configuration(SPRO). Enhancements are not required here.

Thanks All for you valuable comments.

Answers (1)

Answers (1)

former_member184578
Active Contributor
0 Kudos

Hi,

you missed closing @ it has to be '@5B@'  or you can use LV_SCOPE_ICON = 'ICON_LED_GREEN' 

hope this helps,

Regards,

Kiran

0 Kudos


H Kiran,

Sorry. That is just a typo erro while posting. Actually the value is '@5B@' only.

former_member184578
Active Contributor
0 Kudos

Hi,

It should work then. To which UI element you are setting the icon?

Regards,

Kiran

0 Kudos

Image UI element which is added dynamically from SPRO config.

former_member184578
Active Contributor
0 Kudos

Hi,

It works for image. Seems you have to implement the "Unified rendering Correction" SAP Note relevant to your netweaver version to fix this, or import the latest support pack.

Regards,

Kiran

ramakrishnappa
Active Contributor
0 Kudos

Hi Udaya,

Can you check if icon property would work for image field which is added statically? Create an image ui element in test component or check some standard component.

So that you would come to a conclusion, if its rendering issue? If so, as suggested go for implementing "Unified rendering correction" note .

Regards,

Rama