Application Development and Automation Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
Megastar
Explorer
8,753

To consume a RAP (RESTful ABAP Programming) application in SAP Fiori using SAP Business Application Studio (BAS), you will typically follow a series of steps involving the creation of the RAP service, exposing it as a Cloud RAP service, and integrating it into a Fiori application. Below is an end-to-end guide outlining these steps. 

 Prerequisites 

Create one RAP application (Managed/Unmanaged/Unmanaged & Save). 

Step-by-Step Guide 

 Login to your BTP account, check if there is any destination, if not Create a destination to Cloud RAP   service. 

arunkumarn1998_0-1732259698904.png

 Login to BTP account, Click on SAP Business Application Studio (BAS). 

arunkumarn1998_1-1732259698906.png

  Provide the credentials (BTP Credentials), Click on Continue. 

arunkumarn1998_2-1732259698907.png

 Click on OK Create Dev Space. 

arunkumarn1998_3-1732259698909.png

arunkumarn1998_4-1732259698909.png

arunkumarn1998_5-1732259698910.png

arunkumarn1998_6-1732259698911.png

arunkumarn1998_7-1732259698912.png

 Click on New Project from Template. 

arunkumarn1998_8-1732259698913.png

  Select SAP Fiori generator template 

arunkumarn1998_28-1732260578149.png

  Select the template, and click on Next 

arunkumarn1998_10-1732259698915.png

  Select the Data source which you want to create Destination. 

arunkumarn1998_29-1732260618053.png

  Select the System (ABAP environment on SAP BTP). 

  Here there is no ABAP Environments, it requires credentials to do this follow the bellow steps. 

arunkumarn1998_12-1732259698916.png  Click three dots (bellow left side), select Cloud Foundry. 

arunkumarn1998_13-1732259698917.png

  Click on Services, and login required,  

arunkumarn1998_14-1732259698918.png  Select the Credentials radio button and provide your username (your BTP account mail) and Password. 

arunkumarn1998_15-1732259698919.png

 Go back and check the destination. 

arunkumarn1998_16-1732259698919.png

  Provide Cloud foundry Details 

  Select Cloud foundry Organization (System generated) 

  Select your Cloud foundry space. 

arunkumarn1998_17-1732259698920.png

  Organization and space have been set successfully. 

  Refresh the page. 

arunkumarn1998_18-1732259698921.png

 Now select the ABAP Environment and your RAP Service, then Click on Next. 

arunkumarn1998_19-1732259698922.png

 Select the Main entity and Navigation Entity and table type as responsive, then click on next. 

arunkumarn1998_20-1732259698923.png

 Fill in the required fields, click on finish. 

arunkumarn1998_21-1732259698923.png

arunkumarn1998_22-1732259698924.png

arunkumarn1998_23-1732259698925.png

arunkumarn1998_24-1732259698925.png

 Right click on webapp, below the folder. Click on preview application. 

arunkumarn1998_25-1732259698926.png

 Select the start Fiori run test. 

arunkumarn1998_26-1732259698927.png

  Perform modify operations. 

arunkumarn1998_27-1732259698928.png

 

Conclusion 

By following this guide, you will have created and consumed a RAP service using SAP Business Application Studio for a Fiori application. This approach leverages the power of SAP Fiori’s UI5 framework, combined with the RAP model for backend development, making it possible to efficiently create modern SAP Fiori apps. 

 

2 Comments