cancel
Showing results for 
Search instead for 
Did you mean: 

Modify Web Report Cell Contents not working for exception Cells

Former Member
0 Kudos

Hi,

I have a web report that has exceptions in it. When I use the CHARACTERISTIC_CELL method to bold a row of cells it works fine for the cells without an exception. Cells with exceptions seem unaffected. When looking at the HTML I do see my applied bold style, but I'm guessing it's getting overridden by the exception class class="SAPBEXexcBad9"? This makes the cell red without bold So I'm trying to keep it red, but make it bold.

Anyone know why I can't override the bold in an exception cell?

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I can't seem to get this to work. Can you provide an example? here's what I've done. I just want to add the bold style to the cells in a specific row. but, I still want to keep the execption cell color...

Thanks!

DATA: MYSTYLE1 TYPE STRING.

CONCATENATE 'Style=' '"FONT-WEIGHT: bold;"' INTO MYSTYLE1.

CASE N_DATA_PROVIDER_NAME.

WHEN 'DATAPROVIDER_1'.

IF N_ITEM_NAME = 'TABLE_1'.

IF I_Y = 1.

C_CELL_TD_EXTEND = MYSTYLE1.

C_CELL_STYLE = MYSTYLE1.

ENDIF.

ENDIF.

ENDCASE.

Former Member
0 Kudos

Hi,

I would try it this way

DATA: MYSTYLE1 TYPE STRING,

replace_string type string.

CONCATENATE 'Style=' '"FONT-WEIGHT: bold;"' INTO MYSTYLE1.

CASE N_DATA_PROVIDER_NAME.

WHEN 'DATAPROVIDER_1'.

IF N_ITEM_NAME = 'TABLE_1'.

IF I_Y = 1.

C_CELL_TD_EXTEND = MYSTYLE1.

concatenate mystyle1 ' class="' into replace_string.

REPLACE ALL OCCURRENCES OF 'class="' IN c_cell_content with replace_string IGNORING CASE

ENDIF.

ENDIF.

ENDCASE.

(I didn't check the syntax of the program snippet. But the idea is to add to every inside class attribute the style attribute).

Heike

Former Member
0 Kudos

You made my day! I will try this right away!

Former Member
0 Kudos

My previous post was wrong. I am using method DATA_CELL and the parameter C_CELL_TD_EXTEND to add the bold style

Style=' '"FONT-WEIGHT: bold;

Former Member
0 Kudos

Hi,

this is because you probably enabled navigation. in the anchor-Tag for the context-menu the style class is also written in the <a>-Tag if it's an exception cell. In this case extend the c_cell_contents anchor tag also with your style attribute.

Heike