Skip to content

OData adapter for Atscript

FlexibleOData Apps

Metadata-driven, highly customizable UI.Works with SAP® OData services, v2 and v4.

Give your AI agent the skill

npx skills add moostjs/atscript-odata
What it does

Four pain points in building OData apps

Customization

In SAP Fiori® elements, a custom field is an app extension, and SAP leaves its layout and behaviour to you. One is fine; many make upgrades harder.

Atscript OData

Customization is a first-class citizen here: supply your own cell or field renderers.

Own layout

Apps start in SAP Fiori elements. When real requirements outgrow the template, teams rewrite them as freestyle apps.

Atscript OData

Lay out screens your way from day one. Value helps, texts and labels still come from the annotations.

Type safety

In UI5, binding paths and filter fields are strings, so a misspelled field shows up only when the app runs.

Atscript OData

Types come from your $metadata, so the compiler catches typos in your code.

OData Client

In UI5, data calls go through the UI's model, and on a server you need a second, separately generated client.

Atscript OData

One set of types for your screens and your code, in the browser and in Node scripts and jobs. No CSRF, ETag or $batch code of your own.

Why these four

How your $metadata becomes a screen

  1. Your service. The value list is an annotation in its $metadata.

  2. Generated. The same facts become Atscript annotations in sales.as: label, value help, fill.

  3. Live form. Atscript UI renders a working picker from them. No glue code.

One value list in $metadata, a working picker on screen. No glue code.

Three ways to use Atscript OData

  1. Start here

    Browser app

    • No server code of your own
    • Each user's own login
    • Runs in your SAP ABAP system as a BSP app
    • Reads, writes and actions (no drafts yet)
    • Needs one origin: BSP or proxy
    • No rules of your own on top of the service's
    • No bulk actions on all matching rows
  2. More control

    Moost server

    • Your own users and rules
    • The service stays hidden
    • Bulk actions, scripts and jobs
    • Your own tables next to OData
    • A Node.js server to run
    • SAP's checks and change logs see one technical user
    • SAP licensing still applies
  3. For services you own

    Open stack

    • Data in PostgreSQL, MySQL, SQLite or MongoDB
    • Runs anywhere, outside SAP CAP's license terms
    • One group of sets at a time
    • Your screens come along
    • Only for services your team owns
    • You copy the data, rewrite actions
    • Needs the Moost server of path 2
What changes when you switch

Try the live demo

A coffee roaster's back office on a public OData v4 service, built two ways.

How it's built

Everyone shares the data, and it resets every 30 minutes.

Start with your OData service

Save its $metadata, generate the models, build the first screen.

Working with an AI coding agent? Give it the Atscript OData skill.

SAP, SAP S/4HANA, SAP Fiori, SAPUI5, SAP BTP and other SAP products and services mentioned herein, as well as their respective logos, are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other countries. Atscript OData is an independent open-source project and is not affiliated with, sponsored or endorsed by SAP SE.
Released under the MIT License.