anchor.diff:          !iv_tabclass               TYPE dd02l-tabclass
         RETURNING
           VALUE(rv_is_db_table_type) TYPE dd02l-tabclass .
  +    METHODS clear_foreign_keys
  +      CHANGING
  +        !ct_dd08v TYPE ty_dd08v_tt.
   ENDCLASS.
   
   
  
positive.code: 
        " DDIC Step: Remove references to search helps and foreign keys
        IF iv_step = zif_abapgit_object=>gc_step_id-ddic.
          CLEAR: lt_dd08v, lt_dd35v, lt_dd36m.
        ENDIF.
  
        IF iv_step = zif_abapgit_object=>gc_step_id-late
  
negative.code:   ENDMETHOD.
  
  
    METHOD clear_foreign_keys.
  
      DATA:
        ls_item  TYPE zif_abapgit_definitions=>ty_item,
        lv_index TYPE sy-tabix.
  
      FIELD-SYMBOLS <ls_dd08v> TYPE dd08v.
  
      " Remove foreign key definitions where the check table/view does not exist (yet)
      LOOP AT ct_dd08v ASSIGNING <ls_dd08v>.
        lv_index = sy-tabix.
        ls_item-obj_name = <ls_dd08v>-checktable.
        ls_item-obj_type = 'TABL'.
        IF zcl_abapgit_objects=>exists( ls_item ) = abap_false.
          ls_item-obj_type = 'VIEW'.
          IF zcl_abapgit_objects=>exists( ls_item ) = abap_false.
            DELETE ct_dd08v INDEX lv_index.
          ENDIF.
        ENDIF.
      ENDLOOP.
  
    ENDMETHOD.
  
  
    METHOD delete_extras.
  
      DELETE FROM tddat WHERE tabname = iv_tabname.
  