Ansicht
Dokumentation

RCF_SEARCH_MAX_HITS - BAdI: Search - Maximum Number of Hits

RCF_SEARCH_MAX_HITS - BAdI: Search - Maximum Number of Hits

CL_GUI_FRONTEND_SERVICES - Frontend Services   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

You can use the Business Add-In (BAdI) HRRCF00_SEARCH_MAX_HITS (Search: Maximum Number of Hits) to have the system dynamically calculate the maximum number of hits that can be found when performing a search. By restricting the number of hits, you can improve the performance of the search application.

To restrict the number of hits for the search, the system includes the value of the system parameter RECFA HIHIT (table T77S0). If no value is stored for this system parameter, the system uses the value 9,999,999 as the upper limit. This can have a negative effect on the performance of the search. Therefore, we recommend you always enter a value for the system parameter RECFA HIHIT. However, in certain circumstances, this solution may not be flexible enough. This is illustrated using the following two examples:

  • Example 1
The system parameter RECFA HIHIT has the value 5000. If the user wants only 50 hits to be displayed and enters the value 50 in the Maximum Number of Hits field, the value 5000 is still included for restricting the number of hits, although a lower value would be sufficient from a technical point of view. A lower value would have a positive effect on the performance.
  • Example 2
The system parameter RECFA HIHIT has the value 500. If the user wants 800 hits to be displayed and enters the value 800 in the Maximum Number of Hits field, the system still does not display more than 500 hits as the system uses the value 500 to restrict the number of hits.

The interface IF_EX_HRRCF00_SEARCH_MAX_HITS of the BAdI HRRCF00_SEARCH_MAX_HITS provides the COMPUTE_HIGH_RESULT method for dynamically calculating the maximum number of hits.

In the standard system, SAP provides the sample implementation HRRCF00_SEARCH_MAX_HITS. The implementing class is CL_IM_HRRCF00_SEARCH_MAX_HITS. The sample implementation provided is inactive. The BAdI is called from the class CL_HRRCF_HRKWF_SEARCH. The P_FACTOR parameter is filled with the value 2, and the P_LIMIT_BY_RECFA_HIHIT parameter is filled with the value 'X'.

Activate the sample implementation provided or create and activate your own sample implementation.

See the documentation for the interface IF_EX_HRRCF00_SEARCH_MAX_HITS of the BAdI HRRCF00_SEARCH_MAX_HITS.






PERFORM Short Reference   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 2718 Date: 20240523 Time: 200717     sap01-206 ( 67 ms )