Skip to Content
avatar image
Former Member

change color for key figures?

Dear SAP Expert,

My expectation is to change color for key fig 'Dieu chinh so luong tien dieu hoa' when thí key fig has value different from 0. my psuedo code like this:

  If

     'Dieu chinh so luong tien dieu hoa' <> 0

  

      change default color of 'Dieu chinh so luong tien dieu hoa' into red color at detail location.

end if

Please show me how to implement this macro in sap snp

thanks so much

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 04, 2012 at 04:05 AM

    Pl check the following pseudo code -

    Step 1: Iterations from initial through entire horizon

      If

         'Dieu chinh so luong tien dieu hoa' <> 0

      

          ROW['Dieu chinh so luong tien dieu hoa' ] (attributes) =

                   CELL_BG( 6 );

    else

          ROW['Dieu chinh so luong tien dieu hoa' ] (attributes) =

                   CELL_BG( 0 );

    end if

    This code will color a specific cell red based on the condition check. If you wish to color entire row, then use ROW_BG macro function.

    e.g.

    Add comment
    10|10000 characters needed characters exceeded