cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with the CDS View "searchable" calculated column / case.. when column

Eliza1
Explorer
0 Kudos

Good Morning dear Community Members!

I would like to ask how can I globally search by case.. when columns in CDS views.

For example, I present the problem schematically.

I am getting a short dump, when I try to activate a global search by the field "Name".

@AbapCatalog.sqlViewName: 'ZC_VIEW'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@Search.searchable: true
define view ZC_View
  as select from zname
{
@Search.defaultSearchElement: true
Case when aktiv = 'X' then name else '' end as Name
..
}
Informationen zur Abbruchstelle
Der Abbruch trat im ABAP-Programm bzw. Include "CL_SADL_SHORTDUMP=============CP"
auf, und zwar in "TRIGGER_DATABASE_FAILURE_DUMP". Das Hauptprogramm war "SAPMHTTP".
Im Quelltext befindet sich die Abbruchstelle in Zeile 2
des Includes "CL_SADL_SHORTDUMP=============CM009".

Quelltextauszug:
  METHOD trigger_database_failure_dump.

    DATA(_) = COND i( WHEN aunit_excptn_instead_of_dump <> abap_true THEN

     THROW SHORTDUMP cx_sadl_dump_database_failure( io_error )

"######################################################################################## 

 Globally searching by non-calculated columns is working...

Accepted Solutions (0)

Answers (0)