Friday, 22 November 2024

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

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. 

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

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

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

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

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

Click on OK Create Dev Space.

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

Click on New Project from Template.

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

Select SAP Fiori generator template

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

Select the template, and click on Next

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

Select the Data source which you want to create Destination.

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

Select the System (ABAP environment on SAP BTP). 

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

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

Click three dots (bellow left side), select Cloud Foundry.

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

Click on Services, and login required, 

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

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

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

Go back and check the destination.

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

Provide Cloud foundry Details 

Select Cloud foundry Organization (System generated) 

Select your Cloud foundry space.

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

Organization and space have been set successfully. 

Refresh the page. 

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

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

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

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

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

Fill in the required fields, click on finish.

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

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

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

Select the start Fiori run test.

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

Perform modify operations.

End-to-End Guide to Consume RAP application to Fiori Using SAP Business Application Studio

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.

No comments:

Post a Comment