10-06-2009 12:09 PM
Hello gurus,
I have 3 ALV's. All of them are using the same event class.
My problem is, whenever I include the event handle_data_change as one of my ALV events, the other events are ruined.
I.E. When I tick any icon on my toolbar, instead of going to event user_command, it goes to handle_data change.
Same thing happened to my other events (button_click, double_click etc). But when I remove this handle_data_change event, everything was working as expected.
Is there something I need to catch when using event handle_data_change? Please help me with this.
Regards,
Sheera
10-07-2009 8:16 AM
This might be caused by handling several ALVs in one handling method. How do you set handler for all these ALV instances?
Instead of using event handle_data_change try calling in PAI method check_changed_data directly to check if any updates were done on ALV.
[See example|http://abap-explorer.blogspot.com/2008/09/how-to-get-updated-data-from-editable.html].
Leave the rest as it is and check if that works.
Regards
Marcin
10-07-2009 9:53 AM
Hi Marcin,
Thanks for your reply.
I also have the check_data_change under my PAI. But I want my ALV to automatically respond to each input.
I.E. if user inputs a material, when ENTER is hit or cursor was clicked to another location, it will call my coding for checking the inputted material.
check_data_change only validates if data is correct. But what if I want to add more coding when checking the user input?
What method handles the data inputted by the user? I'm using class CL_GUI_ALV_GRID.
Regards,
Sheera