Your RAP app's flight value help shows all connections instead of those for the airline already entered. Users can type an ID that does not exist, and on another field the help is empty. How do value helps work in a RAP projection, and how do you fix each problem?
Say your answer out loud first.
Practise another way
The value help is a @Consumption.valueHelpDefinition on the projection field that names a value help entity and element. To filter by the airline I add an additionalBinding with usage #FILTER or #FILTER_AND_RESULT. The setting useForValidation: true makes the Fiori UI reject unknown values.
I still keep a back-end validation for EML and API callers. An empty help is usually a numeric filter field that is still initial, access control on the help view, or a wrong element name.
The building block
@Consumption.valueHelpDefinition: [
{ entity: { name: '/DMO/I_Flight_StdVH', element: 'ConnectionID' },
additionalBinding: [
{ localElement: 'AirlineID', element: 'AirlineID', usage: #FILTER_AND_RESULT },
{ localElement: 'FlightDate', element: 'FlightDate', usage: #RESULT } ],
useForValidation: true } ]
ConnectionID,
This is the pattern of SAP's /DMO/C_Booking_A_D projection.
Problem 1: help not filtered by airline
additionalBinding adds a second condition on the same help entity:
#FILTER: the local field's value filters the list.#RESULT: the picked row fills the local field.#FILTER_AND_RESULT: both; it is the default whenusageis omitted. Missing binding, or one with#RESULTonly, explains an unfiltered list. WithdistinctValues: true, additional bindings must be#FILTER.
Problem 2: invalid IDs accepted
useForValidation: true tells the Fiori UI to check the typed value against the help. SAP's feature showcase marks it as available on-premise from 2023; with several helps on one field, give each a qualifier or validation may pick the wrong one.
It is a UI check: EML, Web API calls and mass uploads never see it, so keep an on save validation in the BO, as the Flight scenario does with validateConnection.
Problem 3: empty help
- SAP's RAP guide notes that a numeric local element in a filter binding filters for 0 when it is empty. Make the binding
#RESULTor let the user fill the filter first. - CDS access control on the help view applies to the user; a DCL role without a matching authorization returns nothing.
- Wrong
elementname (alias vs column name) or a help view with a mandatory parameter.
Expose the help view. SAP's RAP guide says the help provider must be exposed for the OData service; SAP's openSAP sample adds that it would be reachable anyway but exposing gives meaningful names. Always expose it with an alias:
expose /DMO/I_Flight_StdVH as Flight;
Where to put it. SAP recommends value help annotations in the data definition rather than in a metadata extension. Help views can carry their own texts and value helps, so a help can have a help.
Writes the annotation with additionalBinding and explains each usage value, treats useForValidation as a UI-only check backed by a BO validation, and gives concrete causes for an empty help.
Relies on useForValidation as the only check, or answers 'create a search help in SE11'.
Treating useForValidation as data validation. It only checks in the Fiori UI; EML and API consumers bypass it, so the BO still needs a validation.
- What is the difference between #FILTER and #RESULT in an additional binding?
- Why does useForValidation not protect data coming through a Web API?
- How would you offer a value help for an action parameter?
6 official pages. Confidence: high. Checked 2 Dec 2026.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.