hi,
Do it with interactive alv.
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN '&IC1'.
READ TABLE IT_final INTO WA_final INDEX RS_SELFIELD-TABINDEX.
if "give ur condition here.
MESSAGE 'error' type 'E'. "ur message
endif.
Regards -
Makarand