Skip to Content
avatar image
Former Member

Consume CDS View with Fuzzy-Search

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
{
   team.teamid,
   @Search.defaultSearchElement: true
   @Search.fuzzinessThreshold: 0.8
   team.txtlg                 
}

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

Moritz

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 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.

    Add comment
    10|10000 characters needed characters exceeded