Skip to Content

Smart Chart using Annotation Modeler on SAP Web IDE

Hi all,

I am trying to create a Smart Chart by using the Annotation Modeler on SAP Web IDE. I read the examples on but I cannot find out what I missing.I am taking the following error:

When I am using the standard approach, implementing the whole logic with the standard components, everything works fine. Also, I placed some Smart Tables on my application and they correctly work.

I've tried a dozen of combinations regarding variables, chart types and annotation definition. Nothing worked at all.

Is there any available tutorial/example? I feel that I missing something on Annotation Definition


<smartChart:SmartChart id="ItemsSmartChart" entitySet="ChartEcenterVsGlycol" smartFilterId="SmartFilterBar" 
showFullScreenButton="true" useChartPersonalisation="true" enableAutoBinding="true" showDetailsButton="false"


<Annotations Target="....ChartEcenterVsGlycolType">
<Annotation Term="UI.Chart">
<Record Type="UI.ChartDefinitionType">
<PropertyValue Property="ChartType" EnumMember="UI.ChartType/Line"/>
<PropertyValue Property="Measures">
<Collection >
<PropertyValue Property="Dimensions">
<Collection >
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 05, 2017 at 11:08 AM

    I found out the solution of this case. Chart examples on SAPUI5 SDK are correct. The issue happened from oData perspective. OData produced by HANA and they didn't have the necessary annotations. I solved it by adding the following. aggrketegates always and enable OData4SAP are the keys.

     service  { 
     as "AnODATAEntity" key generate local "GenID"
     aggregates always; 
    annotations {
       enable OData4SAP;
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 24, 2017 at 08:07 AM

    Hi Dimitrios Agagiotis,

    I am currently also working on the smartchart. I am facing the problems cause I am new to use the annotation. Also the odata I am using is not from HANA, it's from ECC gateway.

    1. For odata service in gateway, there is function to create odata model with annotation, if this part of the process which I need to implement before I use smartchart with annotation?

    2. For annotation modeler on sap web ide, once I created the annotation file, how to connected to the smartchart for use? Could you give some detail about the configuration and binding?

    3. The fix you used, where should the configration located? manifest file or somewhere else?

    Great Thanks.


    Add comment
    10|10000 characters needed characters exceeded