SampleSampletypeA worked example you read or clone. Evidence: it demonstrates, it never provides.See every one →What this type is →by SAPby SAPoriginPublished by SAP itself. A visible facet, never an input to a reading — a dormant official plugin reads exactly like a dormant independent one.See every one →Starting point

SAP-samples/cap-service-integration-codejam

A CodeJam on integrating and consuming external services from a CAP project over twelve exercises, from importing and mocking an OData service to the SAP Cloud SDK covering connectivity and destinations.

Twelve exercises take a CAP Node.js project through importing an OData service definition, mocking an external service (first in-process, then as a separate process with test data), adding CDS definitions to integrate it, and introducing the SAP Cloud SDK for connectivity and destinations. Later exercises switch the mock for a real remote system, associate local and remote entities, and extend the resulting SAP Fiori elements UI with annotations. The exercise content is based on an earlier SAP TechEd two-hour workshop.

Facts

Last pushLicenceApache-2.0

Where it sits

Lives in
Demonstrates
DestinationsCAPDestinationscapabilityReaching a system that is not yours — an S/4HANA tenant, an on-premise service, a third-party API — without the address, the credentials or the tunnel being written into the application. The destination is the indirection, and the reason an endpoint can move without a redeploy.
Flavors

Who is behind it

SAP SamplesSAP SamplesOrganisationMaintains this
In the atlas: maintains 222
@SAP-samples
maintainerAjinkya PatilPersonContributes to this
In the atlas: contributes to 112
@ajinkyapatil8190
Marc BeckerPersonContributes to this
In the atlas: contributes to 7
@beckermarc
Brian BernardPersonContributes to this
In the atlas: contributes to 64
@btbernard
Daniel SchlachterPersonContributes to this
In the atlas: contributes to 10, wrote 9
@DanSchlachter
Dr. David A. KunzPersonContributes to this
In the atlas: contributes to 16
@David-Kunz
Bastian DennstedtPersonContributes to this
In the atlas: contributes to 3
@DennstedtB
DJ AdamsPersonContributes to this
Developer Advocate
In the atlas: contributes to 20, wrote 22
@qmacro
Heiko WitteborgPersonContributes to this
In the atlas: contributes to 18
@hm23
Thomas JungPersonContributes to this
Developer Advocate
In the atlas: contributes to 15, wrote 6
@jung-thomas
9 contributors

What it declares

Every artifact

Type
Sample
Origin
By SAP

As a sample

Form
Workshop or CodeJam material

Connections1

SAP-samples/cap-service-integration-codejam connectionsSAP-samples/cap-service-integration-codejamPROVIDES→ demonstrates1demonstrates authoredDestinations

README

quoted from SAP-samples/cap-service-integration-codejam under Apache-2.0, read
SAP-samples/cap-service-integration-codejam/README.mdOn GitHub

Service integration with SAP Cloud Application Programming Model

REUSE status

Description

This repository contains the material for the "Service Consumption with the SAP Cloud Application Programming Model" CodeJam, brought to you by the Developer Advocates at SAP.

Overview

This CodeJam introduces attendees to service integration with the SAP Cloud Application Programming Model (CAP). Specifically, the Node.js flavor of CAP is used.

During this event, you'll become acquainted with how external services can be integrated and consumed from within a CAP project. In working through the exercises you'll also become comfortable with various facilities that CDS offers for declaring, relating and exposing entities, and familiar with how the SAP Cloud SDK covers connectivity and destinations, supporting such integration scenarios with CAP.

Session prerequisites

In order to get the most from this CodeJam, and to be able to work through the exercises, there are certain prerequisites that you must have sorted out before the day of the CodeJam.

The prerequisites are detailed in a separate prerequisites file. Please ensure you have everything ready before attending the CodeJam.

Exercises

These are the exercises, each in their own directory, sometimes with supporting files and scripts. We will work through the exercises in the order shown here. From a session flow perspective, we are taking the "coordinated" approach:

The instructor will set you off on the first exercise, and that's the only one you should do; if you finish before others, there are some questions at the end of the exercise for you to ponder. Do not proceed to the next exercise until the instructor tells you to do so.

The exercises are written in a conversational way; this is so that they have enough context and information to be completed outside the hands-on session itself. To help you navigate and find what you have to actually do next, there are pointers like this 👉 throughout that indicate the things you have to actually do (as opposed to just read for background information).

  1. Set up your workspace
  2. Explore the basic service
  3. Import an OData service definition
  4. Understand service mocking
  5. Add test data for the mocked external service
  6. Mock external service in a separate process
  7. Add CDS definitions to integrate services
  8. Introduce SAP Cloud SDK
  9. Set up the real remote system configuration
  10. Run the service with real remote delegation
  11. Associate local and remote entities
  12. Extend the SAP Fiori elements UI with annotations

Feedback

If you can spare a couple of minutes at the end of the session, please help us improve for next time by providing some feedback.

Simply use this Give Feedback link to create a special "feedback" issue, and follow the instructions in there.

Thank you!

Acknowledgements

The exercise content in this repository is based on previous work for an SAP TechEd 2 hour workshop, written by Christian Georgi of the CAP team.

How to obtain support

Support for the content in this repository is available during the actual time of the CodeJam event for which this content has been designed.

License

Copyright (c) 2023-2026 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.

Apache-2.0, read

Details

Sources3
Added by handdiscovered herechecked
github.com/SAP-samples/cap-service-integration-codejamtree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
discovered viaAdded by hand
first seen in the atlas
ecosystem and domaincap, integration-and-messaging
Flavors1
Node.js
“the Node.js flavor of CAP” — SAP-samples/cap-service-integration-codejam — READMEchecked
Contributors9
History in the atlas1
  1. First seen.
For your agent
Ref
artifact:sap-samples-cap-service-integration-codejam
JSON
/artifacts/sap-samples-cap-service-integration-codejam.json
MCP
Connecting an agent