cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro for ABAP alv table cell color

Former Member
0 Kudos

Hello,

I have a question about Web Dynpro for ABAP and ALV. I want to change the color of one cell as yellow. how to do it??

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member210621
Participant
0 Kudos

Hi,

here is the steps to make colored cell in ALV Table.

1. Navigate to the Context Node.

2. Instantiate the used components.

3. Call method Get Model used in the Used Controller.

4. get all the columns attributes containing settings details.

5. use set_cell_design method to change the color of the particular cell.

Use Column-id attribute to identify the column u want to change color.

Thank you...

ajoy_chakraborty
Participant
0 Kudos

Please check:

Former Member
0 Kudos

in that method possible colors are

cellDesign: badvalue_dark

CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-BADVALUE_DARK

cellDesign: badvalue_light

CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-BADVALUE_LIGHT

cellDesign: badvalue_medium

CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-BADVALUE_MEDIUM

cellDesign: criticalvalue_dark

CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-CRITICALVALUE_DARK

cellDesign: criticalvalue_light

CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-CRITICALVALUE_LIGHT

cellDesign: criticalvalue_medium

CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-CRITICALVALUE_MEDIUM

cellDesign: goodvalue_dark

CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-GOODVALUE_DARK

cellDesign: goodvalue_light

CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-GOODVALUE_LIGHT

cellDesign: goodvalue_medium

CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-GOODVALUE_MEDIUM

cellDesign: group_level1

CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-GROUP_LEVEL1

cellDesign: group_level2

CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-GROUP_LEVEL2

cellDesign: group_level3

CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-GROUP_LEVEL3

cellDesign: key_medium

CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-KEY_MEDIUM

cellDesign: negative

CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-NEGATIVE

cellDesign: positive

CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-POSITIVE

cellDesign: standard

CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-STANDARD

not able to set column color as yellow....

Former Member
0 Kudos

based on that information not able to set alv table cell color as yellow.... suggest some other post....

former_member199125
Active Contributor
0 Kudos

Check this

http://wiki.sdn.sap.com/wiki/display/Snippets/ABAPWebDynproALV-ChangeCellColourbasedonContent

Regards

Srinivas