Skip to content

Limitations ​

Where OData and Atscript disagree, the limitation is explicit: an operation that cannot be expressed is refused with a clear error before any request, and left out of /meta where /meta can say so. Nothing is emulated in silence. This page lists what is not supported, why, and what to do instead.

Not supported yet ​

Planned.

  • Draft editing. A draft-enabled entity set (Common.DraftRoot, Common.DraftNode, as RAP and SAP CAP declare them) is read and counted for its active entities: a read whose filter has no condition on IsActiveEntity gets IsActiveEntity eq true. A read by key reads the key it is given. Every write to such a set is refused before any request, 400 NOT_SUPPORTED on both hosts (the engine's refusal, ODataWriteError DRAFT_NOT_SUPPORTED, is the error's cause), and crud lists none.

Also on the list for later, without a date: JSON $batch, OData v2 analytical services, parameterized entity sets, OData deep insert through the server, value lists from OData v2 annotation documents, singletons and media streams.

By design ​

Writes

  • No transactions. Multi-row and nested writes cannot roll back; the rows written before a failure stay.
  • Last write wins without the version token, and for every delete. The ETag the host reads right before such a write only satisfies the service's If-Match requirement. See Writes and Concurrency.
  • No writes by filter, no field operators ($inc, $mul), no integer versions.
  • A computed complex value or collection that the type requires has to be sent on create (it is then dropped): only scalars get @db.default.store.
  • Immutable and update-only properties carry no annotation, so a form offers them in both modes; a change the service would refuse is dropped without notice. A replace demands non-nullable immutable properties, which are then dropped.

$batch

  • Multipart only, on OData v2 and v4: no JSON batch.
  • Nothing is atomic beyond an explicit changeset, or an action on several rows grouped changeSet. The writes of one pass, auto-batched, are each a changeset of their own; so are the rows of an array insert and of an action grouped isolated, the default: a failed row leaves the others applied. See Several rows at once and Several rows.
  • Dependent requests are never in one batch: a write's pre-read goes out before it, a paging link or a read after a 412 after it.
  • A call aborted after its batch went out stops waiting, but its part still runs.
  • The browser's network tab shows $batch requests; batch: false sends a call alone. See Batching.

Reads

  • Free-form regular expressions cannot be translated: only ^literal, literal$ and literal.
  • Case-insensitive matching depends on the service accepting tolower (the standard dialect); see Dialects.
  • Mandatory filters are advisory. Reads are sent without them, and a service that needs one answers 400 with its message. Atscript UI has no notion of a mandatory filter yet.
  • Undeclared properties (open types, dynamic properties) cannot be used.
  • Reads through a navigation path (OrderSet('1')/Items) are not used; a set that is not addressable is reached through $expand from its parent.

Relations

  • OData v2 has no filter or sort inside an expansion: such a $with entry is refused, never sent unscoped.
  • No paging inside $with, and no version token on related rows.
  • One service per relation.
  • Navigations of types in an OData inheritance hierarchy are relations without foreign keys (@db.rel.store): they load, but give no foreign-key value help.

Aggregation

  • OData v4 $apply only, on a set that declares it. OData v2 analytical sets (sap:semantics="aggregate") are not aggregated.
  • No count / countDistinct on an SAP S/4HANA® or SAP Gateway® service; no calendar buckets, expressions, first / last, conditional aggregates, field lists or two-level aggregates on either host. See Aggregation.

Models

  • One language for the labels: the one the file was saved in, which the hosts ask for when they read the live $metadata. Labels in each user's own language are not supported.
  • Live types have limits: a type used before the connection is the saved one, your own extends and property references keep the saved structure, one generated module holds one live version per process, and a RAP service costs one read per value-help document on every connect. See Live Metadata.
  • The server reads the live $metadata once, at start: restart it to pick up a changed service.
  • One value list per property: the first (unqualified first). Lists in another service, in OData v2 annotation documents outside the $metadata, and after the first reference of a value-help service, are not bound. See Value Helps.
  • Not emitted: singletons, media streams, Edm.Stream, geography and geometry, Edm.Untyped; navigations without exactly one target entity set. Each is listed in the trailer of the .as file.
  • Presets only: a service uses the sap or the standard dialect as a whole, no single switches.

Hosts

  • The browser client needs same-origin access or a proxy. SAP systems rarely allow cross-origin calls.
  • The fetch helper authenticates with basic authentication or headers only (no OAuth flow or client certificate; put a token in --header), and a self-signed certificate needs Node's NODE_EXTRA_CA_CERTS.

Host differences ​

The two hosts agree on everything the core decides: requests, refusals, write rules, message mapping. They differ where the host is the reason:

TopicBrowser clientServer
Reads in /metaexactly what the set supports (counting, aggregation)every query control of Moost DB, groupable also where the set cannot aggregate, no flag for a set that cannot count
/pages without $sortordered by the sortable key propertiesordered by the key; refused when the service cannot sort by it
Partial array operators ($insert, …)refused; send the whole arrayemulated by a read and a write of the whole array, last-write-wins
Related entities in an insertone OData deep insert, through a foreign-key navigationone write per row and table
Error of an array update or replacenames the failed rownames no row
Credentialsthe browser's session with the servicethe server's own, a technical user (see Credentials and Sessions)
An entity set gone liveClientError 404 NOT_FOUND404 NOT_FOUND on every endpoint of its OData controller; 500 under Moost DB's own classes
Calls made at onceauto-batched: one $batch per pass, service and sessioneach request's calls go out as it makes them: no auto-batching
Filters by a related row$some / $none on OData v4: any() for a to-many navigation, a navigation path in $filter for a to-one; none on v2a table call on OData v4: a to-one navigation's path, in $filter and in aggregate()'s $apply; a to-many navigation refused, 400 REL_FILTER_NOT_SUPPORTED. Over HTTP Moost DB answers $some RELATION_NOT_FILTERABLE unless the relation is @db.rel.filterable

See it live

Open the network tab on the Overview: the browser app sends one $batch, the page of the Moost server app four REST calls. On Orders, only the Moost app offers all matching rows. Code: src/odata.ts; src/ui/api.ts.

See also ​

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.