Class TransactionConfigurationBase

    • Field Detail

      • sapLogger

        protected static final Log4JWrapper sapLogger
        Logging instance
      • deliverTypeCacheAccess

        protected CacheAccess deliverTypeCacheAccess
        Cache access for retrieving delivery type customizing
      • deliveryTypes

        protected java.util.Map<java.lang.String,​java.lang.String> deliveryTypes
        Map of delivery types
    • Constructor Detail

      • TransactionConfigurationBase

        public TransactionConfigurationBase()
    • Method Detail

      • getAllowedDeliveryTypes

        public java.util.Map<java.lang.String,​java.lang.String> getAllowedDeliveryTypes()
                                                                                       throws BackendException
        Description copied from interface: TransactionConfigurationBackend
        Read delivery types from cache (or from back-end, if cache is not ready)
        • CRM table crmc_ship_cond, value help crm_ship_cond
        • ERP table tvsb, value help h_tvsb
        Specified by:
        getAllowedDeliveryTypes in interface TransactionConfigurationBackend
        Returns:
        Map with < value(char 3), description>
        Throws:
        BackendException - in case of issues with the JCO-Connection or ABAP-errors in the back-end
      • initAllowedDeliveryTypes

        public java.util.Map<java.lang.String,​java.lang.String> initAllowedDeliveryTypes()
                                                                                        throws BackendException
        Initializes delivery type storage
        Returns:
        List of delivery types
        Throws:
        BackendException
      • getCacheRegionForCustomizing

        protected abstract java.lang.String getCacheRegionForCustomizing()
        Returns:
        Key of cache region for delivery type customizing
      • isLanguageSwitchDelivCustomizingAvailable

        protected boolean isLanguageSwitchDelivCustomizingAvailable​(JCoConnection connection)
        Parameters:
        connection - JCO connection to the back end
        Returns:
        Is FM ERP_WEC_CUST_SHIPCOND available?
      • getDeliveryTypes

        protected java.util.Map<java.lang.String,​java.lang.String> getDeliveryTypes()
        Get cached delivery types via newly introduced FM ERP_WEC_CUST_SHIPCOND . If nothing is part of the cache yet, backend will be invoked.
        Returns:
        Map of delivery types with code as key and language dependent description as value
      • getDeliveryTypesFromBackend

        protected java.util.Map<java.lang.String,​java.lang.String> getDeliveryTypesFromBackend()
        Get delivery types from backend via newly introduced FM ERP_WEC_CUST_SHIPCOND .
        Returns:
        Map of delivery types with code as key and language dependent description as value