Class SearchBackendERP

    • Field Detail

      • ERP_ISA_GEN_DOCUMENT_SEL

        public static final java.lang.String ERP_ISA_GEN_DOCUMENT_SEL
        Name of search function module
        See Also:
        Constant Field Values
    • Constructor Detail

      • SearchBackendERP

        public SearchBackendERP()
    • Method Detail

      • processResults

        protected SearchResultList processResults​(com.sap.conn.jco.JCoTable table)
        Processes search result and converts it into the BOL search result representation
        Parameters:
        table - JCO table of type ISALES_DOCLIST_ROW
        Returns:
        Search Result List
      • performLogging

        protected void performLogging​(SearchResultList resultList,
                                      int maxHits)
        Parameters:
        resultList -
        maxHits -
      • createSearchResult

        protected SearchResult createSearchResult()
        Creates a SearchResult instance
        Returns:
        SearchResult instance
      • fillResultFields

        protected void fillResultFields​(com.sap.conn.jco.JCoTable table)
        Fills search result attributes for the call of function module ERP_ISA_GEN_DOCUMENT_SEL
        Parameters:
        table - JCO Table of type ISALES_SEL_FIELD
      • fillSelectionOptions

        protected void fillSelectionOptions​(com.sap.conn.jco.JCoTable table,
                                            SearchFilter searchFilter)
        Fills selection options for the call of function module ERP_ISA_GEN_DOCUMENT_SEL
        Parameters:
        table - JCO Table of type ISALES_SELOPT
        searchFilter - Filter attributes
      • fillCounterOptions

        protected void fillCounterOptions​(com.sap.conn.jco.JCoTable table)
        Fills counter options for the call of function module ERP_ISA_GEN_DOCUMENT_SEL
        Parameters:
        table - JCO Table of type ISALES_CTROPT
      • getMaxHits

        protected int getMaxHits()
        Returns:
        the maxHits
      • setMaxHits

        protected void setMaxHits​(int maxHits)
        This can be used for testing
        Parameters:
        maxHits - the maxHits to set
      • setDateRangeInDays

        protected void setDateRangeInDays​(int dateRange)
      • setToday

        public void setToday​(java.util.Date date)
        Only for testing
        Parameters:
        date -
      • getToday

        public java.util.Date getToday()
        Returns:
        the today
      • isWarningStatus

        protected boolean isWarningStatus​(SearchResultList results,
                                          int maxHits)
      • isErrorStatus

        protected boolean isErrorStatus​(SearchResultList results,
                                        int maxHits)