<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=1195114&amp;fmt=gif">

How to kickstart a Mendix app based on SAP data

Micha Friede
Micha Friede


This blog is about the 'Build and Run a Mendix Application on SAP Cloud Platform in Fiori Look and Feel' video, presented by Erno Rorive, Mendix. You can watch the video here.

After a short intro about the Mendix-SAP partnership, Erno Rorive takes us through a well-paced, step-by-step explanation of setting up a working application connected to SAP.

I can recommend this session to anyone who wants to know more about how to run a Mendix application on top of SAP.

The first step is to set up a demo environment in the SAP Cloud, including a gateway that will give you access to a fully working SAP backend.

In this example, it’s done using basic authentication (username/password). In one of my clients’ projects, we prefer principal propagation. This uses the SAP backend credentials of the person logged into the system, making it more secure.

In the video, a Fiori template is used as a basis. This is a good starting point if you want your application to have the same look and feel as regular SAP applications. Personally, I think the design is a bit outdated, so we are using the Atlas UI for more consumer-oriented apps, as well as Fiori for backend apps in some cases.
Low Code and High Speed go hand in hand, but how to avoid Code Mistakes?  We built the Application Code Reviewer for Mendix. Check it out, download the  mini book and get going!

The third step is to create the application via Mx Studio Pro, in which the OData Model Creator for SAP solutions is used to import the SAP model into the Mendix app. At this point, Erno skips a couple of steps. I would have liked him to show what modules were automatically added by the Fiori template, because these are a prerequisite for some of the following steps. But you can find all the information you need on: https://docs.mendix.com/partners/sap/

After setting up the basic structure, Erno steps up the pace to guide you through retrieving data via the OData connection, by creating a microflow using out-of-the-box OData building blocks and setting up the page. Fortunately, you can pause to see exactly what he’s doing. But alternatively, I can highly recommend looking at one of the learning paths created for SAP in which you can get some hands-on experience: https://gettingstarted.mendixcloud.com/link/path/32/Learn-to-Build-an-SAP-App

In the fourth step, deployment, services and logging are discussed. Access to these features may depend on your SAP access rights. It’s fine in the demo environment, but in real life you’ll want to get in touch with your SAP specialists.

The final step is to connect the application role to the SAP role. Again, this is an easy setup, and then you’re ready to look at the application using single sign-on with SAP. For our client, we took it one step further: connecting the SAP roles to the active directory. This means that based on your Office account, you’re automatically linked to the correct applications and access rights. A while ago, I co-hosted a meetup about securing your data. We discussed this, as well as how to integrate with the Smart Digital Factory .

Overall, this is an interesting video that highlights the ease of integration with SAP. But you do need some additional guidance to get started.

New call-to-action

Micha Friede

Micha Friede

Micha Friede has been working in the Service Management industry for more than 25 years, of which almost 15 years at Mansystems and an affiliate company. His main focus has always been on the customer side of IT, especially customer interaction. Micha is convinced that organisations that surprise their customers by exceeding the service that was promised, will outlive their competitors.

Related posts

Cloud architecture patterns

How to offload work from Mendix to Azure? As someone who has been working with Mendix for several years I am acutely aware of the limitations of the ...

Read More

Best practices for writing custom actions in Mendix

Since actions are the main way of using many app store modules, it is worth investing some time and thought in designing good actions. Here are ...

Read More

Best practice for adding a java dependency to Mendix

My journey with Mendix started more than four years ago. Due to the nature of my Mendix projects many times I had to use third-party java libraries ...

Read More