There are many searches in CRM that can last very long if the user enter’s unsuitable parameters. This leads most times to poor search request durations, long and useless result lists or even to timeouts.
Moreover these searches acquire a high amount of system resources that take down the overall system performance
With this function the user can stop his search request whenever he recognizes that this search will not end in time or the result will have too many hits.
Moreover: Timeouts, loss of data and locked business objects will occur less often.
With the development of this feature, on the main window, while searches are conducted, a "Cancel" button is added within both available progress indicators being displayed during roundtrips (i.e. the spinning wheel and the progress bar).
(On popups, no button is added, as users can simply close those popups.)
This feature was introduced via SAP Note 2044841 - Stop Function for Each CRM Search.
If you wish to have this feature in your system, please ensure that the following SAP Notes are implemented in your system.
2044841 - Stop Function for Each CRM Search
2087530 - CANCEL-Search for events other than "SEARCH", part 1
2092173 - CANCEL-Search for events other than "SEARCH", part 2
If you are using WebClient Framework with Portal Integration, and wish to use the Cancel Search feature, ensure that the following SAP Notes are implemented in your system:
2320097 Cancel search feature reloads the Portal page instead of the WebClient
2301907 Cancel Search displays confirmation popup in Portal Integration
2288721 AutoSave is not disabled for Interaction Center business roles
2280217 Rendering and functionality issues with Portal Integration
2278681 Cancel search does not work on Chrome/Firefox with Portal Integration
2263121 Cancel button does not appear in External Portal Integration
1. This functionality is not available for Interaction Center Agents, since using this button in IC closes all open IC sessions.
Refer SAP Note 2106991 - CANCEL-Search should not be offered in Interaction Center
2. This functionality can also be deactivated on a role-basis if needed.
Refer SAP Note 2161330 - Switch for the Cancel Search feature & SAP Note 2164021 - Note 2161330 - Part2
3. It is also possible to have the Search pages automatically restored after cancelling any of them.
Refer SAP Note 2141655 - Cancel Search Button should load the search page with the new session.
Initially when this functionality was developed, CANCEL-Search button only listened to "SEARCH" events, for offering the CANCEL-Search button.
However, with the introduction of SAP Note 2092173 CANCEL-Search for events other than "SEARCH", part 2, CANCEL-Search button is supported to whatever event, applications are supplying to the <thtmlb:advancedSearch> tag via its "onEnter" attribute.
For supporting Searches launched by clicking the "Search" button on all Search pages, an API to applications for registering their 'custom' Search-button Event for those applications building their "Search" button with an Event Name different than the standard "SEARCH" and different than the "onEnter" Event Name supplied to the <thtmlb:advancedSearch> tag.
As documented in METHOD GET_REGISTER_SEARCH_EVENT_HTML ( ); Normally applications give their SEARCH button the same event as they give to the <thtmlb:advancedSearch> onEnter' attribute.
However if one elects to make things more complex, one can register the name of this extra search event for the CANCEL-Search button to also react to it:
The current method can be invoked to register the name:
LV_HTML = CL_THTMLB_ADVANCEDSEARCH=>GET_REGISTER_SEARCH_EVENT_HTML( "MY_CUSTOM_SEARCH_EVENT" ).
ME->PRINT_STRING ( LV_HTML ).
- HTML - level solution for the Search Button:
<thtmlb:button design = "EMPHASIZED"
id = "SEARCH_BTN"
onClick = "MY_CUSTOM_SEARCH_EVENT"
onClientClick = 'thAdvSearchRegisterEvent("MY_CUSTOM_SEARCH_EVENT")'
text = "Search" />
HTML - level solution for the Input Fields when <thtmlb:advancedSearch> is not used:
This event name will stay registered until the host (Search) page is unloaded.
- The Saved Searches "Go" button functionality has been modified for triggering the CANCEL-Search button.
Most Common Issues and SAP Notes which are available to resolve these issues:
- Issue: You are using WebClient UI and you have implemented Note 2141655 or corresponding Support Package. You notice that the navigation after cancelling a long running search does not load the search page in a few cases or you are navigated back the the business role selection page. Also, if you navigate between search pages using the Back/Forward button, you will notice that the incorrect search page will be loaded after cancelling the search.
Resolution: Implement SAP Note 2223877 - Incorrect navigation after Cancel button is pressed on a long search.
- Issue: Cancel search option for Enterprise Search
Resolution: Implement SAP Note 2204414 - CANCEL-Search for events other than "SEARCH", part 4.
- Issue: You are using WebClient UI and you have enabled the Cancel feature for long searches. You notice that the 'Cancel' button appears on events other than search (e.g. actions on the result list).
Resolution: Implement SAP Note 2240564 - Cancel button appears on events other than search.
- Issue: After the implementation of SAP Note 2044841, users are unable to select a row in the result with the mouse.
Resolution: Implement SAP Note 2112210 - CANCEL-Search for events other than "SEARCH", part 3
Issue: Cancel Search Button is not available for Incident Search.
Resolution: Implement SAP Note 2165229 - No CANCEL on Incident Search.
Issue: Cancel Search Button is not available for Business Transaction Assignment
Resolution: Implement SAP Note 2214447 Cancel Search missing for Business Transaction Assignment.
Issue: CANCEL-Search button is not available on the very first launched page, including the Advanced-Search page that is being restored following a CANCEL-Search
Resolution: Implement SAP Note 2176752 - Rendering the CANCEL-Search button on the very first page.
Issue: : After pressing Cancel on a long search it is observed that the refresh is either not working or after the refresh, the header part is duplicated. This is happening with Google Chrome, Firefox and Safari.
Resolution: Implement SAP Note 2170795 - Incorrect reload after pressing Cancel on a long search.
Issue: When end-users cancel a search, from any search page, the system reloads, and they are redirected-back to the business role selection page, or to the homepage of the role they are assigned to.
Issue: Using the Cancel feature on a long search, it is observed that there is an extra confirmation popup after pressing the Cancel button
Resolution: Implement SAP Note 2189168 - Disable confirmation popup on cancel search.
- Issue: Cancel Search Button is not available for Combined Searches.
Resolution: Implement SAP Note 2072839 - Providing CANCEL-Search after Combined and Quick Searches.
2190424 - CANCEL-Search missing background on GRADIENT progress bar
2046359 - Corbu & Nova: Shadow for the Cancel Search button
Use this structure to help you compose your contributions for WIKI and at the same time will ensure spelling and grammar.