I’m trying to display the last entry in the result table in color. Everything I’ve tried so far didn’t work with ABAP 7.00. Here is the code for displaying the SALV table.
DATA: lo_salv TYPE REF TO cl_salv_table,
gr_display TYPE REF TO cl_salv_display_settings.
SELECT * FROM zrechner INTO TABLE it_zrechres ORDER BY erstelldatum DESCENDING.
DATA: lr_custom_container TYPE REF TO cl_gui_custom_container.
CREATE OBJECT lr_custom_container
EXPORTING
container_name = 'CNT_SALV'.
cl_salv_table=>factory(
EXPORTING
r_container = lr_custom_container
IMPORTING
r_salv_table = lo_salv
CHANGING
t_table = it_zrechres ).
gr_display = lo_salv->get_display_settings( ).
gr_display->set_striped_pattern( value = 'X' ).
lo_salv->display( ).
ENDFORM. "display_salv_table_result