Saturday 20 June 2020

How to setup WebIDE Project for OData service generated using Restful ABAP Programming Model

In this blog I will show the how easily we can set up the WebIDE to create a Fiori project which will utilize the OData service created in backend using Restful ABAP Programming Model.

Steps to be followed are –

1. Generate a Service binding based on Service Definition. Activated service binding will look like below in ABAP Development Toolkit  –

ABAP RESTful Programming Model, SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Guides

2. Same service will look like below in transaction – /IWFND/MAINT_SERVICE –

ABAP RESTful Programming Model, SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Guides

3. Now, we will move to SAP WebIDE and create the skeletal project which will use above service    In WebIDE, click on ‘New’ -> ‘Project from Template’ as below –

ABAP RESTful Programming Model, SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Guides

4. Choose the details as below –

ABAP RESTful Programming Model, SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Guides

ABAP RESTful Programming Model, SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Guides

If asked, enter the backend credentials as

ABAP RESTful Programming Model, SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Guides

Choose the same OData Service as shown in step 1.

ABAP RESTful Programming Model, SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Guides

Now, we can expand the service and see the created entities –

ABAP RESTful Programming Model, SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Guides

Final step –

ABAP RESTful Programming Model, SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Guides

Please click ‘Finish’, now you will be able to work with the application.

No comments:

Post a Comment