Getting Started

Objective

After completing this lesson, you will be able to Setup ABAP Cloud projects in the ABAP Development Tools.

ABAP Cloud Project Creation in the ABAP Development Tools

Different Types of ABAP Projects

As a development environment, Eclipse is not embedded in the ABAP system. Instead, you must connect it to each ABAP system in which you want it to work. Eclipse represents each connection as a project.

Eclipse can connect to ABAP on-premise or ABAP Cloud projects

There are two kinds of projects in ADT:

  1. ABAP Projects: This connects to an on-premise ABAP system.
  2. ABAP Cloud Projects: This connects to SAP BTP, ABAP or SAP S/4HANA Cloud.

In this unit, we will only look at the cloud environment.

Overview of the ABAP Environment

The ABAP Instance is located within a runtime in the respective SAP Business Technology Platform Subaccount

The SAP Business Technology Platform is SAP's platform as a service (PaaS). To access it, you need to create a global account. Within your global account are subaccounts. Each subaccount can be configured differently so that a single enterprise can run several platforms but manage its subscription using a single global account. You deploy a runtime inside the subaccount, such as Cloud Foundry or Kyma. Only then can you deploy an ABAP instance.

This course uses an ABAP instance deployed on the SAP Business Technology Platform or SAP BTP. The material is also relevant for other ABAP deployments, such as an on-premise SAP S/4HANA system or an SAP S/4HANA Cloud system.

One option to connect Eclipse to your ABAP cloud environment is with a Service Key. The following shows how to create a service key in the ABAP Cloud environment if you don't already have one. The Service Key must then be copied as a JSON file to create an ABAP Cloud project in Eclipse.

Note

This course will use the SAP Business Technology Platform (BTP) ABAP Service in the exercises and demonstrations. If you require access to a BTP ABAP Service you can create a trial account by following the directions from https://developers.sap.com/tutorials/hcp-create-trial-account.html

How to Create an ABAP Instance and Service Key

Steps

  1. Log on to your global account.

  2. Navigate to the subaccount.

  3. Choose Instances and Subscriptions on the left-hand side of the screen.

  4. Scroll to Instances.

  5. Find the ABAP instance. If there is no ABAP instance create one with the following steps:

    1. Choose Create and create a new instance for the ABAP environment with an instance name such as S4D100.

    2. Enter your e-mail address in the email property of the json file.

    3. On the summary page choose Create to build your ABAP environment instance.

  6. Choose the service instance for the ABAP system.

  7. If there is no Service Key then In the Service Keys section of the details area, choose Create (from the button with 3 dots). Enter a service key name, for example, S4D100, and press Create to generate your service key.

Create your ABAP Cloud Project

Business Example

You need to develop ABAP cloud applications.

Prerequisites

You must already have an SAP Business Technology Platform (BTP) account with an ABAP service and service key. You must also have installed Eclipse and the SAP ABAP Development Tools.

Steps

  1. Log on to your subaccount in SAP BTP and copy the ABAP service key into your clipboard.

    1. Start the SAP BTP Cockpit and choose the subaccount containing your ABAP service.

    2. Choose Instances and Subscriptions.

    3. In the Instances box, select the Key(s) entry under Credentials.

    4. Choose Copy JSON, and select Close.

  2. Open Eclipse and switch to the ABAP perspective.

    1. Open Eclipse and close the Welcome tab (if it is open).

    2. Choose WindowPerspectiveOpen PerspectiveOther.

    3. In the dialog box, double-click ABAP.

    4. Choose FileNewABAP Cloud Project.

    5. Select Use a Service Key and choose Next.

    6. Paste the service key into the editor with a right-click and by choosing Paste. Choose Next.

    7. Choose Open Logon Page in the browser. If you need to login, use the credentials that you used to login to BTP.

      Afterward, you will see a message that you have been successfully logged on.

    8. Close the browser window and return to Eclipse.

    9. To finish creating the project, choose Finish.

    Practice

Log in to track your progress & complete quizzes