INTERFACE zif_gtt_mia_app_constants
  PUBLIC .


  CONSTANTS:
    BEGIN OF cs_tabledef,
      md_material_header  TYPE /saptrx/strucdatadef VALUE 'MATERIAL_HEADER',
      md_material_segment TYPE /saptrx/strucdatadef VALUE 'MATERIAL_SEGMENT',
      md_update_control   TYPE /saptrx/strucdatadef VALUE 'UPDATE_CONTROL',
      dl_header_new       TYPE /saptrx/strucdatadef VALUE 'DELIVERY_HEADER_NEW',
      dl_header_old       TYPE /saptrx/strucdatadef VALUE 'DELIVERY_HEADER_OLD',
      dl_hdr_status_new   TYPE /saptrx/strucdatadef VALUE 'DELIVERY_HDR_STATUS_NEW',
      dl_hdr_status_old   TYPE /saptrx/strucdatadef VALUE 'DELIVERY_HDR_STATUS_OLD',
      dl_item_new         TYPE /saptrx/strucdatadef VALUE 'DELIVERY_ITEM_NEW',
      dl_item_old         TYPE /saptrx/strucdatadef VALUE 'DELIVERY_ITEM_OLD',
      dl_partners_new     TYPE /saptrx/strucdatadef VALUE 'PARTNERS_NEW',
      dl_partners_old     TYPE /saptrx/strucdatadef VALUE 'PARTNERS_OLD',
      dl_itm_status_new   TYPE /saptrx/strucdatadef VALUE 'DELIVERY_ITEM_STATUS_NEW',
      dl_itm_status_old   TYPE /saptrx/strucdatadef VALUE 'DELIVERY_ITEM_STATUS_OLD',
      dl_hu_item_new      TYPE /saptrx/strucdatadef VALUE 'HU_ITEM_NEW',
      dl_hu_item_old      TYPE /saptrx/strucdatadef VALUE 'HU_ITEM_OLD',
      sh_header_new       TYPE /saptrx/strucdatadef VALUE 'SHIPMENT_HEADER_NEW',
      sh_header_old       TYPE /saptrx/strucdatadef VALUE 'SHIPMENT_HEADER_OLD',
      sh_item_new         TYPE /saptrx/strucdatadef VALUE 'SHIPMENT_ITEM_NEW',
      sh_item_old         TYPE /saptrx/strucdatadef VALUE 'SHIPMENT_ITEM_OLD',
      sh_stage_new        TYPE /saptrx/strucdatadef VALUE 'SHIPMENT_LEG_NEW',
      sh_stage_old        TYPE /saptrx/strucdatadef VALUE 'SHIPMENT_LEG_OLD',
      sh_item_stage_new   TYPE /saptrx/strucdatadef VALUE 'SHIPMENT_ITEM_LEG_NEW',
      sh_item_stage_old   TYPE /saptrx/strucdatadef VALUE 'SHIPMENT_ITEM_LEG_OLD',
      sh_delivery_header  TYPE /saptrx/strucdatadef VALUE 'DELIVERY_HEADER',
      sh_delivery_item    TYPE /saptrx/strucdatadef VALUE 'DELIVERY_ITEM',
    END OF cs_tabledef .
  CONSTANTS:
    BEGIN OF cs_system_fields,    "delete?
      actual_bisiness_timezone TYPE /saptrx/paramname VALUE 'ACTUAL_BUSINESS_TIMEZONE',
      actual_bisiness_datetime TYPE /saptrx/paramname VALUE 'ACTUAL_BUSINESS_DATETIME',
    END OF cs_system_fields .
  CONSTANTS:
    BEGIN OF cs_trxcod,
      dl_number   TYPE /saptrx/trxcod VALUE 'FT1_IN_DELIVERY',
      dl_position TYPE /saptrx/trxcod VALUE 'FT1_IN_DELIVERY_ITEM',
      sh_number   TYPE /saptrx/trxcod VALUE 'FT1_SHIPMENT',
      sh_resource TYPE /saptrx/trxcod VALUE 'FT1_RESOURCE',
      fu_number   TYPE /saptrx/trxcod VALUE 'FT1_FREIGHT_UNIT',
    END OF cs_trxcod .
  CONSTANTS:
    BEGIN OF cs_milestone,
      dl_put_away      TYPE /saptrx/appl_event_tag VALUE 'PUT_AWAY',
      dl_packing       TYPE /saptrx/appl_event_tag VALUE 'PACKING',
      dl_goods_receipt TYPE /saptrx/appl_event_tag VALUE 'GOODS_RECEIPT',
      dl_pod           TYPE /saptrx/appl_event_tag VALUE 'SHP_POD',
      dl_comp_by_fu    TYPE /saptrx/appl_event_tag VALUE 'DLV_ITM_COMP_BY_FU',
      fu_completed     TYPE /saptrx/appl_event_tag VALUE 'FU_COMPLETED',
      sh_check_in      TYPE /saptrx/appl_event_tag VALUE 'CHECK_IN',
      sh_load_start    TYPE /saptrx/appl_event_tag VALUE 'LOAD_BEGIN',
      sh_load_end      TYPE /saptrx/appl_event_tag VALUE 'LOAD_END',
      sh_departure     TYPE /saptrx/appl_event_tag VALUE 'DEPARTURE',
      sh_arrival       TYPE /saptrx/appl_event_tag VALUE 'ARRIV_DEST',
      sh_pod           TYPE /saptrx/appl_event_tag VALUE 'POD',
    END OF cs_milestone .
  CONSTANTS:
    BEGIN OF cs_event_param,
      quantity         TYPE /saptrx/paramname VALUE 'QUANTITY',
      full_volume_mode TYPE /saptrx/paramname VALUE 'FULL_VOLUME_MODE',
      reversal         TYPE /saptrx/paramname VALUE 'REVERSAL_INDICATOR',
      location_id      TYPE /saptrx/paramname VALUE 'LOCATION_ID',
      location_type    TYPE /saptrx/paramname VALUE 'LOCATION_TYPE',
    END OF cs_event_param .
  CONSTANTS:
    BEGIN OF cs_bstae,    "delete?
      confirm  TYPE ekpo-bstae VALUE '0001',
      delivery TYPE ekpo-bstae VALUE '0004',
    END OF cs_bstae .
  CONSTANTS:
    BEGIN OF cs_loekz,    "delete?
      active  TYPE ekpo-loekz VALUE '',
      deleted TYPE ekpo-loekz VALUE 'L',
    END OF cs_loekz .
  CONSTANTS:
    BEGIN OF cs_delivery_stat,
      not_relevant    TYPE wbsta VALUE '',
      not_processed   TYPE wbsta VALUE 'A',
      partially_proc  TYPE wbsta VALUE 'B',
      completely_proc TYPE wbsta VALUE 'C',
    END OF cs_delivery_stat .
  CONSTANTS:
    BEGIN OF cs_md_type,
      goods_receipt TYPE mkpf-blart VALUE 'WE',
    END OF cs_md_type .
  CONSTANTS:
    BEGIN OF cs_parvw,
      supplier TYPE parvw VALUE 'LF',
    END OF cs_parvw .
  CONSTANTS:
    BEGIN OF cs_adrtype,
      organization TYPE ad_adrtype VALUE '1',
    END OF cs_adrtype .
  CONSTANTS:
    BEGIN OF cs_loccat,
      departure TYPE zif_gtt_mia_app_types=>tv_loccat VALUE 'S',
      arrival   TYPE zif_gtt_mia_app_types=>tv_loccat VALUE 'D',
    END OF cs_loccat .
  CONSTANTS:
    BEGIN OF cs_vbtyp,
      shipment TYPE vbtyp VALUE '8',
      delivery TYPE vbtyp VALUE '7',
    END OF cs_vbtyp .
  CONSTANTS:
    BEGIN OF cs_abfer,
      loaded_inb_ship  TYPE abfer VALUE '2',
      empty_inb_ship   TYPE abfer VALUE '4',
      loaded_outb_ship TYPE abfer VALUE '1', "Loaded outbound shipment
      empty_outb_ship  TYPE abfer VALUE '3', "Empty outbound shipment
    END OF cs_abfer .
  CONSTANTS:
    BEGIN OF cs_base_btd_tco,
      inb_dlv  TYPE /scmtms/base_btd_tco VALUE '58',
      outb_dlv TYPE /scmtms/base_btd_tco VALUE '73',
    END OF cs_base_btd_tco .
  CONSTANTS:
    BEGIN OF cs_start_evtcnt,
      shipment TYPE i VALUE 2000000000,
      delivery TYPE i VALUE 2100000000,
    END OF cs_start_evtcnt .
  CONSTANTS cv_agent_id_type TYPE bu_id_type VALUE 'LBN001' ##NO_TEXT.
  CONSTANTS:
    cv_agent_id_prefix TYPE c LENGTH 4 VALUE 'LBN#' ##NO_TEXT.

  CONSTANTS:
    BEGIN OF cs_shipment_kind,
      shipment TYPE zif_gtt_mia_app_types=>tv_shipment_kind VALUE 'SHP',
    END OF cs_shipment_kind.
ENDINTERFACE.
