OData workbench
The OData workbench adds tools for large services to the free OData plugin: it derives a ready collection from $metadata, builds $expand and $filter by clicking, shows the service as a diagram, turns recordings and HAR files into requests and reports breaking changes between two versions of the metadata. It is a module of Pro; the basics of OData and SAP are in OData and SAP and stay in Free.
- Edition
- from Pro
- Derive
- command palette OData: requests from $metadata… or
rt odata derive - Tabs
- Query, Batch, Navigate, Service diagram, Import trace, SAP messages, Snippets
- Runs in
- desktop and web; recordings and
rt odatanatively - Status
- built, not released yet
Chapters and transcript
Chapters
- Requests from $metadata
- In the tree
- Service diagram
- Query builder
- Batch
What is said in the video
An OData service from S/4HANA or CAP has dozens of entities. The OData workbench in Pro builds everything you need from it. You enter the address and the workbench reads the metadata document.
Out come the requests for every entity. One click and it all sits in the collection: read, create, update, plus navigations, examples and even the draft flow for RAP and CAP. The service diagram shows how the entities connect.
You find the path from one entity to the next without digging through the metadata document. The query builder assembles filter, select and expand from the metadata: you click, and the query is there. Send it like any request.
For writing calls RequestTailor fetches the CSRF token and sets the ETag itself. And several requests become a $batch: you compose it, and the workbench writes the rest. The workbench is part of Pro.
The free OData plugin stays in the core. More at requesttailor.com.
Derive requests from $metadata
Instead of creating every request of a service by hand, you derive the collection from the service’s description: a folder per entity set with reads, navigations, $count, create, examples for $expand, a deep-insert template, value helps and assertions. Services with drafts get a folder that holds the draft flow in the right order, so rt run walks through it.
- Open the command palette and choose OData: requests from $metadata… (or the OData workbench tile in New…).
- Enter the service’s address under Service root; it may contain variables such as
{{baseUrl}}. If you already have the$metadatadocument, choose Or use a $metadata document you already have and open the file or paste the content. - Under Derive choose what to create: Navigations, $expand examples (with $expand depth, one to six levels), Deep insert, Value helps, Draft flows, Assertions and Fiori defaults (prefilled from the annotations
UI.LineItem,UI.SelectionFieldsandCommon.Text). Optionally name the folder. - Click Derive. The summary gives the number of requests and folders and lists under Not derived what could not be derived.
- Click Add to collection: the requests land as a new folder in the open collection, unsaved like any change. Without an open collection the button reads Create collection….

Next to the requests the service’s $metadata is stored in the collection as the companion file metadata.xml; the tabs below read it from there. The service address is in the baseUrl variable of the environment.
On the command line
rt odata derive metadata.xml --service-root https://host/sap/opu/odata/sap/ZSALES_SRV/ --out ./sales
rt odata derive metadata.xml --into ./my-collection --collection-name Sales
Per metadata file, --service-root URL, --name NAME and --annotations FILE (repeatable) apply; several files in one call are possible. --out DIR writes a new collection, --into COLLECTION adds a new folder to an existing one. More switches: --collection-name, --base-url-variable N (default baseUrl), --expand-depth N (default 3) and --no-navigation, --no-expand, --no-deep-insert, --no-value-help, --no-drafts, --no-assertions, --no-fiori. rt odata derive --help shows everything.
Build queries by clicking
On a request to a service whose metadata.xml is in the collection, the request editor shows the Query tab. It builds the URL from selections and shows it as Request text; you can type the text as well, both directions stay in step. Without metadata.xml the tab shows a hint instead of the fields.
- Set chooses the entity set, Fields sets
$select(nothing ticked means all fields). - Filter knows groups with Combine with and/or, per condition a property, an operator and a value; Filter as typed takes an expression by hand.
- Order by, Paging (
$top,$skip, Count) and Expand:$expandas a tree with its own fields per level, over three levels too. A path finder (Reach type) finds the navigation path to a type.

In the response area the Navigate tab (for JSON responses) opens the navigations of the response: you click from one record to the next without building the URL.
Compose $batch
The command OData: new $batch request creates a request for $batch (multipart/mixed). In the Batch tab you choose the format (Batch format) and list the single requests with method and path; under Headers and body you add headers and a body. The arrows reorder, the cross removes an entry.
Service diagram
The collection tab Service diagram (header button Collection or the palette) draws the types, sets and relations of a service. The layout of a service with 1,000 types is ready in under two seconds.

- Search (“Find a type, set or field”) highlights hits; zoom and Fit move you through the diagram.
- Path from and Path to show the navigation path between two types; the path can be taken over as
$expandinto the open request. - As an Overlay you lay a trace (Step through calls) or a Heat map over the model, so you see which types a recording touched.
- Export through the palette: OData: export service diagram as SVG and OData: copy service diagram as Mermaid; a PNG export belongs to the diagram as well.
Import traces and HAR
Recordings of the Tailor family’s OData tools (.odtrace from ODataTailor and FrontTailor) and HAR files become requests with metadata, trigger and duration. As with every import there is a loss report: what was missing (a body the recording did not contain, say) is listed, and masked headers (credentials, for instance) become secret variables without a value.
- Choose the palette entry OData: import trace… or the collection tab Import trace.
- Open one or more files with Choose trace or HAR files.
- Choose the target: As a new collection or Import into the open collection (as a new folder, unsaved).
rt odata import recording.odtrace --out ./recording
rt odata import recording.odtrace --into ./my-collection --name "FrontTailor trace"
Without --out and --into, rt odata import only prints the loss report. Recordings straight from the browser arrive through the recording host as a Git branch of their own in the Recordings tab.
Metadata diff and breaking changes
If a service’s metadata.xml is in the repository, RequestTailor compares it between two revisions. A removed property or a removed required field counts as a breaking change; new optional fields are compatible.
rt changelog REV..REVhas a Service metadata section with the breaking changes first. Without a Pro licence the section is missing.- In the app the changes appear in the diff of two revisions and in the PR review.
- Two files are compared with
rt odata diff before.xml after.xml [--json]; exit code 0 without breaking changes, 1 with.
SAP messages and snippets
The response tab SAP messages turns the error response of a Gateway, RAP or CAP service and the sap-message headers into a list with message, component, transaction id, request id and, where there are any, hints under What to check. The request tab Snippets shows the resolved query as URL, cURL, fetch, SAPUI5 and CAP code to copy.

The AI assistant Pro adds two tabs: Describe turns a sentence into a query in the builder, Explain explains SAP messages in plain words.
SAP, SAP S/4HANA and SAP Gateway are trademarks or registered trademarks of SAP SE in Germany and other countries. RequestTailor is not a product of SAP SE.
See also
- Features at a glance Features · sap
- Docs OData and SAP
- Docs Recordings from the browser (recording host)
- Docs SAP comfort
- Docs AI assistant Pro
- Docs Licence and editions
- Sources OData workbench (Pro)1