Application Development and Automation 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: 
Read only

SUBTOTAL_TEXT cannot be triggered

Former Member
0 Likes
938

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

9 REPLIES 9
Read only

Former Member
0 Likes
904

Hi,

can you share the code

Read only

RaymondGiuseppi
Active Contributor
0 Likes
904

Did you use the default parameter "sender" in every handling method signature, with this parameter you can set a single handler for an event with every occurrence of class, and in the method use a CASE sender. WHEN alv1. HEN alv2. ENDCASE syntax to manage each occurrence.

Regards,

Raymond

Read only

0 Likes
904

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

Read only

0 Likes
904

Are there totals/sub totals in both grid ?

Read only

0 Likes
904

Yes.

Read only

soumik_de2
Participant
0 Likes
904

Please provide the code ..............

Read only

0 Likes
904

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.

Read only

Former Member
0 Likes
904

I also tried SET HANDLER ... FOR ALL INSTANCES. Still only the SUBTOTAL_TEXT event of the second ALV triggered.

Read only

Former Member
0 Likes
904

discussion closed