[ABAP] Breakpoints eines Programmes zur Laufzeit ermitteln

DATA: it_breakpoints TYPE STANDARD TABLE OF breakpoint.

CALL FUNCTION 'SYSTEM_DEBUG_BREAKPOINTS'
  EXPORTING
    main_program     = sy-repid
  TABLES
    breakpoints      = it_breakpoints
  EXCEPTIONS
    c_call_error     = 1
    wrong_parameters = 2
    OTHERS           = 3.

IF sy-subrc = 0.
  LOOP AT it_breakpoints ASSIGNING FIELD-SYMBOL(<fs_line>).
    WRITE: / <fs_line>-program, <fs_line>-line.
  ENDLOOP.
ENDIF.