Skip to Content

In this blog post, we go through the steps required to install the SDK and corresponding tools to use it for the development of your SAP Cloud Platform application.

Note: This post is part of a series. For a complete overview visit the SAP S/4HANA Cloud SDK Overview.

Prepare the Infrastructure

You need to have Maven and JDK 8 installed. In case you do not have them, conduct the following steps.

Windows (Windows 7+ / Windows Server 2003+)

  1. Install Chocolatey (a package manager for Windows)
    @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

    For more information on Chocolatey and how to use it, visit the following page.

  2. Install Java Development Kit, if not yet availableInstall a specific JDK (e.g., JDK 8)
    choco install jdk8
  3. Install Maven
    choco install maven

Mac

  1. Install Homebrew (Mac Packetmanager to help with the remaining installation)
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  2. Install Java Development Kit, if not yet available
    brew update
    brew cask install java

    Tip: Install a specific JDK if you like with (e.g., JDK 8)

    brew cask install caskroom/versions/java8
  3. Install Maven
    brew update
    brew install maven

     

Install IDE

To develop your first “Hello World” application with SAP S/4HANA Cloud SDK, you can just use your command line and a simple text editor. However, for bigger development projects, you can work with the IDE of your choice.

We recommend to use Intellij IDEA or Eclipse. Follow the installation instructions of corresponding tools to prepare your IDE. In case you use Eclipse, make sure to install the maven plugin for Eclipse.

 

Troubleshooting with Corporate Proxies

Corporate proxies cause a lot of pain for developers. Some of the steps in the upcoming tutorial blogs will fail, if you sit behind a corporate proxy. If you cannot escape the proxy, you need to tell Maven where your proxy is located.
To do this, you need to cd to your ~/.m2 directory (e.g., Windows: C:/Users/<username>/.m2) and create a file called settings.xml. Then you paste the following content.

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <proxies>
    <proxy>
      <id>my_corp_proxy</id>
      <active>true</active>
      <protocol>http</protocol>
      <host>proxy</host>
      <port>8080</port>
      <username></username>
      <password></password>
      <nonProxyHosts>localhost,127.0.0.1</nonProxyHosts>
    </proxy>
  </proxies>
</settings>

After finishing these steps, you are ready to start the development of your SAP Cloud Platform applications with SAP S/4HANA Cloud SDK. If you are interested to learn more, stay tuned for the upcoming development topics that we will cover in the following posts: available project templates in the SDK, setting up the communication with SAP S/4HANA, deployment on Cloud Foundry, etc.

To report this post you need to login first.

4 Comments

You must be Logged on to comment or reply to a post.

  1. Emmanuel Dacosta

    Hello

    Great post.

    In the product page, it is noted the sdk can be used to develop apps for S4Cloud and S4onPre.

    I think the S4 server must be set in the Intellij IDEA or Eclipse options. Could you provide any step-by-step ?

    What is the difference between using the S4hana Cloud SDK in Eclipse IDE and the WEBIde for sap hana included in SAP HANA DB ?

    regards

    Emmanuel Da Costa

     

     

    (0) 
    1. Ekaterina Gavrilova Post author

      Hello Emmanuel,

      thanks a lot for your feedback. We are currently working on additional step by step scenarios for SAP S/4HANA Cloud SDK. You can always refer to the overview blog post for the full list of currently available tutorials. In particular, here is the blog post describing, how you can connect SAP S/4HANA and read the data via OData Service.

      With regard to the WEBIde support, the topic is currently in our roadmap and we will provide more information soon, after the SDK is generally available.

      Best regards,

      Ekaterina

      (0) 
  2. Julien Delvat

    Hi Ekatarina,

     

    Thanks for the detailed step-by-step documentation.

    Under “Install IDE”, could you please specify which version you recommend?
    I selected “Eclipse IDE for Java Developers” but I’m not sure that’s the right version.

    Could you please confirm?

     

    (0) 

Leave a Reply