Application Development 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: 

Event handle_data_change is not working as expected

Former Member
0 Kudos

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

2 REPLIES 2

MarcinPciak
Active Contributor
0 Kudos

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

0 Kudos

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