Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Dump in repeated (recurrent) call of an ALV report

jarda_trnka_cz
Explorer
0 Kudos
372

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

3 REPLIES 3

matt
Active Contributor
310

Rewrite the report using a modern technology like CL_SALV_TABLE. There's loads of blogs about it. So much easier than the FM.

jarda_trnka_cz
Explorer
310

Thank you, Matthew. Oo programming is not my cup of tea, but this could be an opportunity to break it through;-).

matt
Active Contributor
0 Kudos
310

Give it a go. You won't regret it - and seriously, cl_salv_table is so much easier to use than the FM.