Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Group Footer Alternating Background Color

I have an alternating background color on my GF2, which works correctly using the code below in the section expert.  However when I add a new suppressed group (GH3/GF3) to the report, the alternating is not correct as it may skip a few instances of GF2, and then color 5 instances of GF2 in a row, etc.  GF2 is the only section that is not suppressed in the report.

How do I correct this?

if groupNumber mod 2 = 0 then color(235,235,235) else crNoColor


This is expected behavior.

Suppressed group does not mean it is not counted for GroupNumber function.

I would suggest to modify your formula as following:

numbervar a:=a+1;

if a mod 2 = 0 then color(235,235,235) else crNoColor

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question