Skip to Content

As announced at TechEd in Las Vegas on October 2, 2018, SAP Cloud Platform now includes fully-managed services which run in a serverless environment.

You can use these services standalone, or in combination, to build responsive applications, which are equipped to react to business changes in real-time. These services are designed to facilitate the development of microservices and help you build responsive (event-driven) applications and customer-specific extensions.

This blog provides a basic introduction to the new SAP Cloud Platform Functions (beta) service and explains the preliminary steps required to enable beta features in your subaccount, maintain entitlements, and create a service instance. Once everything is set up as outlined in this blog, you can follow the documentation and start developing your first functions in programming language Node.js.

New serverless offering on SAP Cloud Platform

These services run in a serverless environment, meaning it is SAP as cloud provider (not you), who is responsible for managing and dynamically scaling the resources required for your applications. Resource utilization is closely monitored and caters for micro-billing meaning you pay only for the resources your applications use. Pay-per-use details are published with global availability of each service and do not apply to beta releases.

For more information, see Serverless Computing on SAP Cloud Platform

SAP Cloud Platform Functions (beta)

SAP Cloud Platform Functions is a fully-managed cloud service for building, running, and managing ephemeral application functions. You can use functions to build new applications and extensions that react to triggers across clouds and landscapes in a serverless environment. By developing atomic functions, you can deploy additional business logic on demand in response to defined triggers (e.g. events, HTTP calls, and timers) without changing underlying business processes.

You can use functions to support the following use cases:

  • Develop microservices: write loosely couple atomic logic that is quick to build and scale automatically.
  • Support IoT/Big Data scenarios: automatically invoke functions to process, transform, and store data from thousands of sensors to the cloud.
  • Enable responsive, event-driven applications: use functions to listen and respond to events across the Cloud platform and external events to validate data, process files, and send notifications.
  • Streamline processes: create time-based triggers to schedule recurring activities such as reporting and clean-up jobs.

Using SAP Cloud Platform Functions (beta) with other services

You can use SAP Cloud Platform Functions (beta) with other services such as SAP Cloud Platform Enterprise Messaging and SAP Cloud Platform Backend service (beta) to extend SAP applications.

If you want to develop responsive, event-driven applications, use with SAP Cloud Platform Enterprise Messaging to transport events from SAP S/4HANA and SAP C/4HANA, for example, that trigger functions and deploy additional business logic. Further event sources are planned.

Use SAP Cloud Platform Functions (beta) together with SAP Cloud Platform Backend service (beta) when your application extensions need to manage or access data and you require a fully-functional backend with data persistence and caching on the fly.

Getting started with SAP Cloud Platform Functions (beta)

Ensure beta features are enabled for your subaccount

(Global) Administrators can enable beta features in your subaccount on SAP Cloud Platform, Cloud Foundry so you can view all available beta features, including SAP Cloud Platform Functions. From within your subaccount, you won’t see beta features automatically, but an administrator can set this up for you.

To find out if beta features are enabled for your subaccount, choose the Information icon in your subaccount for more information. If beta features are currently disabled in your subaccount, contact your administrator.

To enable beta features in your subaccount, administrators can choose the Edit icon in the subaccount and select Enable beta features and choose Save.

Maintain entitlements for your subaccount

  1. Administrators need to select the global account and choose Entitlements from the menu.
  2. Select Functions from the drop-down menu and choose Edit.
  3. Use the Addition icon to add the entitlement for your subaccount, which then changes the display from 0 to 1.
  4. Choose Save to update the entitlement for your subaccount so you can access the Functions tile from the Service Marketplace.

Create a service instances for Functions

After an administrator has enabled beta features for your subaccount and set up the entitlement for your subaccount, you can create a service instance for Functions.

  1. Navigate to your dev subspace in your subaccount.
  2. Choose Services –> Service Marketplace from the menu.
  3. Enter Functions in the search field to display the Functions service tile.
  4. Click on the Functions tile and choose Instances.
  5. To create a new service instance for Functions, choose New Instance.
  6. In the Create Instance dialog box, simply choose Next. Since this is a beta release, the only plan available is beta and this is displayed by default.
  7. Choose Next in the subsequent dialog box because specifying parameters is optional.
  8. Choose Next again in the subsequent dialog box because assigning an application is optional.
  9. In the subsequent dialog box, enter a name for your newly created instance:
  10. The newly created service instance is listed on the Instances screen together with its Name, Plan (beta), Last Operation (Created), and Available Actions.

After you have set up SAP Cloud Platform Functions (beta), refer to the documentation for further details about how to start developing functions.

Summary

This blog provided you with a basic introduction to the new beta service and explained the initial setup. Start working with this beta release to get a feel for working with functions and provide us with feedback so the service can be improved before it becomes generally available in 2019. Please note that since it is a beta version, there is no maintenance guarantee. In case of errors, we request you delete and recreate the service instance.

This blog is the first of a series to explain how to start working with this new service, which is part of the SAP Cloud Platform serverless offering. We will be publishing further blogs to explain how to take advantage of the full functional scope as a standalone service and in conjunction with other services like SAP Cloud Platform Enterprise Messaging and SAP Cloud Platform Backend service (beta).

More information:

Serverless Computing on SAP Cloud Platform

TechEd Las Vegas Keynote: Extend Your Digital Core with Enterprise-Ready Serverless and Event-Driven Computing on SAP Cloud Platform

 

To report this post you need to login first.

7 Comments

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

    1. yasuyuki uno

      You can try it in CF-trial account.

      0. Go to your CF trial home.

      1. Create new subaccount (select the Enable Beta Features option).

      2. Configure the subaccount.(Setting “Service Plans”, “Application Runtime“, and “Functions”)

      Hope your help.

      (0) 
        1. Wolfgang Röckelein

          Addendum: After a lot of trial creation and deletion: this seems to be only be available in eu10 ie AWS Frankfurt but eu10 has currently problems with creating and deleting subaccounts/organisations

          (0) 
          1. Elisabeth Riemann Post author

            Hi Wolfgang,

            I can confirm that at present, you can use SAP Cloud Platform Functions in all CF accounts where “enable beta features” is available.

            This currently applies to EU10, but other regions will follow in due course. We’re working on this…

            Best regards,

            Elisabeth

            (0) 
            1. Wolfgang Röckelein

              Hi Elisabeth,

              well, I can enable beta features in all regions and most regions have other beta services available but not Functions(beta)….

              I was finally able to create a beta subaccount and a space in this subaccount in eu10.

              Regards,

              Wolfgang

              (0) 
  1. Sergio Guerrero

    thank you for the details .. one step that wasn’t very clear for me was the

    Maintain entitlements for your subaccount

    however, after reading the blog a couple times, i was able to find how to nav into the functions… Maximilian Streifeneder  also was helpful in letting me know to look into the right place. Thank you again for sharing

    (0) 

Leave a Reply