cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Semantic Color property in Table UI Wendynpro ABAP

0 Kudos

Hi Friends,

I created the dynamic table and data population everything done.

But my requirement is I want to change the font colour based on the condition, i.e. semantic color property binding has to be done dynamically.

if I use bind_cell_design method of column, it is changing the background colour instead of font color.

Thanks

Anand

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi,

Following code will solve this.

Thanks

Ananda

Answers (1)

Answers (1)

former_member198833
Active Participant
0 Kudos

Hi Ananda,

Here follows the classes and methods to read and modify each element of the ALV:

Area

Class

Method

ALV output

IF_SALV_WD_
TABLE_SETTINGS

SET_DESIGN

GET_DESIGN

Column

CL_SALV_WD_
COLUMN

SET_CELL_DESIGN

GET_CELL_DESIGN

Cell variant

CL_SALV_WD_
CV_STANDARD

SET_CELL_DESIGN or
SET_CELL_DESIGN_FIELDNAME

GET_CELL_DESIGN or
GET_CELL_DESIGN_FIELDNAME

Cell

CL_SALV_WD_
UIE_TEXT_VIEW

SET_SEMANTIC_COLOR or
SET_SEMANTIC_COLOR_FIELDNAME

GET_SEMANTIC_COLOR or
GET_ SEMANTIC_COLOR_FIELDNAME

To learn more, please refer to:

Color of ALV Output, Columns, and Cells - Web Dynpro for ABAP - SAP Library

Regards,

Felipe

0 Kudos

Hello Felipe,

I am using Table UI. No issues. I got the solution.

Thanks for your reply.

Thanks

Ananda

former_member198833
Active Participant
0 Kudos

Hi Ananda,

That is great! Please share the solution with us and mark this thread as answered.

Regards,

Felipe