SAP Code Samples

SAP sample code illustrates software features and capabilities and provide other helpful resources to show how an SAP solution may be extended to meet customer needs.

Special Feature: Devtoberfest 2020

Devtoberfest is a multi-week celebration by developers, for developers to kick off SAP TechEd 2020. The event will launch on August 24 starting with eight weeks of free technical enablement/educational content. Online sessions are open to the entire community to highlight key technologies and techniques, and to plant seed ideas for the final task.  

The event will culminate in a one week build sprint in which teams will work on open source projects to complete a challenge.  

Get more information in the Devtoberfest 2020 blog by Thomas Jung or go directly to the Devtoberfest repository.

Explore popular code samples below to learn, get inspired, or help move your own development project along. Note: All samples are published on GitHub.com/SAP-samples.

ABAP Platform

ABAP File Uploader

Sample code to demonstrate easy upload and filling of a custom ABAP table with data from the client side (JSON).

    

ABAP Object Oriented Basics
In support of the YouTube video series on ABAP Object Oriented basics, this repository contains the ABAP source code samples which are used in the video series.

  

ABAP Flight Reference Scenario for the ABAP RESTful Application Programming Model
The Flight Reference Scenario provides sample data and services, as well as legacy business logic, to get familiar with the ABAP RESTful application programming model (RAP).  

    

ABAP RESTful Application Programming Model Examples
This repository contains several examples how to develop with the ABAP RESTful application programming model (RAP) in SAP Cloud Platform, ABAP environment.

     

JAK: The JSON ABAP Konverter
Convert your JSON data into proper ABAP structures in SAP Cloud Platform, ABAP Environment.   

  

See more ABAP samples on GitHub.com.

Mobile

Build an iOS and MacOS App with One Code Line Using SAP Cloud Platform SDK for iOS
This repository contains the finished sample project for the SAP Cloud Platform SDK for iOS starter mission

  

iOS App for Field Technicians
Sample iOS app with the SAP cloud SDK for mobile, demonstrating a service technician viewing his service orders, products, and customers and working with the data on the mobile device.

  

Mobile Development Kit Samples for Developer Tutorials
Samples from SAP Developer Center mobile development kit tutorials demonstrating various components and features of the mobile development kit in the context of an enterprise mobile solution.

    

SAP Cloud Platform SDK for Android Offline OData Sample
This sample app showcases the functionality of an offline OData app. 

  

SAP Cloud Platform SDK for iOS - Sample Apps
SAP Cloud Platform SDK for iOS sample apps demonstrating various components and features of the SDK in the context of bigger apps.

 

See more mobile samples based on SAP Cloud SDK and SAP Cloud Platform SDK on GitHub.com.

Machine Learning and SAP Conversational AI

Differentially Private Federated Learning: A Client-level Perspective
Simulate a federated setting and run differentially private federated learning.

  

SAP HANA Predictive and Machine Learning Scenarios
This project provides code examples for SAP HANA Predictive and Machine Learning scenarios.

  

SAP Conversational AI for Chatbot Development

The sample code provides an example for the implementation of the Bot Logic component using MongoDB and NodeJS. Used in the SAP Conversational AI eBite book from SAP PRESS.

  

See more Machine Learning samples on GitHub.com.

SAP Cloud Application Programming Model

Samples for the SAP Cloud Application Programming Model (1)
This repository provides a list of samples and reusable packages created based on SAP Cloud Application Programming Model. 

  

Samples for the SAP Cloud Platform Application Programming Model for (2)
A sample reuse package for the application programming model for SAP Cloud Platform providing common business types like currency, unit of measure, etc.

    

SAP CodeJam: SAP Cloud Application Programming Model – Node.js
This repository contains the material for a CodeJam on SAP Cloud Application Programming Model with Node.js. Through a series of developer-focused hands-on exercises, you'll get to know the "CAP" tools, create a project, and learn about various aspects such as compilation, persistence, OData operations, data models and service definitions and how they relate. Dig into annotations, custom logic, debugging, and more.

      

SAP Cloud Application Programming Model Walk-throughs
This project contains additional exercises and tutorials for SAP Cloud Application Programming Model.

 

SAP Cloud Application Programming Model and Azure Blob Storage Sample
This is a sample application that can be used as a reference for the SAP Cloud Application Programming Model for SAP Cloud Platform. Besides CDS tooling, this application contains an SAP Fiori Elements user interface and an additional microservice that stores images in Azure blob storage.

 

See more SAP Cloud Application Programming Model samples on GitHub.com.

SAP Cloud Platform

Enterprise Sales and Procurement Model (ESPM) Cloud Native
Enterprise Sales and Procurement Model (ESPM) Cloud Native is reference application to showcase how resilience patterns can be implemented in a Cloud Native application.

  

Messaging Client Java - Samples for Enterprise Messaging
This sample demonstrates Enterprise Messaging with Java, using combinations of vanilla Java, Spring, and JMS.

    

SAP4Kids
A cloud-native application that leverages various SAP technologies to ensure families have access to the food and resources they need during the COVID-19 crisis. This project can be deployed to your free SAP Cloud Platform trial account.

  

Secure Microservices in Cloud Foundry Environment on SAP Cloud Platform
Tutorial/resources for SAP TechEd SEC364 hands-on workshop focused on how to secure microservices in the Cloud Foundry Environment on SAP Cloud Platform. This tutorial shows how to get access to a SAP Cloud Platform Cloud Foundry Environment trial account and secure the Product List application and configure the OAuth 2.0 authorization Code Grant.

   

See more SAP Cloud Platform samples on GitHub.com.

SAP Data Intelligence

DataHub Interactive Education (DINE)
This demo content shows how to consume the features of SAP Data Hub.

  

SAP Data Hub and Intelligence Integration Examples
Example operators, pipelines, and Dockerfiles for SAP Data Hub showing how to connect to different sources or how to perform certain tasks.

  

See all SAP Data Intelligence samples on GitHub.com.

SAP HANA

SHINE for SAP HANA Extended Application Services, Advanced Model
SAP HANA Interactive Education for SAP HANA Extended Application Services, Advanced Model (SHINE for XS Advanced) is an education content to learn, develop, and deploy SAP HANA XS Advanced Model application and is a successor of SHINE for XS Classic.

  

Software Development on SAP HANA openSAP Course
Exercise materials for openSAP courses targeted to applications developers, SAP HANA Developers, Cloud Application Programming Model developers, and SAP Cloud Platform developers.

 

SAP HANA Developer Command Line Interface
Learn how to build a developer-centric SAP HANA command line tool, particularly designed to be used when performing SAP HANA development in non-SAP tooling (for example from VS Code).

 

See more SAP HANA samples on GitHub.com.

SAP UI Development

OpenUI5-FHIR Sample App
Sample app demonstrating the use of the openui5-fhir open source project.

 

SAP Fiori for Android UI Components Demo App
This application demonstrates the available components in the Fiori UI library.

 

See more Fiori and UI5 samples on GitHub.com.

More Sample Code and Open Source Projects

Visit GitHub.com to explore more SAP Samples or SAP open source projects.