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: 

Problem with event Data change finished

Former Member
0 Kudos
934

Hello All,

I have a problem with the event data_change_finished. I am generating an ALV grid. The key colomn in the Grid has a HOT-SPOT and i have handle the HOT_SPOT. Now i have placed another colomn as editable and also handled the event DATA_CHANGED_FINISHED for the changes and it is working fine.

But when i click on the HOT-SPOT on the key colomn, first the DATA_CHANGED_FINISHED event is getting triggered and then the HOT_SPOT_CLICK ebent is getting triggered.

Can some one please let me know what could have gone wrong?

Thanks in Advance.

Thanks & regards,

Y Gautham

3 REPLIES 3

Former Member
0 Kudos
181

Check the SET HANDLER statements sequenece. it should be first handler for data_change and then for hotspot.

example:

FORM f0701_cre_obj_screen_9000 .

  • Subroutine for creation of container and ALV grid

IF g_alv_container_9000 IS INITIAL.

CREATE OBJECT g_alv_container_9000

EXPORTING

container_name = g_container_1.

CREATE OBJECT g_alv_grid_9000

EXPORTING

i_parent = g_alv_container_9000

EXCEPTIONS

error_cntl_create = 1

error_cntl_init = 2

error_cntl_link = 3

error_dp_create = 4

OTHERS = 5.

IF sy-subrc <> 0.

LEAVE TO CURRENT TRANSACTION.

ENDIF.

ENDIF.

CREATE OBJECT g_event_receiver.

SET HANDLER g_event_receiver->handle_hotspot_click FOR g_alv_grid_9000.

SET HANDLER g_event_receiver->handle_data_changed

FOR g_alv_grid_9000.

ENDFORM. " F0701_CRE_OBJ_SCREEN_9001

thanks.

0 Kudos
181

Hi,

the sequence of registring has been same as you have mentioned. But still the problem persists!!! Is there anything which could have gone wrong.

Thanks & reagrds,

y Gautham

0 Kudos
181

Hi,

Check the class definition and implemetation sequence.

Or else try to analysis why this is happening by debugging the code.

thanks.