
Since AS ABAP 7.40 SP07, you can map a DDIC search help to generate source code for read and query operations. CUD methods are not supported because a search help does not change any data. In the first release, the search help needed to be imported first to create an entity type and set before it could be mapped. But already with SP09, both steps were combined in one wizard.

The implementation process starts with importing the search help interface. Beside creating an entity type and set, this also generates the mapping for the read and query operations. After generating the runtime artifacts, the read operations can already be tested.
CUD methods are out-of-scope when mapping a search help. These can either be mapped to suitable function modules or implemented directly.

To import a search help, right-click Data Model and choose Import → Search Help. This opens the first step of the Import from Search Help Wizard.

The Import from Search Help Wizard consists of the following steps:
- In the first screen, you enter a name for the entity type.
- Using the value help, you select the search help to be imported.
- When the option Create Default Entity Set is selected, the wizard creates an entity set called <Name of entity type>Set, for example, CountrySet.
- Select the Query and Read checkboxes to generate code mapping for these operations.
- In the next screen, you select the fields of the RESULT_LIST[], which should become properties of the entity type.
- Finally you choose the key field(s). Every entity type in OData must have at least one key field. It is also possible to rename the properties and labels.
Caution
It is crucial to select the key field(s). If you miss this step, the code mapping will be incomplete.

The wizard has performed the mapping for the read and query operations. Expand Service Implementation → <EnititySet> → GetEntity (Read) or GetEntitySet (Query) and double-click Mapping to inspect the result.
For the query method, the range tables have been mapped so that $filter and navigation is supported. For the read method, an input parameter has been mapped for the property that has been marked as a key field. You may generate the runtime artifacts and start testing.

The whole reason why a search help can be used for code mapping is quite simple: In the UI of an application, the task of a search help is to support the user in identifying, finding, or entering technical key values, for example in a dropdown. This is true for classical screens as well as SAPUI5. The only difference is that an SAPUI5 app gets its data via OData requests.
In our example, every business partner has the field Country consisting of a technical key. To get the actual name of the country, we must navigate or expand to countries. Although we may know many abbreviations for countries by heart, some may be difficult to remember like "AX".
So, importing a search help in an SAP Gateway project allows to reuse DDIC elements created years ago in a totally different environment still serving their purpose.