2023 Mar 14 12:58 PM
Hello ABAP developers,
In a Z-report we are calling ALV report by CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'. Within its parameter I_CALLBACK_USER_COMMAND we define reaction on user's action: doubleclick on certain cell of this (first) ALV report calls another (second, more detailed) ALV report, again created by the same CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'. And now: in this second ALV, any user's action leads to short dump MOVE_TO_LIT_NOTALLOWED_NODATA in form MARKS_SAVE in method LCL_EVENT_RECEIVER=>HANDLE_BEFORE_USER_COMMAND, because field symbol <L_BOX> has already been assigned and cannot be changed anymore.
Is there any technique how to cope with this and enable calling ALV "recurrently" - or at least twice?
Thank you for any hint.
Jaroslav Trnka
2023 Mar 14 4:42 PM
Rewrite the report using a modern technology like CL_SALV_TABLE. There's loads of blogs about it. So much easier than the FM.
2023 Mar 15 7:57 AM
Thank you, Matthew. Oo programming is not my cup of tea, but this could be an opportunity to break it through;-).
2023 Mar 15 10:14 AM
Give it a go. You won't regret it - and seriously, cl_salv_table is so much easier to use than the FM.