anchor.diff:      IF delete_idoc_segment( ) = abap_false.
   
         lv_no_ask = abap_true.
  -      SELECT SINGLE tabclass FROM dd02l INTO lv_tabclass
  +      SELECT SINGLE tabname tabclass sqltab FROM dd02l
  +        INTO CORRESPONDING FIELDS OF ls_dd02l
           WHERE tabname = ms_item-obj_name
           AND as4local = 'A'
           AND as4vers = '0000'.
  -      IF sy-subrc = 0 AND lv_tabclass = 'TRANSP'.
  -
  -        " Avoid dump in dynamic SELECT in case the table does not exist on database
  -        CALL FUNCTION 'DB_EXISTS_TABLE'
  +      IF sy-subrc = 0 AND is_db_table_category( ls_dd02l-tabclass ) = abap_true.
  +
  +        CALL FUNCTION 'DD_EXISTS_DATA'
             EXPORTING
  -            tabname = lv_objname
  +            reftab          = ls_dd02l-sqltab
  +            tabclass        = ls_dd02l-tabclass
  +            tabname         = ls_dd02l-tabname
             IMPORTING
  -            subrc   = lv_subrc.
  -        IF lv_subrc = 0.
  -          " it cannot delete table with data without asking
  -          CREATE DATA lr_data TYPE (lv_objname).
  -          ASSIGN lr_data->* TO <lg_data>.
  -          SELECT SINGLE * FROM (lv_objname) INTO <lg_data>.
  -          IF sy-subrc = 0.
  -            lv_no_ask = abap_false.
  -          ENDIF.
  +            subrc           = lv_subrc
  +          EXCEPTIONS
  +            missing_reftab  = 1
  +            sql_error       = 2
  +            buffer_overflow = 3
  +            unknown_error   = 4
  +            OTHERS          = 5.
  +
  +        IF sy-subrc = 0 AND lv_subrc = 0.
  +          lv_no_ask = abap_false.
           ENDIF.
  +
         ENDIF.
   
         delete_ddic( iv_objtype = 'T'
  
positive.code:       deserialize_texts
          IMPORTING io_xml   TYPE REF TO zif_abapgit_xml_input
                    is_dd02v TYPE dd02v
          RAISING   zcx_abapgit_exception.
  
  ENDCLASS.
  
  
negative.code:                  ig_data = ls_extras ).
  
    ENDMETHOD.
  
  
    METHOD is_db_table_category.
  
      " values from domain TABCLASS
      rv_is_db_table_type = boolc( iv_tabclass = 'TRANSP'
                                OR iv_tabclass = 'CLUSTER'
                                OR iv_tabclass = 'POOL' ).
  
    ENDMETHOD.
  
  ENDCLASS.
  