cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the contents of a Result cell in a Crosstab

former_member544949
Participant
0 Kudos

crosstab-result-cell.png

Hi Experts,

Please see the attached file. In the able I have three cells for “Overall Result” and “Result”. I need to change the contents to “Grand Total” and “Total” respectively.

I am able to change the “Overall Result”to “Total” by following Tammy’s response through this link

https://archive.sap.com/discussions/thread/3668215

How can I change the “Result “ to “Total” ?

Actually I have more than 15 tables in which I need this change and in each table the “Overall Result” and/or “Result” cell position change. So I want to code such that in any table wherever there’s “Result” or “Overall Result” change it to “Total” or “Grand Total”.

Tammy’s solution perfectly works for “Overall Result” but how to access the “Result” cell in the table in my attached file.

Many thanks for your help

Accepted Solutions (1)

Accepted Solutions (1)

arijit_das
Active Contributor

Looks like you want to change the content of the text. Although css is not the right place to do so, you can try the following (does not work in IE, works in Chrome, Firefox):

.myCrosstab .sapzencrosstab-HeaderCellTotal>div{
	visibility:hidden;
	font-size: 1px;
}
.myCrosstab .sapzencrosstab-HeaderCellTotal>div:after{
	content: "Total";
	visibility: visible;
	display: block;
	font-size: 0.875rem;  	
}
.myCrosstab .sapzencrosstab-HeaderCellFirstInRow.sapzencrosstab-HeaderCellLastInCol>div{
	visibility:hidden;
	font-size: 1px;
}
.myCrosstab .sapzencrosstab-HeaderCellFirstInRow.sapzencrosstab-HeaderCellLastInCol>div:after{
	content: "Grand Total";
	visibility: visible;
	display: block;
	font-size: 0.875rem;  	
}
former_member544949
Participant
0 Kudos

Thanks Arijit.

Answers (3)

Answers (3)

kaka_g
Explorer
0 Kudos

For Crosstab, you can refer below code to change the text "Overall Result: to "Result"

.mycrosstab .sapzencrosstab-HeaderCellTotal:before{ content: "Result"; }

.mcrosstab .sapzencrosstab-HeaderCellTotal>div{ visibility:hidden; font-size: 1px; }

This will work in IE too.

pyagnik
Explorer
0 Kudos

Hi Arijit,

Used your CSS code and it's working in Chrome and FF. I tried to change for IE but it's not working. Any CSS code for IE?

Thank you,

TammyPowlas
Active Contributor
0 Kudos

Hello - following that link, the following should work for the results:

.sapzencrosstab-RowHeaderArea .sapzencrosstab-HeaderCellTotal, .sapzencrosstab-DataArea .sapzencrosstab-DataCellTotal{
background-color: #F0AB00;
}