CHANGE WORDS COLOR IN REUSE ALV SAP ABAP / REUSE ALV'DE YAZI RENGİ DEĞİŞTİRME


Add ROWCOLOR into your structure. Data type has to be char 4.





*Table Declarations
data gt_data like table of zmm_s_fields,
       gs_data like line of gt_data.


*Alv Declarations
data st_layout type slis_layout_alv.




Than write this lines under reuse_alv_fieldcatalog_merge declaration:
st_layout-info_fieldname 'ROWCOLOR'.

  loop at gt_data into gs_data.
    gs_data-rowcolor 'C601'.
    modify gt_data from gs_data transporting rowcolor.
  endloop.



I used 'C601'.If you want you can change it. Like 'C401', 'C501'...


After all, your Alv screen will seem like that.





Alara Umdu - SAP ABAP Developer










Yorumlar