Monday 12 July 2021

Setup the dev environment for ABAP RESTfull application programming (RAP) using SAP BTP ABAP environment and eclipse ADT.

Setup the development environment for ABAP RESTfull application programming (RAP) using SAP BTP ABAP environment and eclipse ADT.

Getting started SAP BTP ABAP environment with Eclipse

SAP Business Technology platform (BTP) providing us ABAP environment.

In this blog, I would like to explain the process of connecting this SAP BTP ABAP environment platform to the eclipse.

This requires the below two steps.

◉ Creating SAP BTP ABAP environment Service instance and service key.

◉ Connecting SAP BTP ABAP environment to the Eclipse.

Step 1: Creating SAP BTP ABAP environment Service instance and service key.

Prerequisite for this:

◉ Having SAP BTP trial account.

◉ subaccount and dev space with Europe (Frankfurt) or US East (VA) as a region in the trial account

The below figure represents the SAP BTP trial account with subaccount of AWS  US East(VA).

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Certification, SAP ABAP Prep, SAP ABAP Study Material

Just click on subaccount and navigate to the Service marketplace tab.

In the filter just type ABAP, then you will find ABAP environment as shown in the below figure.

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Certification, SAP ABAP Prep, SAP ABAP Study Material

Select the ABAP environment from the above figure which brings you the below screen where we can create a Service instance by using Create button.

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Certification, SAP ABAP Prep, SAP ABAP Study Material

Once you click on create button the below popup screen will appear and fill in the details like below.

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Certification, SAP ABAP Prep, SAP ABAP Study Material

please fill in the details below on the popup screen.

Note we need to create a dev space before we came here if we do not have already created it.

In my case, I selected dev space and gave the instance name as abap-rap.

Note as its trail account our plan will be shared by default.

Click on the Next button and then please give your email address in a JSON object and then click on next.

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Certification, SAP ABAP Prep, SAP ABAP Study Material

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Certification, SAP ABAP Prep, SAP ABAP Study Material

Complete the creation of an instance by clicking on create button.

The below success message alert will come which says our Service instance was created.

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Certification, SAP ABAP Prep, SAP ABAP Study Material

Now go to the Instances and subscriptions tab and select the instance which we created in my case /abap-rap.

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Certification, SAP ABAP Prep, SAP ABAP Study Material

As shown in the above figure by using create button we can create a Service key that we need while connecting the SAP BTP ABAP environment to eclipse.

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Certification, SAP ABAP Prep, SAP ABAP Study Material

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Certification, SAP ABAP Prep, SAP ABAP Study Material

You can see that the

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Certification, SAP ABAP Prep, SAP ABAP Study Material

service key was created

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Certification, SAP ABAP Prep, SAP ABAP Study Material

Step 2: Connecting SAP BTP ABAP environment to the Eclipse.


Prerequisite:

Installing ABAP development tools (ADT) on eclipse.

You can find detailed information on installing ADT on the eclipse in this URI.

https://tools.hana.ondemand.com/#abap

Once you set up the Eclipse ADT, please launch the eclipse with your workspace.

Within the eclipse, we have an option called Open Perspective where we can select various views for each technology object’s development.

As we want to work with ABAP, Please select ABAP Perspective.

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Certification, SAP ABAP Prep, SAP ABAP Study Material

In the ABAP Perspective click on Create an ABAP Project.

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Certification, SAP ABAP Prep, SAP ABAP Study Material

In the below screen select the Service key Option.

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Certification, SAP ABAP Prep, SAP ABAP Study Material.

Add Service key which we already created in the below screen

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Certification, SAP ABAP Prep, SAP ABAP Study Material

Once you add the Service key it launches the below screen.

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Certification, SAP ABAP Prep, SAP ABAP Study Material

By using the above screen you can navigate to your cloud BTP and authenticate yourself. once you are done with your successful Authentication you are ready to work on the Cloud ABAP environment using Eclipse ADT.

SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Certification, SAP ABAP Prep, SAP ABAP Study Material

No comments:

Post a Comment