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: 
          "USOBX_EXT
          io_xml->add( iv_name = 'USOBX_EXT'
                       ig_data = <lt_usobx_ext> ).
  
          "USOBT_EXT
          io_xml->add( iv_name = 'USOBT_EXT'
                       ig_data = <lt_usobt_ext> ).
  
        CATCH cx_root INTO lx_error.
          zcx_abapgit_exception=>raise_with_text( lx_error ).
      ENDTRY.
  
    ENDMETHOD.
  
  
    METHOD clear_metadata.
  
      DATA:
        BEGIN OF ls_empty_metadata,
          modifier  TYPE c LENGTH 12, " usob_sm-modifier
          moddate   TYPE d, " usob_sm-moddate,
          modtime   TYPE t, " usob_sm-modtime,
          srcsystem TYPE tadir-srcsystem,
          author    TYPE tadir-author,
          devclass  TYPE tadir-devclass,
        END OF ls_empty_metadata.
  
      FIELD-SYMBOLS:
        <ls_usobx>     TYPE any,
        <ls_usbot>     TYPE any,
        <ls_usobt_ext> TYPE any,
        <ls_usobx_ext> TYPE any.
  
      MOVE-CORRESPONDING ls_empty_metadata TO cs_data_head.
  
      LOOP AT ct_usobx ASSIGNING <ls_usobx>.
        MOVE-CORRESPONDING ls_empty_metadata TO <ls_usobx>.
      ENDLOOP.
  
      LOOP AT ct_usobt ASSIGNING <ls_usbot>.
        MOVE-CORRESPONDING ls_empty_metadata TO <ls_usbot>.
      ENDLOOP.
  
      LOOP AT ct_usobt_ext ASSIGNING <ls_usobt_ext>.
        MOVE-CORRESPONDING ls_empty_metadata TO <ls_usobt_ext>.
      ENDLOOP.
  
      LOOP AT ct_usobx_ext ASSIGNING <ls_usobx_ext>.
        MOVE-CORRESPONDING ls_empty_metadata TO <ls_usobx_ext>.
      ENDLOOP.
  
    ENDMETHOD.
  
  ENDCLASS.
  