Skip to Content

Consume CDS View with Fuzzy-Search

Jul 21, 2017 at 06:42 AM


avatar image
Former Member

Hey Guys,

I'd like to consume an ABAP CDS-View with enabled fuzzy-search from ABAP.

Is this possible or are the search annotations for ODATA useage only?

This is my CDS-View:

@Search.searchable: true
define view ZCDS_VIEW 
as select from Table1 as team
left outer join Table2 as cc
on team.teamid = cc.nodename 
left outer join rshiedir as hier
on cc.hieid = hier.hieid
   @Search.defaultSearchElement: true
   @Search.fuzzinessThreshold: 0.8

Now I want to consume this view in an ABAP programm and use the fuzzy-search for results.

Preferably I'd use a parameter in the CDS-view to pass my search-string to the CDS. But I have no idea how to tell the CDS to use this parameter for the fuzzy search.

Do you have any ideas how to resolve this issue?

Many thanks and best regards


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Horst Keller
Jul 21, 2017 at 08:05 AM

The @Search annotation is not evaluated by Open SQL.

It is interpreted by frameworks Enterprise Search and SADL.

10 |10000 characters needed characters left characters exceeded