cancel
Showing results for 
Search instead for 
Did you mean: 

set only one field color in a POWL-List

Former Member
0 Kudos

Hi,

in the method "IF_POWL_FEEDER~GET_FIELD_CATALOG" the whole colume (see attachment) can be colored.


CASE <ls_dfies>-fieldname.

       WHEN 'LANGU'.

         ls_fieldcat-colpos         = 1.

         ls_fieldcat-display_type  = 'BT'.

         ls_fieldcat-color  = 19.

         ls_fieldcat-WIDTH  = '800'.

         ls_fieldcat-text_ref      = 'LANGU'.

       WHEN 'CHANGED_ICON'.

         ls_fieldcat-icon_src_ref  = <ls_dfies>-fieldname.

         ls_fieldcat-display_type  = 'IM'.   "Icon

         ls_fieldcat-tooltip       text-006.

         ls_fieldcat-color         = '4'.

..... 

But how can I colorize  only one field in the POWL.

Regards

Jim

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member

Hi Jim.

Would you be so kind and post your solution to this question?

BR

Per

0 Kudos

Hi Per.

One solution could be the next:

1. Add one field for color reference to your POWL structure. For example COLOR_REF type string.

2. Into the method GET_FIELDCAT_CATALOG set the property TECHNICAL_COL:

3. And then set the field which you need to change the color with reference to the COLOR_REF field into the same method:

4. Finally, fill the field COLOR_REF into the method GET_OBJECTS with the color value you need, depending on other values, such a item status:

This configuration results in the image below:

Regards.