anchor.diff:      " requests. If true then we set the default task, so that no annoying
       " transport request popups are shown while deserializing.
   
  -    DATA: li_package TYPE REF TO if_package,
  -          lt_e071    TYPE STANDARD TABLE OF e071,
  -          lt_e071k   TYPE STANDARD TABLE OF e071k,
  -          lv_order   TYPE trkorr,
  -          lv_task    TYPE trkorr.
  +    DATA: lv_order TYPE trkorr,
  +          lv_task  TYPE trkorr.
   
       IF mv_task_is_set_by_abapgit = abap_true.
         " the default transport request task is already set by us
  
positive.code: 
    METHOD reset.
  
      DATA: lt_e070use TYPE STANDARD TABLE OF e070use.
  
      IF mv_task_is_set_by_abapgit = abap_false.
        " if the default transport request task isn't set
  
negative.code:       zcx_abapgit_exception=>raise( |Error from TR_TASK_SET { sy-subrc }| ).
      ENDIF.
  
    ENDMETHOD.
  
  
    METHOD call_transport_order_popup.
  
      DATA: lt_e071  TYPE STANDARD TABLE OF e071,
            lt_e071k TYPE STANDARD TABLE OF e071k.
  
      CLEAR: ev_order,
             ev_task.
  
      CALL FUNCTION 'TRINT_ORDER_CHOICE'
        IMPORTING
          we_order               = ev_order
          we_task                = ev_task
        TABLES
          wt_e071                = lt_e071
          wt_e071k               = lt_e071k
        EXCEPTIONS
          no_correction_selected = 1
          display_mode           = 2
          object_append_error    = 3
          recursive_call         = 4
          wrong_order_type       = 5
          OTHERS                 = 6.
  
      IF sy-subrc = 1.
        zcx_abapgit_exception=>raise( 'cancelled' ).
      ELSEIF sy-subrc > 1.
        zcx_abapgit_exception=>raise( |Error from TRINT_ORDER_CHOICE { sy-subrc }| ).
      ENDIF.
  
    ENDMETHOD.
  
  
    METHOD are_objects_recorded_in_tr_req.
  
      DATA: li_package TYPE REF TO if_package.
  
      cl_package_factory=>load_package(
        EXPORTING
          i_package_name             = iv_package
        IMPORTING
          e_package                  = li_package
        EXCEPTIONS
          object_not_existing        = 1
          unexpected_error           = 2
          intern_err                 = 3
          no_access                  = 4
          object_locked_and_modified = 5
          OTHERS                     = 6 ).
  
      IF sy-subrc <> 0.
        zcx_abapgit_exception=>raise( |Error from CL_PACKAGE_FACTORY=>LOAD_PACKAGE { sy-subrc }| ).
      ENDIF.
  
      rv_are_objects_recorded = li_package->wbo_korr_flag.
  
    ENDMETHOD.
  
  
    METHOD clear_default_task.
  
        CALL FUNCTION 'TR_TASK_RESET'
          EXPORTING
            iv_username      = is_default_task-username
            iv_order         = is_default_task-ordernum
            iv_task          = is_default_task-tasknum
            iv_dialog        = abap_false
          EXCEPTIONS
            invalid_username = 1
            invalid_order    = 2
            invalid_task     = 3
            OTHERS           = 4.
  
        IF sy-subrc <> 0.
          zcx_abapgit_exception=>raise( |Error from TR_TASK_RESET { sy-subrc }| ).
        ENDIF.
  
    ENDMETHOD.
  
  ENDCLASS.
  