Skip to Content
author's profile photo Former Member
Former Member

set only one field color in a POWL-List

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

powl_color.PNG (8.1 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2015 at 06:14 AM

    Hi Jim.

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

    BR

    Per

    Add a comment
    10|10000 characters needed characters exceeded

    • 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.

      color1.jpg (13.3 kB)
      color2.jpg (14.2 kB)
      color3.jpg (59.1 kB)
      color4.jpg (93.0 kB)

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.