anchor.diff:             FROM edisegment
              INTO lv_segment_type
              WHERE segtyp = lv_segment_type.
  -    IF sy-subrc <> 0.
  -      zcx_abapgit_exception=>raise( 'No IDoc segment' ).
  -    ENDIF.
  +    rv_is_idoc_segment = boolc( sy-subrc = 0 ).
   
     ENDMETHOD.
   
  
positive.code: 
  
  
  CLASS ZCL_ABAPGIT_OBJECT_TABL IMPLEMENTATION.
  
  
    METHOD check_is_idoc_segment.
  
      DATA lv_segment_type TYPE edilsegtyp.
  
  
negative.code:       CHANGING
          !ct_dd03p TYPE ty_dd03p_tt .
      "! Check if structure is an IDoc segment
      "! @parameter rv_is_idoc_segment | It's an IDoc segment or not
      METHODS is_idoc_segment
        RETURNING
          VALUE(rv_is_idoc_segment) TYPE abap_bool.
      METHODS clear_dd03p_fields_common
        CHANGING
          !cs_dd03p TYPE dd03p .
  