anchor.diff:    PROTECTED SECTION.
   
     PRIVATE SECTION.
  +    METHODS clear_metadata
  +      CHANGING
  +        cs_data_head TYPE any
  +        ct_usobx     TYPE table
  +        ct_usobt     TYPE table
  +        ct_usobx_ext TYPE table
  +        ct_usobt_ext TYPE table.
  +
   ENDCLASS.
   
   
  
positive.code:               EXPORTING
                  iv_key       = ls_key
                IMPORTING
                  es_head      = <ls_data_head>
                  et_usobx     = lt_usobx
                  et_usobt     = lt_usobt
                  et_usobx_ext = <lt_data_usobx_ext>
                  et_usobt_ext = <lt_data_usobt_ext>.
            CATCH cx_static_check INTO lr_err.
              zcx_abapgit_exception=>raise_with_text( lr_err ).
          ENDTRY.
  
          "HEAD
          io_xml->add( iv_name = 'HEAD'
                       ig_data = <ls_data_head> ).
  
          "USOBX
          io_xml->add( iv_name = 'USOBX'
  
negative.code:   METHOD zif_abapgit_object~serialize.
  
      DATA:
        ls_key       TYPE usobkey,
        lo_su22      TYPE REF TO object,
        lt_usobx     TYPE usobx_t,
        lt_usobt     TYPE usobt_t,
        lr_head      TYPE REF TO data,
        lr_usobx_ext TYPE REF TO data,
        lr_usobt_ext TYPE REF TO data,
        lr_err       TYPE REF TO cx_static_check,
        lx_error     TYPE REF TO cx_root.
  
  
      FIELD-SYMBOLS: <ls_head>      TYPE any,
                     <lt_usobx_ext> TYPE ANY TABLE,
                     <lt_usobt_ext> TYPE ANY TABLE.
  
      ls_key = ms_item-obj_name.
  
      TRY.
          CREATE DATA lr_head TYPE ('IF_SU22_ADT_OBJECT=>TS_SU2X_HEAD').
          ASSIGN lr_head->* TO <ls_head>.
  
          CREATE DATA lr_usobx_ext TYPE ('IF_SU22_ADT_OBJECT=>TT_SU2X_X').
          ASSIGN lr_usobx_ext->* TO <lt_usobx_ext>.
  
          CREATE DATA lr_usobt_ext TYPE ('IF_SU22_ADT_OBJECT=>TT_SU2X_T').
          ASSIGN lr_usobt_ext->* TO <lt_usobt_ext>.
  
          CREATE OBJECT lo_su22
            TYPE ('CL_SU22_ADT_OBJECT').
  