Erstelle mir eine SAP CAP App ? · The Chat Archive
Explore Erstelle mir eine SAP CAP App ? Save Share Download ▾ ReportFrom a Chatbot Arena battle The same person sent this prompt to two anonymous models at once. Compare it with o3-mini ’s answer. Erstelle mir eine SAP CAP App ?
AssistantCopy response
Natürlich! Ich kann dir zeigen, wie du eine einfache erstellst. Wir machen ein kleines Beispiel: Eine mit einer Entität .
Copy first prompt Copy first response
Other models, same or similar prompt Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Details
Provider OpenAI
Model provenance As recorded by source dataset
Turns 1 (2 messages)
Language de
Added to archive Nov 16, 2026
ID 01m7jej9cebgnceyz8wass4mg3Source & license Imported from LMArena Human Preference 140K (source ). Imported records earn no Research Points.
Upstream record: efe3660e-33af-48e9-8f3d-4fbbb272bb83:b
Chiang et al., Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preference (2024). LMArena 140K preference release.
License: Prompts CC-BY-4.0; outputs governed by provider terms
Dataset releases Not yet included in a published release.
SAP CAP (Cloud Application Programming Model) App
Buchverwaltung
Books
Voraussetzungen
Node.js (empfohlen: >= 16.x)
@sap/cds CLI (npm install -g @sap/cds-dk)
SQLite (für lokale Entwicklung, wird automatisch installiert)
Schritt 1: Neues Projekt anlegen bash Copy code
mkdir bookshop
cd bookshop
cds init
Dadurch wird eine Grundstruktur angelegt.
Schritt 2: Datenmodell erstellen Lege eine Datei an: db/data-model.cds
cds Copy code
namespace my.bookshop;
entity Books {
key ID : Integer;
title : String(111);
author : String(100);
stock : Integer;
}
Schritt 3: Service definieren Lege eine Datei an: srv/cat-service.cds
cds Copy code
using my.bookshop as my;
service CatalogService {
entity Books as projection on my.Books;
}
Schritt 4: Beispiel-Daten hinzufügen (optional) Lege eine Datei an: db/data/my.bookshop-Books.csv
csv Copy code
ID;title;author;stock
1;Der Steppenwolf;Hermann Hesse;5
2;Faust;Johann Wolfgang von Goethe;12
3;Die Verwandlung;Franz Kafka;7
Schritt 5: App lokal starten Installiere die Abhängigkeiten und starte die App:
bash Copy code
npm install
cds deploy --to sqlite:db.sqlite
cds watch
Die App läuft jetzt lokal, z.B. unter http://localhost:4004 .
Du kannst die OData-Services im Browser oder mit Tools wie Postman testen.
Schritt 6: (Optional) Fiori UI hinzufügen Mit cds add fiori kannst du eine einfache UI generieren.
Zusammenfassung Das ist eine minimal lauffähige SAP CAP App !
Du kannst sie beliebig erweitern, z.B. mit weiteren Entitäten, Authentifizierung, Business-Logik (JavaScript in srv/), oder Deployment in die SAP BTP.
Fragen oder möchtest du einen bestimmten Teil genauer erklärt haben?