Hierarchy
⤷ PA-ER (Application Component) E-Recruiting
⤷ PAOC_RCF_BL (Package) Recruitment Factory: Business Logic
IMG Activity
ID | RCF_SEARCH_MAX_HITS | BAdI: Search - Maximum Number of Hits |
Transaction Code | S_PES_12000032 | (empty) |
Created on | 20070227 | |
Customizing Attributes | RCF_SEARCH_MAX_HITS | BAdI: Search - Maximum Number of Hits |
Customizing Activity | RCF_SEARCH_MAX_HITS | BAdI: Search - Maximum Number of Hits |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | HRRCF00_SRCH_MAXHITS |
Use
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.
Requirements
Standard settings
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'.
Activities
Activate the sample implementation provided or create and activate your own sample implementation.
Example
See the documentation for the interface IF_EX_HRRCF00_SEARCH_MAX_HITS of the BAdI HRRCF00_SEARCH_MAX_HITS.
Business Attributes
ASAP Roadmap ID | 255 | Create Interfaces |
Mandatory / Optional | 2 | Optional activity |
Critical / Non-Critical | 2 | Non-critical |
Country-Dependency | A | Valid for all countries |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20070227 |
SAP Release Created in | 600 |