cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to create a CDS File for Fiori Elements app in SAP BAS so that ObjModel associations work

TahirLeonenko
Explorer
0 Likes
470

Hello, I've created a CDS file so that I can control which data fields I have access to while developing my Fiori Elements app on SAP BAS. One issue I have run into though is that my "@ObjectModel.foreignKey.association:" associations to get more information do not work. On the association columns themselves (i.e. the column _DataField) has the error: Association (not relevant for BW Query) [Analytics] (e.g. Association _SOLDTOPARTY at Line 24 Column 4 is ignored (not relevant for BW Query) [Analytics])). Does anyone know of a way I can either get the association to work, or a different way in which I can create a CDS view/service that will be available in SAP BAS, to use as the basis for a Fiori Elements app?

Accepted Solutions (0)

Answers (1)

Answers (1)

MioYasutake
SAP Champion
SAP Champion
0 Likes

@TahirLeonenko 

On CDS views for Fiori elements applications, we don't use ObjectModel.foreignKey annotations. Just adding association to the view and exposing the association is sufficient.