Hi guys,
I think I do everything right, but I have still this problem - subtotal text doesn't show up.
What I did:
1) name of the FORM with SUBTEXT modification INTO event table of ALV
FORM EVENT_CALL.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = V_EVENTS
READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'SUBTOTAL_TEXT'.
IF sy-subrc = 0.
WA_EVENT-FORM = 'SUBTOTAL_TEXT'.
MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
WA_EVENT-NAME.
ENDIF.
ENDFORM.
...
...
...
FORM DISPLAY_ALV_REPORT.
V_REPID = SY-REPID.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_REPID
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
I_GRID_TITLE = I_TITLE_EKKO
IT_FIELDCAT = I_FIELDCAT[]
I_SAVE = 'A'
IT_EVENTS = V_EVENTS
TABLES
T_OUTTAB = IT_EKKO .
ENDFORM.
this works fine.. in the EVENT table is that text - 'SUBTOTAL_TEXT'
2) I wrote a FORM for SUBTOTAL_TEXT
FORM SUBTOTAL_TEXT USING p_subtot_text TYPE slis_subtot_text. READ TABLE IT_EKKO INTO WA_EKKO WITH KEY PSPHI = p_subtot_text-criteria. p_subtot_text-display_text_for_subtotal = WA_EKKO-POPIS. ENDFORM. "subtotal_text
I can't say if this works fine, because this part is "inactive".. I put a breakpoint here, but debugging window never showed up.. how is this possible? It seems that something is wrong with event's calling
thanks for your reply