anchor.diff:          reps_not_exist    = 2
           OTHERS            = 3.
       IF sy-subrc <> 0.
  -      " Inactive version
  -      CALL FUNCTION 'TYPD_GET_OBJECT'
  -        EXPORTING
  -          typdname          = lv_typdname
  -          r3state           = 'I'
  -        TABLES
  -          psmodisrc         = lt_psmodisrc
  -          psmodilog         = lt_psmodilog
  -          psource           = et_source
  -          ptrdir            = lt_ptrdir
  -        EXCEPTIONS
  -          version_not_found = 1
  -          reps_not_exist    = 2
  -          OTHERS            = 3.
  -    ENDIF.
  -    IF sy-subrc <> 0.
  -      RAISE EXCEPTION TYPE zcx_abapgit_not_found.
  +      zcx_abapgit_exception=>raise( |No active version found for { ms_item-obj_type } { ms_item-obj_name }| ).
       ENDIF.
   
     ENDMETHOD.
  
positive.code:           lt_source TYPE abaptxt255_tab.
  
  
      TRY.
          read( IMPORTING
                  ev_ddtext = lv_ddtext
                  et_source = lt_source ).
        CATCH zcx_abapgit_not_found.
          RETURN.
      ENDTRY.
  
      io_xml->add( iv_name = 'DDTEXT'
                   ig_data = lv_ddtext ).
  
negative.code: 
    METHOD zif_abapgit_object~exists.
  
      DATA: lv_progname TYPE progname,
            lv_state    TYPE r3state.
  
      lv_progname = |%_C{ ms_item-obj_name }|.
      SELECT SINGLE state
        FROM progdir
        INTO lv_state
        WHERE name = lv_progname.
      IF lv_state IS NOT INITIAL.
        rv_bool = abap_true.
      ENDIF.
  
    ENDMETHOD.
  
  