
An elementary search help defines the standard flow of an input help. You can define the following components of this flow in the search help:
Selection Method
The possible input values displayed for a field in the hit list are determined at runtime by database selection. In the following figure you can see a simple representation of this database selection.
If all the data required in the hit list comes from one single table, it is enough to select this table (or a projection view of this table) as the selection method. If a text table exists for the table, its fields are also available in the input help. A table entry is linked with the corresponding text by the existing foreign key.
If the data required in the hit list comes from more than one table, you must link these tables with a view (database view or help view). You must define this view as the selection method.
If the underlying tables are client-specific, the client field must be contained in the view. Otherwise the selection for the input help would be for all clients.
Search Help Parameters
A search help has an interface consisting of parameters. These parameters define the fields of the selection method that is used in the input help.
A parameter of the search help must correspond to each field in the dialog box for value selection and to each field of the hit list. The parameters are copied from the corresponding selection method, that is, they have the same name as the corresponding field of the selection method.
If the search is restricted with a parameter of the search help, this is used in the data selection for formulating a WHERE condition for the field of the selection method with the same name. Conversely, the parameters of the search help are assigned to the contents of the fields of the selection method with the same name.
The search help must not contain any parameters for the clients.
If the underlying table is client-dependent, the system automatically selects only those values for the input help that belong to the current client.
A data element must be assigned to each search help parameter. That is, a type must be defined for the search help parameters.
A search help can contain further parameters that do not correspond to any field of the selection method. This is necessary only if the standard flow of the input help described by the search help still has to be modified with a search help exit.
Import and Export Parameters
When an input help is called, the entries that you already made in the input template are taken into consideration. For example, if you call the input help for the flight number and you have already specified the carrier, only the numbers of flights of this carrier are offered.
On the other hand, if you select one row of the hit list, more than one field of the input template has to be filled with data from the selected row of the hit list. For example, if the flight number is obtained from the hit list, the city of departure and the destination must also be returned in the screen template. The following figure explains this using an example.
The interface of a search help defines the context data that can be used in the input help and the data that can be returned in the input template.
A parameter of a search help can be classified as:
Parameters with which context information from the processed input template (screen) is copied to the help process.
Parameters with which values from the hit list are returned to the input template.
A parameter can be an input and an export parameter at the same time. A search help can also contain parameters that are neither import nor export parameters. For example, such parameters could be required for the internal input help process.
When you attach a search help, you must define where the import parameters of the search help get their values from, and the fields in which the contents of the export parameters are returned. For more information, see Value Transport for Input Helps.
Description of the Online Behavior
The online behavior defines the steps executed in the input help process as well as the structure of the hit list and dialog box for value selection.
The dialog type defines whether or not the dialog box for value selection is displayed. If you want to skip the dialog box for value selection, the hit list is displayed directly after calling the input help.
When you define an elementary search help, you can define the appearance of the dialog box for value selection and the hit list. For example, you can define the position of a parameter in the dialog box for value selection. You can also define the column position in which the values of a parameter are displayed in the hit list.
You can enhance the functionality of a search help object to display possible search results and further values already while typing in a drop-down box beneath the search field. This assists the user who is searching for the desired entry. In addition, for fuzzy searches you can define an error-tolerant value in order to define the deviation of the relevant results.
In transaction SDSH_CONFIG, you can deactivate the enhanced options system-wide by deselecting the “Use proposal search for input field” option. Note that for this purpose the standard authorization 02 (‚change‘) of the authorization object S_DEVELOP is required.
Input fields that have a search help with enabled enhanced options assigned to them indicate this with a magnifying glass.
Search Methods
Prerequisites
Limitations
The type-ahead and full text searches are currently only supported for SAP GUI screens on Windows. Other UI technologies such as Web Dynpro are currently not supported. For more information, see SAP Note 1861491.
Enhanced Options
The following enhanced options are provided:
| Option | Relevant Search Method | Description |
|---|---|---|
| Proposal Search for Input Fields | Type-ahead |
This option defines that a search help object is capable of running a type-ahead call. The search results are displayed in a list generated on the basis of the modeled LPos parameters. The values of the parameter that belongs to the input field are always displayed in the first column of the drop-down box, irrespective of the LPos value. All other parameters follow in accordance with their LPos value. Note If only this field is set, or if the "Multi-column Full Text Search" option is not supported by the database used by the system, the search is executed solely on the column of the database that belongs to the field or the assigned search help parameter. Additional selection conditions for other columns of the table(s) or view will only be taken into consideration as follows:
In the drop-down box of an entry or search field, by default 10 search results are displayed. Before you activate this option for search help objects that contain exits with complex selection conditions or implement long-running operations, you should test this search help object for its runtime behavior. Moreover, you must ensure that an existing search help exit does not call SAP GUI-specific logic (such as call own dialogs) on its own. |
| Multi-column Full Text Search (Database-Specific) | Full text search |
The system performs a full text multi-column search in addition to the standard pattern-based search. Results of both searches are combined and returned in their order of relevance with respect to the search query. Note You can only select this option if the “Proposal Search for Input Fields” option is already selected and the selection method(s) support(s) full text search. This applies to tables, text tables as well as standard and projection views. Other variants are not supported. The corresponding columns must be marked as IMPORT or SPos parameters. |
| Accuracy Value for Error-tolerant Full Text Search | Fuzzy search |
The error-tolerant value determines the variation bandwidth of the displayed search results. Thus, spelling mistakes can also be considered. Note This value ranges between 0 and 1. A score of 0 means the search query and the search result do not have anything in common. 1 means that must be a complete match. Thus, the lower the value, the more variations are displayed. The error-tolerant value can only be applied to the multi-column full text search. |
See also: