Skip to Content
0
Former Member
Jun 08, 2009 at 02:38 PM

Sorting with REUSE_ALV_GRID_DISPLAY

133 Views

We have an existing program that uses REUSE_ALV_GRID_DISPLAY to display information. This program has many buttons displayed on the ALV report and each button performs a certain procedure on the selected records in the subroutine called in parameter 'I_CALLBACK_USER_COMMAND'.

This does not always happen. It is a rare occurance. When the records as sorted in the ALV and then selected for processing, the ALV does not return the correct record number (index) in the 'SLIS_SELFIELD' structure (return parameter in 'I_CALLBACK_USER_COMMAND'). This leads to the procedure being applied to the wrong record.

Re-writting this program using the object oriented approach would involve significant coding effort. Is there a way to fix this problem in the current approach? Is this a problem with the standard SAP functionality that could be fixed with an OSS note?