In the Service Builder, you can reuse existing Search Helps in a system, as data sources
to create new entity types.
Context
Only the search helps in the local SAP system can be used as a data source. When you choose to
use search helps as data sources, Service Builder allows you to do the following:
- Import the search help parameters
- Create OData model entities based on the imported search help parameters
- Map only the Query and
Read operations for the model
entities to their corresponding search help parameters.
- Generate and register the OData service.
Importing Search Help Parameters
You import search helps as data sources using the import wizard to create a new entity type,
and a corresponding entity set into your project. When you import a search help as a
data source, the tool performs the following:
- Checks that the search help you have specified exists, and that it is an
elementary search help, and also returns the search help description.
- Builds the search help parameter that you specify, creates a result table,
and range tables based on the logic described above.
A max hits data element is provided automatically in Service Builder.
To import search help parameters:
Next Steps
Mapping Search Help Parameters You can manually map entity set
properties to Search Helps. The procedure for mapping is same for all data
sources
Note Only the Query and Read operations can be mapped for entity sets
derived from the search help data source. In addition, when mapping a search
help to the Read operation, the related range table header of each key property
must be mapped to the key. At runtime, the range table is set with the following
values: SIGN = ‘I’, option = ‘EQ’, LOW = key value. End of the note.
When you map entity set properties to search help, the tool performs
the following:
- Ensures that mapping can be performed only for Query and Read operations
- Checks that the parameters imported into a project contain mapping
information
- In addition, it checks that the range table mapping semantic has not
changed, for example, SIGN can only be mapped to the
SIGN semantics, or to a constant value.
Constraints
The following are the
constraints:
- Only elementary search helps are supported. Collective search helps are not
supported
- Search helps that call UI in their exit function are not supported, as this
cannot be validated by the Service Builder
- If the imported Search Help has a Search Help Exit, then this exit is not
executed in the DISP step of the search help processing
- At runtime, a query operation that is based on a search help data source can
retrieve a maximum of 9,999 entries