Skip to Content
Technical Articles
Author's profile photo Bunny Arora

Consuming services in UI for SAP S/4HANA Cloud (ABAP Cloud Project)

Problem Statement: For example you created a RAP based application in S/4HANA Public Cloud system and now you want to test it locally(Fiori Elements Preview) but you end up having authorization issue. Like below:

For On-Premise systems this issue won’t arise while testing locally.


To consume services in an SAP Fiori app, you need to define an external app and assign the services to the app. This external app represents the back end of an application. It ensures that you can define the necessary authorizations and enables your business user to consume these services in the SAP Fiori app.

You first create the app itself and as a next step you can create business catalogs and business role templates you can use as a basis for creating business roles.

This is how it will go:


  1. IAM Apps: Open the context menu and choose File > New > Other ABAP Repository  ObjectCloud Identity and Access Management > IAM App > Next to launch the creation wizard.
  2. On the services tab add your service name and activate your IAM app. When creating this app choose app type as External (An external app represents an app extension. It defines what is included in a tile (this is determined by the services). You can use the external app to bundle services, define authorizations and assign business catalogs.). There are 3 more different types please refer this link:-
  3. Business Catalogs: Next step is to define a business catalog and add our service to it and activate it. Go to File > New > Other ABAP Repository Object > Cloud Identity and Access Management > Business Catalog.
  4. In tab Apps add your IAM app. After adding the app you can click on the button “Publish Locally
  5. Business Role Template: Now we need to define business role template, Go to File > New > Other ABAP Repository Object > Cloud Identity and Access Management > Business Role Template.
  6. Add your Business catalog ID and Press Publish Locally.
  7. Business Role: Now that our business role template is there we need to make a role using this template. LogIn to your S/4 Cloud System > Go to Business Role Templates app > Create a business role for it and assign users to it.

    Now you can test with Fiori Elements Preview.


Summary: This short blog can help ABAP devs consume UI services whilest working with Embedded Steampunk. Since this is a much newer approach to run your services on front end unlike in the On-Premise world.

Since i am also new to ABAP cloud , Expert suggestions & feedbacks are much appreciated.

You can also head over to below SAP portal for more detailed help:

SAP S/4HANA Cloud ABAP Environment | SAP Help Portal


If you like this blog post you can follow me for more blogs i will try to make in coming future specifically related to embedded steampunk.


Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Nina Ruoff
      Nina Ruoff

      Hi Bunny,

      super helpful article! I tried and I fail when adding the service:



      Adding service to IAM App


      Do you have an idea what the problem could be? The service is there an published,

      Thanks a lot,


      Author's profile photo Bunny Arora
      Bunny Arora
      Blog Post Author

      Hello Nina ,

      Thanks for your appreciation.

      The only way i could replicate your issue is to add odata v2 service and selecting odata v4 in the drop down. Can you just check if this is not the case for you? Also make sure you're selecting External App.

      Author's profile photo Nina Ruoff
      Nina Ruoff

      Thank you!  It was an v4 service. I could not resolve it. I created a new service binding and added the same service, published it and could add it. So problem solved. No Idea why the first try failed.


      Regards Nina

      Author's profile photo Abhishek Dalakoti
      Abhishek Dalakoti

      Thanks for Sharing!


      Author's profile photo Saikat chakraborty
      Saikat chakraborty

      Hi Bunny,

      Thanks for the amazing article!
      I am trying to look for possible replacement of SM30 table maintenance and I see that Custom Business Configuration is the path forward. However, I am not able to create IAM app in ADT because of an error, "IAM app is not supported in the selected project". Mine is an on premise system, I was able to generate the repository artifacts for the business configuration objects following the guide --> Create a SAP Fiori based Table Maintenance app with SAP BTP, ABAP Environment | SAP Tutorials, however I am stuck with the IAM app.

      Is there an alternative way to the same?
      I am looking for an option like SM30 with multi line edit capabilities.
      Since the artifacts got generated, I was thinking like creating a separate FIORI app by consuming the service if I am not able create the IAM app.

      Please let me know your valuable input on the same.

      Thanks and Regards,