Wednesday, March 20, 2013

ALV Color Coded


Below is color code for ALV. I'm using ALV OOO to generate this color.


  DATAlr_columns TYPE REF TO cl_salv_columns,
        lr_column  TYPE
 REF TO cl_salv_column_table.
*  Set Color
  
TRY.
      
DATAls_color TYPE lvc_s_colo.                      
      lr_column ?lr_columns
->get_column'DMBTR' ).
      ls_color
-col 4"greyblue_int
      ls_color-int 
1.
      ls_color-inv 
0.
      lr_column
->set_color( ls_color ).
    
CATCH cx_salv_not_found.                           
  ENDTRY.

No comments:

Post a Comment