Common.ValueList@ui.valueHelp
Value helps
Pickers that filter, fill related fields and show text next to codes.
OData adapter for Atscript
Turn any OData v2 or v4 service into TypeScript types and runtime validators. Generate the screens, write your own in Vue, or mix both.
Works with SAP S/4HANA®, SAP Gateway®, ABAP® RAP, SAP CAP® and any other OData v2 or v4 service.
One value list in $metadata, a working picker on screen. No glue code.
Why Atscript OData
Generated where it fits. Yours where it doesn't. Typed everywhere.
Forms, tables and value helps are Vue components. Place them anywhere.
Swap one cell or a whole screen. The rest stays generated.
Your palette, your density, your components.
$metadata.Every entity set is a TypeScript type. The compiler catches what changed.
Lengths, ranges and formats, checked in the form, the client and the server.
Value helps, texts, ETags and CSRF just work, in every screen.
How it works
$metadata to a screen in three steps. Open the service's $metadata in your browser and save it. One file holds every entity set.
Every build writes typed models, tweakable in annotate blocks. At runtime they follow the live service.
// atscript.config.ts
odata({
services: [{
name: "sales",
metadata: "odata/sales.xml",
language: "EN",
}],
})Point Atscript UI at an entity set. Tables, forms and value helps appear.
<AsTableRoot :type="SalesOrder"
url="/odata/sales/SalesOrder">
<AsFilters /> <AsTable />
</AsTableRoot>No server of your own: the browser talks OData to the service.
What it reads
Common.ValueList@ui.valueHelp
Pickers that filter, fill related fields and show text next to codes.
ETag@db.column.version.token
ETags travel with every row. No silent overwrites.
x-csrf-tokensessions
Token fetched once, reused for every write. The session is kept for you.
$expand@db.rel.*
Navigations load in the same request as their rows.
$applyaggregate()
Groups and totals with $apply, in one request.
OData v2 + v4one API
v2 and v4 look the same to your code.
Code
Generated on every build. Imported like any module. Checked by the compiler.
// Generated from $metadata. Do not edit.
@db.table 'SalesOrder'
export interface SalesOrder {
@meta.label 'Sold-To Party'
@expect.maxLength 10
@ui.valueHelp CustomerVH, 'Customer'
@ui.valueHelp.fill 'SoldToPartyName', 'CustomerName'
SoldToParty: string
@db.column.precision 15, 2
NetAmount?: decimal
// … one field per property of the entity set
}<script setup lang="ts">
import { SalesOrder } from "../odata/sales.as";
// … Atscript UI imports, save()
const { def, formData } = createAsFormDef(SalesOrder);
const fields = createDefaultTypes();
</script>
<template>
<AsTableRoot url="/odata/sales/SalesOrder"> <AsFilters /> <AsTable /> </AsTableRoot>
<AsForm :def="def" :form-data="formData" :types="fields" @submit="save" />
</template>AI agent skill
One command teaches Claude Code, Cursor, Codex and other agents the whole path, from $metadata to working screens.
# companion skills
Installs from GitHub once the repository is public.
Use cases
Dispatcher boards, guided entry, charts next to tables.
Browser or server
Admin and maintenance screens over the services you already run.
Browser
Your auth on a Moost server. Each user sees only their own rows.
Server
Small dashboards over $apply.
Browser or server
The OData service and your own tables, side by side on one screen.
Browser or server
Move the UI first, then the services.
Both, in turn
For SAP CAP developers
One .as model drives the database, the API and the UI. Independent, MIT-licensed, on any Node.js host with PostgreSQL, MySQL, SQLite or MongoDB.
Entities, aspects, associations, services, handlers: the concept map shows the Atscript way for each.
Ecosystem
Save its $metadata, generate the models, build the first screen.