anchor.diff:                    CHANGING  cg_data = lv_enh_shtext ).
   
       io_xml->read( EXPORTING iv_name = 'BADI_DATA'
  -                  CHANGING  cg_data = lt_hook_definitions ).
  +                  CHANGING  cg_data = ls_abapgit_hook_def ).
   
       li_enh_object ?= ii_enh_spot_tool.
       li_enh_object_docu ?= ii_enh_spot_tool.
  
positive.code:     io_xml->add( ig_data = lv_enh_shtext
                   iv_name = 'SHORTTEXT' ).
  
      io_xml->add( ig_data = lt_hook_definitions
                   iv_name = 'BADI_DATA' ).
  
    ENDMETHOD.
  
negative.code:   METHOD lif_object_enhs~serialize.
  
      DATA: lo_hookdef_tool     TYPE REF TO cl_enh_tool_hook_def,
            lv_enh_shtext       TYPE string,
            li_enh_object_docu  TYPE REF TO if_enh_object_docu,
            lv_include_bound    TYPE enhboolean,
            ls_abapgit_hook_def TYPE ty_hook_def.
  
      lo_hookdef_tool ?= ii_enh_spot_tool.
  
      li_enh_object_docu ?= ii_enh_spot_tool.
      lv_enh_shtext = li_enh_object_docu->get_shorttext( ).
  
      ls_abapgit_hook_def-def_hooks = lo_hookdef_tool->get_hook_defs( ).
      lv_include_bound = lo_hookdef_tool->get_include_bound( ).
      lo_hookdef_tool->get_original_object(
        IMPORTING
          pgmid     = ls_abapgit_hook_def-pgmid
          obj_name  = ls_abapgit_hook_def-obj_name
          obj_type  = ls_abapgit_hook_def-obj_type
          main_type = ls_abapgit_hook_def-main_type
          main_name = ls_abapgit_hook_def-main_name
          program   = ls_abapgit_hook_def-program       ).
  
      io_xml->add( ig_data = ii_enh_spot_tool->get_tool( )
                   iv_name = 'TOOL' ).
  