Getting Started

Objectives

After completing this lesson, you will be able to:

  • Identify and maximize the functionalities of Eclipse

ABAP Cloud Project Creation in ADT

Eclipse and ABAP Development Tools

To develop ABAP applications for SAP BTP, first download the Eclipse development environment for free from eclipse.org. Next, to obtain the ABAP Development Tools, do the following:

  1. Open Eclipse.
  2. Choose HelpInstall New Software.
  3. In the dialog box that appears, enter the following: https://tools.hana.ondemand.com/latest.
  4. Be sure to check for updates in HelpCheck for Updates.

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.

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 either to SAP BTP ABAP or to SAP S/4HANA Cloud.

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

Overview of the ABAP Environment

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.

How to Create a Service Key

Steps

  1. Log on to your global account.

  2. Navigate to the corresponding subaccount in which the ABAP service is running.

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

  4. Scroll to Instances.

  5. Find the ABAP instance.

  6. Choose the service instance for the ABAP system.

  7. In the Service Keys section of the details area, choose Create (from the button with 3 dots).

  8. Enter a service key name, for example, ABAP Training, and save.

How to Set Up the Service Key

To retrieve the service key, complete the following steps.

Steps

  1. Log on to your global account.

  2. Navigate to the corresponding subaccount in which the ABAP service is running.

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

  4. Scroll to Instances.

  5. Find the ABAP instance.

  6. In the Credentials column, there is a link to the service key.

  7. Select the link to access the Creating an ABAP Cloud Project dialog box.

  8. To copy the contents of the key to the clipboard, choose Copy JSON.

Create your ABAP Cloud Project

Business Example

You need to develop ABAP cloud applications.

Prerequisites

You must already have an SAP 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 the key combination, Ctrl + V, and choose Next.

    7. Choose Open Logon Page in Browser.

      When you see the message, 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