2008 Dec 11 7:16 AM
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
2008 Dec 11 7:29 AM
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.
2008 Dec 11 7:39 AM
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
2008 Dec 11 7:50 AM
Hi,
Check the class definition and implemetation sequence.
Or else try to analysis why this is happening by debugging the code.
thanks.