Skip to main content
SAP Fiori

SAP BEx Query to Fiori App – From ASUG MN 2015

Gavin Quinn Gavin Quinn, Founder & CEO 5 min read

Fiori is great, but how do you get started?

In this blog I share how anyone can take an incredible amount of data in SAP BW and bring it directly into SAP Fiori to enable instant mobile reports. Last week, I was honored to present at the ASUG Minnesota Chapter Meeting on this topic. The session started many great conversations, and I wanted to share those discussions with the larger community. I’ve tried to capture the comments in this blog, but as always, please feel free to contact us if you have any questions.

Learning Points:

  • Fiori is the new UX for SAP
  • S/4HANA & Fact Sheets are awesome
  • Make any BEx Query a Fiori App in a few steps today

SAP Fiori launchpad in a browser with an ASUG 2015 group holding a BEx Query sales tile

Avoid being the next Avon:

Before we start, Avon is a great example that I regularly use in discussions with Fiori customers. It shows how a seemingly perfectly executed SAP project can go horribly wrong when design is not truly considered from the beginning. In 2013, Avon was forced to cancel the roll out of their new order system because of a “steep drop in representatives.” It seems the system “works as designed” but wasn’t designed to work– usability was the reason. Avon’s workforce would rather quit than use the system. After a $125M write-down, and a cancelled roll-out, Dec 11, 2013 – WSJ, we can see why usability is so very important to consider.

Let’s make this happen:

Now let’s consider the steps required to convert any BEx query into a Fiori app. To summarize:

  • Fiori & Launchpad
  • Architecture
  • Turn a BEx query into a Gateway service
  • Make a Fiori Chart from that service
  • Turn it into a mobile app

Fiori Launchpad:

  • Role-based navigation – similar to SAP Portal.
  • Dynamic tiles – KPIs and other good info all in one place.
  • Catalogs – loads of content available.
  • Deep-linking – send a link for a particular view of a single item to a friend.
  • Jump-to links – navigate from app to app.
  • HANA Search (next slide)

SAP Fiori launchpad with role-based tile groups for Quality Engineer and Employee (HCM) apps

HANA Search:

  • Imagine a Google-like search to navigate to anything in SAP
  • Search apps and any object from Fiori
  • Fact Sheets are extremely powerful. See my other blog.

Fiori search for material CH-3200 returning materials, articles, movements and inspection lots

Fact Sheets:

  • HANA only
  • KPIs
  • Jump-to other fact sheets
  • Fiori Transactions can be launched
  • SAPGUI traditional style can be launched too

SAP Fiori fact sheet for article CH-3200 GranuSAP showing stock KPI and general information

Architecture:

  • Fiori Client
  • NetWeaver Gateway (on ABAP)
  • BW needs IW_BEP installed (default after 7.4)

Architecture diagram: Fiori Client on a phone over HTTPS to NetWeaver Gateway 7.4, then RFC to SAP BW 7.3+

Convert BEx Query to ODATA

  • BEx Query Designer – Enable Easy Query Option (Also works with MDX, but more difficult)

BEx Query Designer for the sales order query with the By Easy Query release option in Properties

Shout-out:

This blog series by Chandan is great: https://scn.sap.com/community/gateway/blog/2012/12/08/transform-sap-bw-queries-into-odata-service-generation-and-activation

Try out the BEx Query in Analyzer to get comfortable with the data. We will pull in order value by month and descend the last twelve months.

BEx Analyzer report of sales order and revenue values with incoming orders by month and material

You can also preview in transaction EQMANAGER.

Easy Query Management in BW listing query ZSD_C03_Q100 Sales Order and Sales Revenue Values

Easy Query test output for ZSD_C03_Q100 with incoming orders and returns values by month

  • In BW, go to t-code SEGW.
  • Create a new project.
  • Right-click on Data Model and select Redefine a BW Data Source.
  • Choose Controller for Easy Query.
  • Choose your Query from the picker.

Gateway Service Builder redefine wizard with Controller for Easy Queries and query ZSD_C03_Q100 picked

  • Accept all entities.
  • Accept all associations (this is how ODATA will do navigation and F4-style lookups).
  • Generate the project.

Service Builder wizard step 3 listing the selected entity types and associations for the BEx query model

  • Create a new service in the Gateway HUB with this model in transaction: /IWFND/MAINT_SERVICE
  • Activate and test the service.
  • Pull up the $metadata by appending it to the URL.

Browser showing the OData $metadata XML document for the generated Gateway service

Use ODATA standard notation to set up a query URL: /sap/opu/odata/sap/ZGQ_BW_1_SRV/ZSD_C03_Q100Results?$select=A0CALMONTH,A0NE7PB7ADBFJXU0B6OB8636XO&$top=12&$orderby=A0CALMONTH%20desc&$skip=4

Translated:

  • Get the result set
  • Select dimension month
  • Select measure A0NE…(from $metadata that maps to sales)
  • Grab the top 12 and sort in descending order
  • Skip 4 for ASUG demo purposes…

Make a Chart in Fiori – Step 1

Now that we have ODATA, we can bind it to SAPUI5 in Fiori.

Check out the chart types you may want: https://sapui5.hana.ondemand.com/sdk/explored.html#/entity/sap.viz.ui5.controls.VizFrame/samples

Sample SAPUI5 VizFrame combination chart of cost, revenue and profit by year

Make a Fiori Chart – Step 2

Create a new SAPUI5 Mobile Project in Web IDE or Eclipse with:

  • Index.html
  • Component.js
  • demo_chart2.view.xml
  • demo_chart2.controller.js

I shared the code here: https://web.archive.org/web/20180611002723/https://github.com/MindsetConsulting/asug_bex_query_fiori_demo

SAP Web IDE editing the demo_chart2 view, binding a VizFrame bar chart to the BEx OData model

Publish to Gateway:

Demo BEx Report app running from Gateway with a Sales by Month bar chart

Or launch from SAP Fiori Client:

iPhone home screen with the SAP Fiori Client app icon

Click the tile:

Fiori launchpad on iPhone showing the ASUG 2015 BEx Query tile

And see the view:

Sales by Month bar chart from the BEx query rendered in the Fiori app on iPhone

Key Learnings:

  • Fiori is the new SAP User Experience
  • Get started now bringing BW data to Fiori
  • Enable BW with Easy Query
  • Use more advanced MDX if necessary
  • OData makes it easy to consume data

Designing the Enterprise:

As you know, SAP is great, but it needs our help to make it simple, mobile, and beautiful. With a tool like Fiori, we’re able to make the software we use every day better for the companies we work for. I hope this blog helps you to begin turning your BEx Queries into Fiori apps.

And finally, I hope to see many of you next week at SAPPHIRE NOW. We’ll put up a more formal post soon, but if you’ll be there, here are the places you can find us:

  • Panel presentation (ASUG): SAP QM + Fiori, PL1287 (Wed 5/6 4:15 PM S310A)
  • Internet of Things booth: SmartWatch Beacons with SAP PM, PT20267 (Digital with API), LB20588 (Explore Innovations in Asset Management), and LB206 EAM station, with a video at PT421, HANA Cloud Demos.
  • Fiori / User Experience booth: Google extensions for Fiori

If you are interested in viewing similar articles, visit our blog, here.

View our LinkedIn, here.

Share