Do you use CL_GUI_ALV_GRID, if yes you could handle events BEFORE_USER_COMMAND or USER_COMMAND to "intercept" or "append" standard functions. With the before method you could if required reset the function code to prevent standard code execution.
(Reference: Changing Standard Functions in ALV Grid Control.)
Regards,
Raymond