Ansicht
Dokumentation
RCF_SEARCH_RANKING - BAdI: Weighting of Search Results Hits
General Data in Customer Master General Data in Customer MasterThis documentation is copyright by SAP AG.
The Business Add-In (BAdI) HRRCF_SEARCH_RANKING is used to add together the hits of the hit lists from two searches, thus enabling a common weighting of the hits.
The BAdI provides the following methods for an implementation:
The system uses this method to group together the hits of the hit lists of two different searches into one hit list.
In the standard implementation HRRCF00_SEARCH_RANKING, this occurs depending on the operator used (and/or) between the search attributes. The system behavior with regard to the relationships between the search attributes results from the settings that are stored for the Ranking in the IMG activity Set Up Search Applications. For more information, see the documentation for the IMG activity in the Ranking section.
The system also takes into account the weighting of the hits.
Parameters | Type | Reference Type | Default Value | Description |
---|---|---|---|---|
P_HITLIST1 | Importing | RCF_T_HITLIST_WITH_RANKV | First Hit List | |
P_HITLIST2 | Importing | RCF_T_HITLIST_WITH_RANKV | Second Hit List | |
P_WEIGHT1 | Importing | NUMC10 | 1 | Weighting for Hits of First Hit List |
P_WEIGHT2 | Importing | NUMC10 | 1 | Weighting for Hits of Second Hit List |
P_INTERSECT | Importing | BOOLE_D | 'X' = Intersection of Hit Lists; ' ' = Union of Hit Lists | |
P_MERGEDLIST | Exporting | RCF_T_HITLIST_WITH_RANKV | Hit List with Weighting as Result of Combining 2 Hit Lists |
You use this method to calculate a weighting for hits that were determined using a database search. In addition to the search using Search and Classification (TREX), it is also possible to search using function modules. Hits found in this way do not have a weighting, however. Consequently, these hits would have a weighting of 0% when combined with the hit list from the TREX search.
In the standard implementation HRRCF00_SEARCH_RANKING, the method calculates a weighting for these hits according to the following equation: Weighting of hit = 100% divided by the number of selected search criteria.
Parameters | Type | Reference Type | Default Value | Description |
---|---|---|---|---|
P_HITLIST | Importing | RCF_T_HITLIST_WITH_RANKV | Hit List from Non-TREX Search | |
P_WEIGHT | Importing | NUMC10 | 1 | Weighting |
P_NUMBER_OF_CRITERIA | Importing | I | Number of Selected Search Criteria/Search Template Elements | |
P_HITLIST_WITH_RANKV | Exporting | RCF_T_HITLIST_WITH_RANKV | Hit List from Non-TREX Search with Weighting |
The system uses this method to group together the hits from a search with mandatory criteria and the hits from a search without mandatory criteria.
In the standard implementation HRRCF00_SEARCH_RANKING, the result hit list comes from the hit list of the search with mandatory criteria, whereby the hits that also come from the search without mandatory criteria receive a new ranking value. This is calculated as follows:
The product of the ranking value of the hit from the search with mandatory criteria and the weighting for the first hit list is added to the product of the ranking value of the hit from the search without mandatory criteria and the weighting for the second hit list. This sum is divided by the sum of the weighting for the first hit list and the weighting for the second hit list.
Parameter | Type | Reference Type | Default Value | Description |
---|---|---|---|---|
P_HITLIST_MAND | Importing | RCF_T_HITLIST_WITH_RANKV | First Hit List from Search with Mandatory Criteria | |
P_HITLIST2 | Importing | RCF_T_HITLIST_WITH_RANKV | Second Hit List from Search Without Mandatory Criteria | |
P_WEIGHT1 | Importing | NUMC10 | 1 | Weighting for First Hit List |
P_WEIGHT2 | Importing | NUMC10 | 1 | Weighting for Second Hit List |
P_MERGEDLIST | Exporting | RCF_T_HITLIST_WITH_RANKV | New Hit List as Result of Comparing Both Lists |
In the standard system, the BAdI implementation HRRCF00_SEARCH_RANKING is activated. The default code is executed automatically.
Create your own implementation if necessary.
CPI1466 during Backup rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 7741 Date: 20240523 Time: 201824 sap01-206 ( 81 ms )