ABAP running locally in VS Code, with no SAP system and no ADT connection. One small application, six airships and twenty voyages, shows the whole path: from a first class through OData, Fiori, CDS and AMDP to business logs, background jobs, generated code and a lifted legacy routine.
This folder is an abapGit repository and an open-steamgate workspace pack. The extension carries a whole local ABAP system; this repository adds its own objects on top of it.
Read it as a book, in English (book/) or in Russian (book/ru/, «Флот дирижаблей»): chapter by chapter below, or as PDF and EPUB built with book/build.sh.
- Install the open-steamgate extension, 0.7.3140 or later (
oisee.open-steamgate, stable channel): search for it in the Extensions view, or take the.vsixfrom the latestvscode-stable-v*release and run Extensions: Install from VSIX.... - Clone this repository and open the clone as a VS Code folder.
- Run osd: Start (build + run this system). The bundled system starts, and this folder is layered on top as a pack in package
$ZOSD_DEMO. It shows up under Workspace layers in the Testing view. - Open ZOSD_DEMO_HELLO and press F9. Expected:
Hello from ZOSD_DEMO_HELLO.in the OSD: Console output. Chapter 1 goes on from there.
From an open-steamgate checkout the same pack runs in a terminal: OSD_PACKS=/path/to/osg-demo STG_PORT=8099 npm start.
| # | Chapter | RU | You will see | Main objects |
|---|---|---|---|---|
| Preface | Предисловие | the fleet, setup, keys | ||
| 1 | Hello | Hello | a classrun, a green unit test, edit and activate | ZOSD_DEMO_HELLO |
| 2 | Debug, tests, and dumps | Отладка | a breakpoint, a red test, a short dump, a classic ALV grid | ZCL_OSD_FLEET_REPORT, ZOSD_FLEET_ALV |
| 3 | The OData ladder | OData | $metadata, $filter, a MERGE, navigation, value help |
ZOSD_FLEET_SRV |
| 4 | Fiori apps | Fiori | a launchpad tile, list report and object page | app ZOSG_DEMO |
| 5 | The CDS cube | CDS | voyages by ship and month | ZC_OSD_FLEETCUBE |
| 6 | AMDP on the fleet | AMDP | SQLScript on DuckDB and HANA, checked against Open SQL | ZCL_OSD_FLEET_FUEL, ZCL_OSD_FLEET_SUMMARY |
| 7 | Take it to a system | Перенос | an abapGit zip of exactly what may travel | deploy/manifest.json |
| 8 | The business log | Журнал | BAL logs per run, a viewer, an ALV grid of messages | ZCL_OSD_FLEET_BAL, ZOSD_FLEET_BALV |
| 9 | Background jobs | Задания | a job, a chain of two, a failing chain that waits, a doctor | ZCL_OSD_FLEET_JOB, ZCL_OSD_FLEET_CHAIN, ZCL_OSD_FLEET_DOCTOR |
| 10 | Generated code | Генерация | a report from a template with a trace per line; the L0/L1/L2 layers | ZCL_OSD_FLEET_TPL |
| 11 | Lift a legacy routine | Lift | a SELECT in a loop rewritten from a model, proven equal | ZCL_OSD_FLEET_LIFT |
| 12 | Rules, code and proof | Правила | a fleet rule in YAML compiled to ABAP, proven by its examples | ZCL_OSD_FLEET_L2_MAINT |
| 13 | Where did this line come from? | Трассировка | one generated line followed back to its rule line | *.trace.json, *.trace.meta.json |
| 14 | My ABAP escaped from the server | Сбежал с сервера | a report compiled into a native CLI and terminal form, its own SQLite file; F4 picks a CSV, a second report lists it | ZOSD_FLEET_CLI, ZOSD_FLEET_CSV (cli/) |
| 15 | The workbench | Рабочее место | from a service to its code and back in VS Code: the System view, .http requests, a call to its HTTP answer |
http/fleet.http |
| 16 | Orchestration: the night set | Оркестрация | a set of rules in stages: a filter fills a worklist, piles run as jobs, a gate opens the next stage once, a nightly schedule | ZCL_OSD_FLEET_NIGHT (src/l3/) |
| 17 | The governor | Регулятор | a budget of open alerts per run: the run stops at its glass, a person continues it with a reason | ZCL_OSD_FLEET_WATCH (src/l3/) |
| 18 | Because we can: JavaScript and C in ABAP | JavaScript и C в ABAP | QuickJS as ABAP on a real kernel (abapiti's result); a C function via WebAssembly and abapiti into an ABAP class, drawing the Mandelbrot set like native C | ZCL_WASM_MANDEL (src/iti/, iti/) |
| 19 | An agent that writes ABAP from inside the system | Агент, который пишет ABAP изнутри системы | PIA, an ABAP coding agent written in ABAP: green, break, red, fix, green on SAP A4H and on open-steamgate; a recorded run replays without a model key | — (PIA's own repository) |
| 20 | The tools come home: abaplint in ABAP | Инструменты возвращаются домой: abaplint на ABAP | abapiti translates abaplint to Go and ABAP; all 11,060 active tests of abaplint pass on Go, on open-steamgate's Go runtime and on a real SAP kernel (abapiti's result), and the ABAP build checks the abapGit standalone report; the Go build runs on your machine | — (abapiti's own repository) |
| 21 | Voyages as a business object: RAP | Рейсы как бизнес-объект: RAP | the fleet's voyages as a managed RAP object with draft: CDS views, a behavior definition, a pool with determinations, a validation and actions written with EML, a Fiori Elements V4 app with no draft code of its own; SAP's flight reference scenario runs too | src/rap/, voyage/, test/rap.mjs |
| 22 | The fleet pinned by digest: OCI layers | Флот, закреплённый дайджестом: слои OCI | the fleet as an OCI layer with fixed bytes; a system of open-steamgate's layers and the fleet written as a local OCI layout, installed by digest into a checkout without sources; the book's checks run there; what a pinned system refuses | tools/fleet-system.mjs, test/layer.mjs |
| 23 | The fleet in a browser tab: vscode.dev | Флот во вкладке браузера: vscode.dev | open-steamgate from the Marketplace in vscode.dev, with nothing installed on your machine; the fleet built into a web bundle and opened in VS Code for the Web and in vscode.dev: OSD view, F8, a SQL notebook, the Airship fleet app; where the browser stops (OData V4, chapter 21's voyages) | test/web-shots.mjs, test/web-vscodedev.mjs |
| A | Run the checks | Проверки | the automated end-to-end checks | test/ |
| B | Take it to a system | Перенос | what travels, what stays, how to import | |
| C | Limits and glossary | Ограничения | the fine print, the terms |
Chapters 10 and 11 use open-steamgate's generation layers, in which a generated line can keep the way back to what made it.
| Layer | You write | You get | Here |
|---|---|---|---|
| L0 templates | a template and a JSON model | text, each line traced to template line and model path | chapter 10; chapter 11's lift renders its recipe this way |
| L1 typed model | nothing: a generator fills it | ABAP from recipes, typed literals, a trace per line | chapter 10 (overview; the demo has no L1 generator of its own) |
| L2 domain rules | a rule in the domain's words | a check class and its tests, traced to the rule's lines | chapters 12 and 13 |
| L3 sets of rules | stages, piles and a schedule over L2 rules | a runner that plans, submits and gates the jobs, its job report and ports | chapter 16 |
In an open-steamgate checkout, run npm ci && npm run bootstrap once (bootstrap builds and links the transpiler the checkout pins). Then:
OSD_HOME=/path/to/open-steamgate SLICE_SKIP_UI=1 node test/slice.mjs # 22 checks, SQLite; 21 run, the UI one is skipped
OSD_HOME=/path/to/open-steamgate SLICE_SKIP_UI=1 STG_DB=duckdb node test/slice.mjs
OSD_HOME=/path/to/open-steamgate node test/jobs.mjs # 7 job checks
OSD_HOME=/path/to/open-steamgate node test/l3.mjs # chapters 16 and 17: the night set and its governor, 7 checks
OSD_HOME=/path/to/open-steamgate node test/iti.mjs # chapter 18: C in ABAP draws what native C draws
OSD_HOME=/path/to/open-steamgate node test/lift.mjs # lifted region in step
OSD_HOME=/path/to/open-steamgate node test/l2.mjs # the L2 rule's class in step (--write rebuilds)
OSD_HOME=/path/to/open-steamgate node test/rap.mjs # chapter 21: the RAP voyage object, EML, V4 draft, 9 checks
OSD_HOME=/path/to/open-steamgate node test/layer.mjs # chapter 22: the fleet as an OCI layer, a system by digest, 8 checks (heavy, ~1.5 min, not in CI)
OSD_HOME=/path/to/open-steamgate node tools/fleet-system.mjs --out /tmp/sys [--install /tmp/sys-osg] # chapter 22: open-steamgate + the fleet as a local OCI system; --install makes a system checkout slice.mjs and rap.mjs run against
node test/book-snippets.mjs # the book's code excerpts match src/
OSD_HOME=/path/to/open-steamgate node test/cli.mjs # build the fleet CLI (Go 1.26) and run chapter 14
OSD_HOME=/path/to/open-steamgate node test/book-shots.mjs # retake the book's screenshots
OSD_HOME=/path/to/open-steamgate node test/cli-shots.mjs /tmp/fleet-cli # chapter 14's pictures, after cli.mjs --keep /tmp/fleet-cli
OSD_HOME=/path/to/open-steamgate node test/web-shots.mjs # chapter 23 in VS Code for the Web, after web:vscode with this pack; V4 steps are KNOWN
OSD_HOME=/path/to/open-steamgate node test/web-vscodedev.mjs marketplace # chapter 23 in the real vscode.dev, no account (or: location https://localhost:5000)
test/vscode-shots.mjs retakes the VS Code pictures of chapters 1, 2, 9 and 15–17; its header says what it needs (VS Code, the extension's VSIX, Xvfb).
CI runs the slice on SQLite and DuckDB (with SLICE_SKIP_UI=1, so the browser check is skipped) and the command line program, job, L3, C-in-ABAP and RAP checks on every change, against the open-steamgate tag the book is written for (book/baseline.yaml; that result decides); the same run against open-steamgate main is a canary: it shows as fleet (main), red when main breaks something, without failing the run (smoke.yml); slice check 16 runs the lift check and check 17 the L2 rule's. Appendix A says what each covers.
| Where | What |
|---|---|
src/ |
the ABAP objects, DDIC, SEGW model, CDS; src/rap/ the RAP voyage business object (chapter 21: views, behavior definition, service, behavior pool, EML class); src/l2/ the L2 rule and what it builds to; src/iti/ and iti/ chapter 18's C in ABAP; src/l3/ the night set and the watch set (DSL L3, chapters 16 and 17), their rules, what they build to and their classruns |
data/ |
seed rows for the local system (not carried to a system) |
webapp/ |
the Fiori Elements app |
voyage/ |
the Voyages app: a Fiori Elements V4 list report and object page over the RAP service, with draft (chapter 21) |
cli/ |
the fleet's command line program (chapter 14), not part of the pack |
http/ |
the fleet service's requests as a .http file (chapter 15) |
book/, book/ru/ |
the book in English and Russian; book/build.sh renders EPUB, PDF and HTML of both |
docs/ |
the fleet contract, measurements and design notes |
deploy/manifest.json |
the objects allowed to travel to a system |
test/ |
end-to-end checks against a real engine |
osd-pack.json |
the pack: package, layer, launchpad tile |
Releases: v0.1 and later.