Skip to content

Latest commit

 

History

History
213 lines (128 loc) · 7.66 KB

using-samples-937ce0d.md

File metadata and controls

213 lines (128 loc) · 7.66 KB

Using Samples

The sample applications allow you to explore the core functionality of SAP BTP and show how this functionality can be used to develop more complex Web applications. The samples are included in the SAP BTP SDK for Neo environment or presented as blogs in the SAP Community.

Remember:

SAP Business Technology Platform, Neo environment will sunset on December 31, 2028, subject to terms of customer or partner contracts.

For more information, see SAP Note 3351844.

Tip:

This documentation refers to SAP Business Technology Platform, Neo environment. If you are looking for documentation about other environments, see SAP Business Technology Platform ↗️.

The samples provided as part of the SAP BTP SDK for Neo environment introduce important concepts and application features of the SAP BTP and show how common development tasks can be automated using build and test tools. See Using Samples.

The samples are located in the <sdk>/samples folder. The table below lists the samples currently available:

Sample

Feature

More Information

authentication

HTTP BASIC authentication scheme

User Authentication

connectivity

Consumption of Internet services

Consume Internet Services (Java Web or Java EE 6 Web Profile) ↗️

persistence-with-ejb

Container-managed persistence with JPA

Tutorial: Adding Container-Managed Persistence with JPA (SDK for Java EE 7 Web Profile)

persistence-with-jpa

Application-managed persistence with JPA

Tutorial: Adding Application-Managed Persistence with JPA (SDK for Java Web)

persistence-with-jdbc

Relational persistence with JDBC

Tutorial: Adding Persistence with JDBC (SDK for Java Web)

mail

Sending e-mails

Example: Send E-Mails ↗️

SAP_Jam_OData_HCP

Accessing data in SAP Jam via OData

Source code for using the SAP Jam API

All samples can be imported as Maven projects. While the focus has been placed on the Apache Maven tools due to their wide adoption, the principles apply equally to other IDEs and build systems.

For more information about using the samples, see Building Samples with Maven.

The Web application "Paul the Octopus" is part of a community blog and shows how the SAP BTP services and capabilities can be combined to build more complex Web applications, which can be deployed on the SAP BTP.

Features of "Paul the Octopus":

  • It is intended for anyone who would like to gain hands-on experience with the SAP BTP.
  • It involves the following platform services: identity, connectivity, SAP HANA and SAP ASE, and document.
  • Its user interface is developed via SAPUI5 and is based on the Model-View-Controller concept. SAPUI5 is based on HTML5 and can be used for building applications with sophisticated UI. Other technologies that you can see in action in "Paul the Octopus" are REST services and job scheduling.

For more information, see the SAP Community blog: Get Ready for Your Paul Position.

You can get the application source from https://github.com/SAP/cloud-paulpredicts/.

Community Samples: SAP Library

The Web application "SAP Library" is presented in a community blog as another example of demonstrating the usage of several SAP BTP services in one integrated scenario, closely following the product documentation. You can import it as a Maven project, play around with your own library, and have a look at how it is implemented. It allows you to reserve and return books, edit details of existing ones, add new titles, maintain library users' profiles and so on.

Features of "SAP Library":

  • The library users authenticate using the identity service. It supports Single Sign-On (SSO).
  • The books’ status and features are persisted using the SAP HANA and SAP ASE service.
  • Book’s details are retrieved using a public Internet Web service, demonstrating usage of the connectivity service.
  • The e-mails you will receive when reserving and returning books to the library, are implemented using a Mail destination.
  • When you upload your profile image, it is persisted using the document service.

For more information, see the SAP Community blog: Welcome to the Library!

You can get the application source from https://github.com/SAP/cloud-sample-library/

Related Information

Building Samples with Maven

Building Java Web Applications with Maven

Working with the "Neo" Maven Plugin