additional field validation
for example - I have a table element and one of its coloums is of type TIME. The automatic field validation (only valid times allowed) is working fine, but now i need to check that only full and half hours are entered. So if the user enteres "11:11" in a row I want this input-cell to be displayed with a red border and a message to be displayed.
I can check and show a message, but how to highlight that special cell?
Can I assign additional value checks to a context node and how to do this?
Whats the best approach?
Thanks for any help,
Uday Gubbala replied
As how pointed out by Karri you can make use of the report_attribute_error_message to throw an error message and highlight a particular cell of the table as well. Try going through this [link|editable ALV - how to throw an error message for a specific line & field; in which Andreas was trying to validate & highlight an ALV's cell with the same report_attribute_error_message.
CALL METHOD lo_message_manager->report_attribute_error_message EXPORTING message_text = 'Sample message text' element = lr_element " Reference of type if_wd_context_element to the cell u want to highlight attribute_name = ls_modified_cells-attribute. " The context attribute name to which the column of this cell is bound to