Code: Alles auswählen.
if anhalten eq 'X'.
break <hier-dein-systemname>.
endif.
Code: Alles auswählen.
DATA wp_info TYPE tpda_wp_info.
DATA wp_cond TYPE tpda_wp_condition.
START-OF-SELECTION.
wp_info-varname = 'SY-INDEX'.
wp_info-vartype = 'INT4'.
wp_info-var_scope_type = 2.
wp_info-var_prg_info-program = sy-repid.
wp_cond-condition = 'SY-INDEX = 6'.
CALL METHOD cl_tpda_wp_services=>create_watchpoint
EXPORTING
p_wp_info = wp_info
p_wp_cond = wp_cond.