Skip to Content

In my previous blog Build Chart and Table representation via Analytics Path Framework

I introduced the step how to render the data coming from CDS view in various chart types via Analytics Path Framework, which are actually a set of Fiori application. In this blog, I will demonstrate the steps how to configure the modeled application into a Smart business KPI tile in S4/HANA system, so that customer can conveniently use the analytics application by clicking tile in Fiori launchpad.

The CDS views created in previous blog are reused here.

Approach1: consume OData service via Generic APF runtime application

With this approach, it is not necessary for you to create your own Fiori application. Instead, your modeled configuration is launched by APF generic runtime application.

1. Create a new KPI definition:

/wp-content/uploads/2016/05/clipboard1_959412.png

maintain the four mandatory attributes below. For Semantic Object/Action for KPI itself, keep them empty.

/wp-content/uploads/2016/05/clipboard2_959413.png

Trouble shooting guide updated on 2016-05-26

This chapter is added for SCN question Issue with “Create KPI” (Fiori App) on CDS Views (S/4HANA 1511).

In case you didn’t see any value in field “Entity Set”, you can do trouble shooting by yourself.

In my case, when I first select F4 value help for “Entity Set”, I can see a series of CDS views listed, which are retrieved by the batch request observed in Chrome development tool.

/wp-content/uploads/2016/05/clipboard1_959412.png

Since my CDS view “Z_C_PRODUCT” does not appear there, so I type it manually and click search icon. A second batch request is sent:

/wp-content/uploads/2016/05/clipboard2_959413.png

I can see my typed CDS view name is included as filter operator in this request:

/wp-content/uploads/2016/05/clipboard3_961745.png

Now I select the value help for OData service. The response for this request contains OData service metadata url.

/wp-content/uploads/2016/05/clipboard4_961746.png

When you now select value help for the third field “Entity Set”, the metadata of this OData service is requested via the url fetched from the previous request. After a successful metadata request, you should see the entity set. If not, usually there is something wrong in the metadata retrieve. You should see detailed error message in Chrome development tool.

/wp-content/uploads/2016/05/clipboard5_961747.png

==Trouble shooting end ==

Then create a new evaluation based on this KPI:

/wp-content/uploads/2016/05/clipboard3_961745.png

Don’t forget to activate your evaluation. Once done, you should have the following artifacts: one KPI and one evaluation:

/wp-content/uploads/2016/05/clipboard4_961746.png

2. Select evaluation and click button “Configure Tile”:

/wp-content/uploads/2016/05/clipboard5_961747.png

Here you can create a new Smart Business tile:

For three mandatory attributes, you must specify the hard coded values as highlighted below:

/wp-content/uploads/2016/05/clipboard6_959417.png

Assign this tile to a given catalog. And for Application Parameter, choose parameter name as sap-apf-configuration-id and value as convention <application guid>.<configuration guid>.

/wp-content/uploads/2016/05/clipboard7_959418.png

How to get application guid and configuration guid? Just open your application in APF Configuration modeller:

/wp-content/uploads/2016/05/clipboard8_959419.png

/wp-content/uploads/2016/05/clipboard9_959420.png

3. Once tile creation is done, add the tile to catalog group via personalization:

/wp-content/uploads/2016/05/clipboard10_959421.png

Save the change, now you should see the Smart business tile in launchpad.

/wp-content/uploads/2016/05/clipboard11_959422.png

Enter the tile, you can now see rendered chart as expected:

/wp-content/uploads/2016/05/clipboard12_959423.png

Approach2: Configure the tile navigation via Semantic object + action

For this approach, you should have a working UI5 application deployed on BSP repository. In my example it could be found in frontend system’s BSP repository with name DEMO_SD_SVA_S1 via tcode SE80.

/wp-content/uploads/2016/05/clipboard1_959412.png

1. Open Fiori launchpad design, create a new target Mapping for a given catalog:

/wp-content/uploads/2016/05/clipboard2_959413.png

2. Specify Semantic Object + action as below.

For url, the format is /sap/bc/ui5_ui5/sap/<bsp name>

For Parameter, the name is sap-apf-configuration-id and the value is <application guid>.<configuration guid>.

/wp-content/uploads/2016/05/clipboard3_961745.png

3. Create a new evaluation and click button “Configure Tile”:

/wp-content/uploads/2016/05/clipboard4_961746.png

Here in navigation property maintenance area, select Drill down as Others and specify Semantic object and action as the same value you have entered in step 2. Save this tile configuration.

/wp-content/uploads/2016/05/clipboard4_961746.png

4. Now you should be able to search the tile created in step3 and add it to your launchpad via personalization.

/wp-content/uploads/2016/05/clipboard5_961747.png

/wp-content/uploads/2016/05/clipboard6_959417.png

To report this post you need to login first.

13 Comments

You must be Logged on to comment or reply to a post.

    1. Jerry Wang Post author

      Hello Karan,

      I have updated this blog to answer your question. Please kindly check if it helps.

      Best regards,

      Jerry

      (0) 
      1. Karan Bahl

        Hi Jerry,

        In my case, the metadata is not being called when I try to fetch the entity set. When I manually write the entity set, on selecting the value measure I get the popup failed to load metadata. In console, I observe the following message:

        Error Fetching All Measures : TypeError: Cannot read property ‘getAllMeasures’ of undefined .

        The problem stands unresolved

        Regards,

        Karan

        (0) 
        1. Yogendra Ahuja

          Hi Karan,

          I am also facing the same issue. Custom CDS and respective Odata Service is getting fetched while creating  KPI, but when I try to fetch corresponding EntitySet its shows “No Data”.Then I manually write the entity set, on selecting the value measure I get the popup failed to load metadata, same as yours. Could you please suggest how to fetch entityset.

          Thanks,

          (0) 
          1. Pavan Kumar Mallipamu

            Hi Yogendra,
            Can you please let me know how was the No Data issue resolved.
            as mentioned by Jerry i have checked and i am able to see the metadata and the entity type.But in the KPI configuration i am not getting any value in entityset. Do we have to do perform any activity in SEGW for the service created based on the CDS view. I have seen standard KPI apps created from CDS views but they donot have any configuration in SEGW.
            Can you please provide your insights.


            Thanks for the Help.

            Pavan

            (0) 
  1. Karan Bahl

    Hi Jerry,

    I was able to progress in this using another server. However, On my APF Tile I am getting the error, Could not open App. Please refer to the below screenshots for the error, console log and tile configuration. Please let me know if you can share any insight on what could be the issue.

    Regards,

    Karan

    1.PNG

    2.PNG

    3.PNG

    4.PNG

    (0) 
    1. Michael Appleby

      Hi Karan,

      Unless you are asking for clarification/correction of some part of the Document, please create a new Discussion marked as a Question.  The Comments section of a Blog (or Document) is not the right vehicle for asking questions as the results are not easily searchable.  Once your issue is solved, a Discussion with the solution (and marked with Correct Answer) makes the results visible to others experiencing a similar problem.  If a blog or document is related, put in a link.  Read the Getting Started documents (link at the top right) including the Rules of Engagement. 

      NOTE: Getting the link is easy enough for both the author and Blog.  Simply MouseOver the item, Right Click, and select Copy Shortcut.  Paste it into your Discussion.  You can also click on the url after pasting.  Click on the A to expand the options and select T (on the right) to Auto-Title the url.

      Thanks, Mike (Moderator)

      SAP Technology RIG

      (0) 
    1. Jocelyn Dart

      Hi Yogendra – please don’t put issues as comments to blogs.  Instead raise a discussion. That way you get the attention and potential assistance of everyone in the Fiori space rather than relying on the blog author to notice your post.

      Rgds,

      Jocelyn

      (0) 
        1. Jocelyn Dart

          Unfortunately can’t edit archived threads to respond. ┬áTry transaction SACM – sometimes it’s just the DCL grant authorizations for CDS views need to be generated. Otherwise you need to get into ABAP in Eclipse and use the data preview to check the underlying view and it’s dependencies.

          If you have further questions please ask them as a question and not on the blog.
          Again if you ask them here you are relying on only the author seeing them… that’s not going to get you a quick answer.

          (0) 

Leave a Reply