Skip to Content
0
Mar 22, 2010 at 12:11 PM

How Highlight a CELL on an ALV table

162 Views

Hi all!

I'm trying to do some checks on an input field of an ALV table component. But using REPORT_ATTRIBUTE_T100_MESSAGE it doesn't highlight the CELL of the row if the check hasn't been passed succesfully.

I've used this source code but nothing appears on the screen, no message and no cell highlighted. I put my source code for more information:

LOOP AT lt_data_mod INTO ls_data_mod.

  • alternative access via index

lo_el_n_empleado = lo_nd_n_empleado->get_element( index = ls_data_mod-index ).

  • CHECK VALUE

  • report message

CALL METHOD wd_comp_controller->go_message->report_attribute_t100_message

EXPORTING

msg = ls_msg

element = lo_el_n_empleado

attribute_name = ls_data_mod-attribute. " The name of input field that it is being modified

All that source code is in ON_DATA_CHECK event of ALV component.

Can anyone help me ?

Thanks!