Hello,

Sign up to join our community!

Welcome Back,

Please sign in to your account!

Forgot Password,

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask a question.

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

SAP EWM Help Latest Questions

  • 0
  • 0
DPM125
Beginner

Search Help and Value Help in SAP RAP (RESTful ABAP Programming Model)

search help/value help is not implemented in the classic way (with SE11 search helps + F4 help). Instead, RAP follows the Fiori and OData paradigm:

  • Search Help (free text search): Implemented via @Search annotations on CDS views.
  • Value Help (F4 help / dropdowns): Implemented via associations + @Consumption.valueHelpDefinition annotations.
1. Search Help in RAP

Search is enabled using annotations in the Projection View or Consumption View.

@Search.searchable: true
define view entity ZI_Book
as select from zbook
{
key book_id,
title,
author,
publisher
}

  • @Search.searchable: true → Allows free-text search across all fields.
  • You can refine it:

@Search.defaultSearchElement: true
title,

@Search.defaultSearchElement: true
author

 

2. Value Help in RAP

For dropdowns or F4 helps, you define associations and annotate them.

Step 1: Define Value Help View

@EndUserText.label: ‘Value Help for Publishers’
define view entity ZI_PublisherVH
as select from zpublisher
{
key publisher_id,
name
}

 

Step 2: Add Association in Main View

define view entity ZI_Book
as select from zbook
association [0..1] to ZI_PublisherVH as _Publisher
on $projection.publisher_id = _Publisher.publisher_id
{
key book_id,
title,
publisher_id,
_Publisher
}

 

Step 3: Annotate Value Help

@Consumption.valueHelpDefinition: [
{ entity: { name: ‘ZI_PublisherVH’, element: ‘publisher_id’ } }
]
publisher_id,

 

Now in Fiori, publisher_id will show F4 help with dropdown based on ZI_PublisherVH.

Related Questions

Leave an answer

Leave an answer