Hi Burak,
based on your condition for
İf WHOUR-Subtotal>100 and AHOUR-Subtotal<80
that cell is red color.
write these code logic in your program, add a variable
LINE_COLOR(04), " For colorin your structure you have used for output
and add these code line to your existing data.
DATA: LD_COLOR TYPE C.
PERFORM SUB_LAYOUT.
FORM SUB_LAYOUT .
S_LAYOUT-DETAIL_POPUP = 'X'.
S_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
S_LAYOUT-INFO_FIELDNAME = 'LINE_COLOR'.
ENDFORM.
LOOP AT ITAB INTO WA_ITAB.
IF WA_ITAB-value GT'60' AND WA_ITAB-FIELD LT'100'.
LD_COLOR = 1.
.ENDLOOP.
CONCATENATE 'C' LD_COLOR '10' INTO WA_ITAB-LINE_COLOR.