Skip to Content
0
Former Member
Jan 30, 2009 at 10:31 PM

EVENT subtotal_text ALV OO

114 Views

I need display subtotals text in ALV . I am using the Event:

FOR EVENT subtotal_text OF cl_gui_alv_grid

IMPORTING es_subtottxt_info

ep_subtot_line

e_event_data.

but the problem is that it is not triggered

Please help me!!! Someone have a solution? It doesn't display any text.

My code is :

METHOD subtotal_text.

PERFORM event_subtotal_text USING es_subtottxt_info

ep_subtot_line

e_event_data.

ENDMETHOD. "subtotal_text

----


FORM event_subtotal_text USING es_subtottxt_info TYPE lvc_s_stxt

ep_subtot_line TYPE REF TO data

e_event_data TYPE REF TO cl_alv_event_data.

break mmalarconv.

FIELD-SYMBOLS: <fs_text> TYPE ANY.

IF es_subtottxt_info-criteria = 'BUKRS'.

ASSIGN e_event_data->m_data->* TO <fs_text>.

<fs_text> = 'Subtotal Company'.

ENDIF.

ENDFORM. " d0100_event_subtotal_text