Changing Standard Functions
Use
The standard functions are not designed for specific applications. As a result, special knowledge of the data displayed cannot be considered. In individual cases, you may design a standard function - such as sorting by a specific column - more effectively in a specific application.
Process
-
Define an event handler method for event before_user_command. This event is triggered after the user has selected a function. This means that the ALV Grid Control passes control to the application before the function is executed. Using event parameter I_UCOMM you can restrict the function code to the function you want to modify.
-
Implement your own algorithm for the function within the event handler method. In this context, you can call methods of the ALV Grid Control.
-
Reset the function code to ensure that the standard function is no longer executed: