Skip to Content
0
Former Member
Apr 29, 2009 at 12:06 PM

Changing ALV Subtotal Text..???

203 Views

Dear ABAP ers,

I have a question for you.

I am dealing with the event SUTOTAL_TEXT in ALV, to change sub total text in the screen?

But the event is not triggered and the control is not going to that FORM.

*****************************************************************************

FORM eventtab_build CHANGING lt_events TYPE slis_t_event.

CONSTANTS: gc_formname_subtotal_text TYPE slis_formname value 'SUBTOTAL_TEXT',

DATA: ls_event TYPE slis_alv_event.

CALL FUNCTION 'REUSE_ALV_EVENTS_GET'

EXPORTING

i_list_type = 0

IMPORTING

et_events = lt_events.

READ TABLE lt_events WITH KEY name = slis_ev_subtotal_text into ls_event.

if sy-subrc = 0.

move 'gc_formname_subtotal_text to ls_event-form.

append ls_event to lt_events.

endif.

ENDFORM.

*****************************************************************************

FORM alv.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

exporting

i_callback_program = g_repid

is_layout = gs_layout

it_fieldcat = gt_fieldcat[]

it_sort = gt_sort[]

it_events = gt_events[]

is_print = gs_print

tables

t_outtab = gt_output

exceptions

program_error = 1

others = 2.

if sy-subrc <> 0.

message id sy-msgid type sy-msgty number sy-msgno

with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

endif.

ENDFORM.

FORM subtotal_text CHANGING p_subtot_text TYPE slis_subtot_text.

BREAK-point.

ENDFORM. "subtotal_text

But the control is not coming to the above break-point.

ANY SUGGESTIONS FLOKS???

Srihari.