cancel
Showing results for 
Search instead for 
Did you mean: 

Analytical Card via ABAP CDS OVP application , Column chart , KPI annotation not appearing

abhi1185
Explorer
0 Kudos

I am trying to create a OVP application containing Purchase order data. Now I wanted to add a analytical column chart type Card to it containing number of POs per vendor( showing top 5 )

I created following consumption view.

But When I go on to add a card in my OVP application selecting Analytical card, nothing is coming in KPI annotation field. which is one of the mandatory field. Am I missing any annotation.

Accepted Solutions (0)

Answers (1)

Answers (1)

AshishAnand
Employee
Employee
0 Kudos

Hello Abhishek,

This Web-IDE OVP plugin only detect "UI.KPI" annotation and do not detect other analytical card annotation like "chartAnnotationPath" and "selectionPresentationAnnotationPath". Below is an example how you can define UI.KPI annotation:

<AnnotationTerm="UI.KPI"Qualifier="AllActualCosts"><Record Type="UI.KPIType"><PropertyValue Property="Detail"><Record Type="UI.KPIDetailType"><PropertyValueProperty="DefaultPresentationVariant"Path="@UI.PresentationVariant#Eval_by_Currency1"/><PropertyValue Property="AlternativePresentationVariants"><Collection><Path>@UI.PresentationVariant#Eval_by_Currency_Column</Path></Collection></PropertyValue><PropertyValue Property="SemanticObject" String="Action" /><PropertyValue Property="Action" String="toappnavsample" /></Record></PropertyValue><PropertyValueProperty="SelectionVariant"Path="@UI.SelectionVariant#Eval_by_Currency_1"/><PropertyValueProperty="DataPoint"Path="@UI.DataPoint#Eval_by_Country-Generic"/><PropertyValueProperty="ID"String="String for KPI Annotation"/></Record></Annotation>

Card manifest setting using above annotation:

"card004": {"model": "salesShare","template": "sap.ovp.cards.charts.analytical","settings": {"title": "Total Purchase Order Value","subTitle": "Year-to-date","entitySet": "SalesShareDonut","valueSelectionInfo": "Categorized by products","customParams": "getParameters","kpiAnnotationPath":"com.sap.vocabularies.UI.v1.KPI#AllActualCosts","navigation": "noHeaderNav"}}

Alternatively you can skip the web IDE plugin and add card manually using chart annotation:

"card006": {"model": "salesShare","template": "sap.ovp.cards.charts.analytical","settings": {"title": "Most Popular Products","subTitle": "In the last six months","entitySet": "SalesShareDonut","selectionAnnotationPath": "com.sap.vocabularies.UI.v1.SelectionVariant#Eval_by_Currency","chartAnnotationPath": "com.sap.vocabularies.UI.v1.Chart#Eval_by_Currency_Column","presentationAnnotationPath": "com.sap.vocabularies.UI.v1.PresentationVariant#Eval_by_Currency_Column","identificationAnnotationPath": "com.sap.vocabularies.UI.v1.Identification#Eval_by_Currency"}},

Hope it helps 🙂

Thanks and Regards

Ashish