Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
HenningH
Product and Topic Expert
Product and Topic Expert
2,060
Update April 2019: The SAP S/4HANA Cloud SDK is generally available since version 1.0.0. Please consider our announcement blog post. The following information about the beta is thus obsolete.





I'm happy to announce the beta of the SAP S/4HANA Cloud SDK for JavaScript, starting today! Thanks to an awesome team, we made it in time for SAP TechEd Las Vegas.

The SAP S/4HANA Cloud SDK makes it easy to develop extensions to SAP S/4HANA as applications on SAP Cloud Platform. Until today, we supported developers in Java and related programming languages to integrate SAP S/4HANA into their Cloud-native applications. With the SAP S/4HANA Cloud SDK for JavaScript (beta), we want to give you the same benefits also for your Node.js applications written in TypeScript or JavaScript.
Node.js as a platform for building Web server applications is perfect for quickly building high-performing applications in JavaScript or TypeScript. Both programming languages are very powerful and dynamic languages with a huge ecosystem. You can easily run Node.js applications in the Cloud Foundry environment of SAP Cloud Platform-

Read on below for details on the features of the beta, and to learn how to get acess to the beta. If you are eager to see the SDK for JavaScript in action, jump over to our tutorial which walks you through all steps necessary to develop and deploy your first Node.js extension of SAP S/4HANA Cloud, using the SAP S/4HANA Cloud SDK for JavaScript.


What's in it for JavaScript developers?


You want to focus on your business logic? You do not want to write boilerplate code again and again? You want that someone takes care of the low-level infrastructure tasks of connecting to your downstream systems such as SAP S/4HANA? You are developing in TypeScript or JavaScript, or you are eager to start doing so? Then the SAP S/4HANA Cloud SDK for JavaScript is for you!

Here's a short sneak peek. Interacting with SAP S/4HANA to retrieve business partners, or any other business object, is as easy as this:
BusinessPartner.requestBuilder()
.getAll()
.select(BusinessPartner.LAST_NAME)
.filter(BusinessPartner.FIRST_NAME.equals("John"))
.execute()
.then((businessPartners: BusinessPartner[]) => {
// process result
});

The above has been written in TypeScript, the pure JavaScript-variant is almost the same.

You may know the benefits of the Java virtual data model (VDM) provided by the SAP S/4HANA Cloud SDK. Now, the same benefits are also available in JavaScript. To let you focus on your business logic, the SDK handles lower level tasks such as configuration and authentication. You can see right in your development environment what operations are available, because the SDK offers an easily accessible and discoverable representation of the public API of SAP S/4HANA Cloud. You can interact with any OData service using a fluent JavaScript API. You do not need to know the intricacies of the protocol; the SDK will take care of constructing the OData request and parsing the response. If you are using TypeScript, you also gain type-safety, which makes coding mistakes easier to spot at compile time.
Update March 2019: A big "thank you" to everyone who joined the beta. Please note that we no longer look for additional participants and have closed the beta. Stay tuned for further updates! Follow the tag SAP S/4HANA Cloud SDK.





How to join the beta


We hope the above raised your interest in the SAP S/4HANA Cloud SDK for JavaScript. As mentioned, we have launched a beta to gather your feedback. The beta is not meant for productive use. The feature set of the SDK for JavaScript is not yet complete, and the API will change.

For legal reasons, the beta modules of the SDK for JavaScript are not published in an npm registry. Instead, follow the process outlined below to get access.

Prerequisites: As a beta, access to the SAP S/4HANA Cloud SDK for JavaScript is exclusively reserved for SAP partners and customers. If your company is an SAP partner or customer, you need to sign a Test and Evaluation Agreement (TEA). You need an S-User ID to access the page for signing the TEA.

In detail, follow these steps to get access to the beta:

  1. Use the following link to write us a mail asking for access: s4sdk@sap.com. Please provide a few details on your company and your use case for the SDK for JavaScript.

  2. Visit this link to the online TEA, fill in the fields, read and accept the online Test and Evaluation Agreement (TEA)1. This will trigger a workflow in SAP's Software Delivery Department.

  3. Once this is complete, we will send you a mail with details on how to access the SAP S/4HANA Cloud SDK for JavaScript (beta). Once you have received that mail, you are ready to start with the tutorial.

  4. The main purpose of this beta is gathering your valuable feedback. Please send us your feedback via mail.


The beta period ends 90 days after signing the TEA.

We hope you are as excited about the SAP S/4HANA Cloud SDK for JavaScript (beta) as we are. Please leave your thoughts and comments in the comment section of this blog post.

If you are at SAP TechEd Las Vegas, feel free to drop by and meet us to exchange about your plans with JavaScript - or anything else related to the SDK.




1 - Please note that the TEA is a standard agreement which has been created and approved by the SAP SE Legal Department, therefore the TEA content is not negotiable. SAP reserves the right to limit access to the beta. Thank you for your understanding.