2013 Sep 26 6:00 AM
Hi,
I have two OOPS ALVs on the same screen and registered an event handler to each of the them. As to the SUBTOTAL_TEXT event, only one ALV can trigger it and the other cannot. Would you please provide any hint to solve the problem?
Best regards,
ts
Hi,
can you share the code
2013 Sep 26 6:59 AM
2013 Sep 26 7:04 AM
2013 Sep 26 8:04 AM
Yes. I also set break-point just at the beginning of the SUBTOTAL_TEXT method. So, it should be triggered under whichever circumstance.
Regards,
ts
2013 Sep 26 8:29 AM
2013 Sep 26 8:30 AM
2013 Sep 26 7:13 AM
2013 Sep 26 8:07 AM
CREATE OBJECT EVENT_HANDLER_LEFT EXPORTING INDICATOR = 'L'.
CALL METHOD CI_ALV_GRID_L->REGISTER_EDIT_EVENT
EXPORTING I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED
EXCEPTIONS ERROR = 1
OTHERS = 2.
CALL METHOD CI_ALV_GRID_R->REGISTER_EDIT_EVENT
EXPORTING I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_ENTER
EXCEPTIONS ERROR = 1
OTHERS = 2.
SET HANDLER ...
EVENT_HANDLER_LEFT->HANDLE_SUBTOTAL_TEXT
FOR CI_ALV_GRID_L.
2013 Sep 27 6:19 AM
I also tried SET HANDLER ... FOR ALL INSTANCES. Still only the SUBTOTAL_TEXT event of the second ALV triggered.
2013 Sep 27 6:34 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |