Show TOC

Function documentationEvent GC_EVENT_NEXT and GC_EVENT_PREVIOUS for List GUIBBs

 

If you use buttons to toggle along the entries in a List UIBB, you should use these standard HR reporting events (see super class attributes AC_HRGRT_REPORTING_LIST_FEEDER), and call the super class method HANDLE_PREV_NEXT_EVENT, each time passing the appropriate event. This method ensures that the correct entry in your list is selected, based on whether the user has selected previous or next.

Example Example

Code example for handling previous and next buttons/events:

End of the example.

Syntax Syntax

  1. field-symbols : <lt_data> type standard table.
  2. assign ct_data to <lt_data>.
  3. CASE iv_eventid->mv_event_id.
  4. WHEN gc_event_next or gc_event_previous.
  5. 	call method me->handle_prev_next_event
  6. 		exporting
  7. 			iv_eventid                = iv_eventid
  8. 			iv_max_index              = lines( <lt data> )
  9. 		IMPORTING
  10. 			ev_selected_lines_changed = ev_selected_lines_changed
  11. 		changing
  12. 			ct_selected_lines         = ct_selected_lines
  13. 			cv_lead_index             = cv_lead_index
  14. ENDCASE.
End of the code.