ADT 端点与协议
本页由仓库原文构建生成。技术正文保留原文;版本要求、授权与限制以正文为准。
SAP ABAP Development Tools (ADT) exposes a REST API under /sap/bc/adt/.
Authentication is HTTP Basic Auth with the X-SAP-Client header for client selection.
Source development and RAP (CLI 1.6.4+)
Section titled “Source development and RAP (CLI 1.6.4+)”Operational contract and measured verification scope: development.md.
| Capability | Protocol |
|---|---|
| Class parts | GET/PUT /oo/classes/{name}/source/main or /includes/{definitions,implementations,testclasses}; lock/activate parent Class |
| Explicit absent include generation | POST /oo/classes/{name}/includes?lockHandle=...&corrNr=..., application/vnd.sap.adt.oo.classincludes+xml; only after reviewed absence and --create-part |
| Candidate buffer | POST /checkruns?reporters=abapCheckRun, application/vnd.sap.adt.checkobjects+xml; artifact URI/content type and base64 UTF-8 content; response checkmessages+xml |
| Class / Interface / Report create | POST /oo/classes, /oo/interfaces, /programs/programs; respective application/vnd.sap.adt.oo.classes.v2+xml, oo.interfaces.v2+xml, programs.programs.v2+xml; metadata readback, no implicit source save/activation |
| Package create | POST /packages, application/vnd.sap.adt.packages.v2+xml; responsible SAP user uppercase, package attributes/super-package/transport and required empty container nodes; metadata + parent/component/layer verification |
| RAP source | GET /ddic/ddl/sources/{n}/source/main, /bo/behaviordefinitions/{n}/source/main, /ddic/srvd/sources/{n}/source/main |
| Binding evidence | GET /businessservices/bindings/{n}; OData service groups at /businessservices/odatav2/{binding} or /odatav4/{binding} with servicename/serviceversion/srvdname |
| Runtime preview | Same-origin GET returned /sap/opu/odata[4]/.../$metadata, optionally a metadata-declared entity set with bounded $top; not ADT, no publish/actions/redirects/next-link traversal |
These paths are relative to /sap/bc/adt except the explicit runtime path.
Creation/include generation are sent once; unknown outcomes never authorize
replay or automatic deletion. Missing check reports never mean a passed check.
Diagnostic feeds and historical comparisons (read-only)
Section titled “Diagnostic feeds and historical comparisons (read-only)”These commands require CLI 1.6.0 or newer. See diagnostics-history.md for the complete workflow, comparison semantics and 2026-10-29 QAS verification scope.
| Purpose | Protocol |
|---|---|
| Catalog and FQL schema | GET /sap/bc/adt/feeds, Accept application/atom+xml;type=feed |
| Diagnostic page | GET an advertised feed URI with $query (FQL) and $top (page limit); use returned next links, with inclusive-boundary deduplication |
| Object version streams | GET object metadata, then follow http://www.sap.com/adt/relations/versions for each source part |
| Version contents | GET the Atom entry’s opaque content@src; 00000 denotes active source, not a frozen snapshot |
| Transport objects | GET /sap/bc/adt/cts/transportrequests/<TRKORR>, Accept application/vnd.sap.adt.transportorganizer.v1+xml |
| Resolve a transport entry | GET /sap/bc/adt/cts/transportrequests/reference with tr_number, pgmid, obj_name, obj_wbtype; follow http://www.sap.com/cts/relations/objecturi |
| Unified differences | Read the selected sources and compare locally; no write, activation or release endpoint is used |
Do not generalize a class root’s /versions path: main, definitions,
implementations and macros can advertise different history resources.
Missing historical evidence is an explicit gap, not an empty/new object.
Write-side rule: 2xx means “accepted”, never “completed”
Section titled “Write-side rule: 2xx means “accepted”, never “completed””ADT write-side endpoints generally confirm only that the request was accepted. An HTTP 2xx response is never, by itself, evidence that the operation finished — an independent readback is required. Three measured cases (S/4HANA 2021 / Basis 7.56):
- release —
newreleasejobs200/2xx must be followed bytm:statusreadback (D vs R);- activate — POST 200 with an empty body must be followed by checking
/activation/inactiveobjects/adtcore:version="active"; a 200 with failure messages in the body means the activation failed;- unlock —
?_action=UNLOCKreturns 200 with an empty body even when it released nothing (silent no-op from a foreign stateful context); only a subsequent independent_action=LOCK(200 vs 403) proves the enqueue is gone. The object resource’sprogram:lockedByEditor="false"is per-session state, NOT proof that SM12 is empty.
Read-side counterpart: an empty result is not evidence of absence.
A list endpoint returning an empty collection must not be read as “nothing
exists”. Known case: the root GET /cts/transportrequests tree behind
list-transports can return an empty tree while the user owns a modifiable
D request (measured 2026-09-17; per-TR GET confirms it). Do not branch
on emptiness without a positive check; the trigger condition is unprobed.
Background: project notes on the open trigger investigation live in
the archived known-issues notes (repo docs/development/archive/sap-adt-cli) (“empty root tree”) — not required to act on
this rule.
Authentication
Section titled “Authentication”Every request requires:
Authorization: Basic base64(username:password)X-SAP-Client: <client_number>For POST/PUT requests, first fetch a CSRF token:
GET <any ADT URL>x-csrf-token: fetch→ Response header: x-csrf-token: <token>
Then include in POST/PUT:x-csrf-token: <token>Verified protocol facts — S/4HANA 2021 / SAP_BASIS 7.56
Section titled “Verified protocol facts — S/4HANA 2021 / SAP_BASIS 7.56”The endpoint descriptions below reflect older documentation. Verified on a
real DEV system (old value → new value; fixtures under tests/fixtures/):
| # | Area | Old (fails on 7.56) | New (verified) | Date |
|---|---|---|---|---|
| 1 | Domain metadata | GET /ddic/domains/{n}/source/main → 404, silently fell back to data element |
GET /ddic/domains/{n} (vnd.sap.adt.domains.v2+xml); fall back to data element only on genuine 404; output carries resolved_as |
2026-09-15 |
| 2 | Syntax check | POST /abapsource/syntaxcheck → 404 |
POST /checkruns, body root chk:checkObjectList with inner chk:reporter chk:name="abapCheckRun", CT …checkobjects+xml, Accept …checkmessages+xml; findings at chk:checkMessage@type/shortText, line from uri #start=L,C |
2026-09-15 |
| 3 | Transports | GET /cts/transports Accept …transport.worklist+xml → 406 |
GET /cts/transportrequests, Accept vnd.sap.adt.transportorganizertree.v1+xml. An empty tm:root is not proof of “no requests” — it was also returned while the user owned a modifiable D request (2026-09-17); per-TR GET is the positive check, see the read-side rule above |
2026-09-15 |
| 4 | Data preview (run-sql) | GET freestyle?sqlCommand=… → 405 |
POST freestyle?rowNumber=N, Content-Type: text/plain; charset=utf-8, raw SQL body. Accept must be vnd.sap.adt.datapreview.table.v1+xml — application/xml returns 406. GET kept only as a 405 fallback. The rowNumber parameter is the hard row cap and overrides an SQL UP TO N ROWS clause (verified 2026-09-16) |
2026-09-16 |
| 5 | Where-used | GET /informationsystem/whereused?uri=<full URL> → 405 |
POST /informationsystem/usageReferences?uri=<RELATIVE lower-case object URI>; CT and Accept both application/*; body usageReferenceRequest with empty <affectedObjects/>; response …usagereferences.result.v1+xml (referencedObject/adtObject, optional #start= fragment). Discovery declares no app:accept for this collection, so application/* is the only workable value today — re-probe after a Basis upgrade before narrowing |
2026-09-16 |
| 6 | Package contents | Parser qualified elements as {http://www.sap.com/abapxml}… → always [] on 7.56 |
Response declares the namespace only on the asx: prefix; payload elements (SEU_ADT_REPOSITORY_OBJ_NODE/OBJECT_*) have no namespace — match by local name |
2026-09-15 |
| 7 | Transport release | Legacy POST /cts/transports/{TR}?action=release (no readback) |
POST /cts/transportrequests/{TR}/newreleasejobs (Accept application/*) + readback GET /cts/transportrequests/{TR} (tm:status D/R); 2xx is not completion |
2026-09-16 |
| 8 | Lock (enqueue) | POST {object}?method=lock with only X-sap-adt-sessiontype: stateful → 400 contentTypeMissing; adding Content-Type: application/xml → 415 (only …programs.programs.v2+xml accepted); vendor type + XML body → 400 Enter a title (treated as create) |
POST {object}?_action=LOCK&accessMode=MODIFY, stateful header, Accept: application/*,application/vnd.sap.as+xml;charset=UTF-8;dataname=com.sap.adt.lock.result, no body; 200 ASX with handle at asx:values/DATA/LOCK_HANDLE |
2026-09-16 |
| 9 | Source PUT | Handle in X-sap-adt-lock-handle header; chosen transport as ?sap-cts-request= (this shape never worked live) |
PUT {object}/source/main?lockHandle=<handle> plus, for a chosen request, &corrNr=<TRKORR>; Content-Type: text/plain; charset=utf-8; 200 empty |
2026-09-16 |
| 10 | Unlock (dequeue) | POST {object}?method=unlock with the handle header (never worked live) |
POST {object}?_action=UNLOCK&lockHandle=<urlencoded handle>. 200 empty is not proof of release (see write-side rule): cross-process without the original stateful cookie = silent no-op (next LOCK still 403); measured real only inside the owning stateful session (same-process finally path confirmed by an independent fresh-process re-lock 200) or cross-process replaying the original cookie jar |
2026-09-16/17 |
| 11 | Activation | Bare POST /activation (no parameters) → 400 ExceptionParameterNotFound “Parameter method could not be found” |
POST /sap/bc/adt/activation?method=activate&preauditRequested=true with the same objectReferences body; success verified by readback (/activation/inactiveobjects, adtcore:version), not by 200 alone |
2026-09-16 |
| 12 | Create transport | POST /cts/transports with CT application/vnd.sap.cts.transport.request+xml and a <cts:transportRequest><cts:attributes> (category/owner/description/target) body → 400 ExceptionDataTypeNotFound “No data type found in content type …” |
POST /cts/transports, CT application/vnd.sap.as+xml; charset=UTF-8; dataname=com.sap.adt.CreateCorrectionRequest, Accept text/plain, ASX body DATA{DEVCLASS,REQUEST_TEXT,REF,OPERATION=I}; 200 body /com.sap.cts/object_record/<TRKORR>; read back GET /cts/transportrequests/<TRKORR> (tm:status D). CLI fixed 2026-09-17 (create-transport --package/--description/--ref, all required; --category removed) |
2026-09-17 |
| 13 | Type group source | GET /typegroups/groups/{name}/source/main → 404 ExceptionResourceNotFound (both DEV and QAS, Basis 7.56) |
GET /ddic/typegroups/{name}/source/main → 200 text/plain; discovery declares the resource root as /sap/bc/adt/ddic/typegroups. doctor --coverage checked the correct root but not the sub-path, so it masked this. CLI fixed 2026-10-28 (handler + this table); the command had no fixture/test before |
2026-10-28 |
| 14 | Package contents | parent_name pre-encoded with quote(name, safe="") and then sent through the params dict → double-encoded ($TMP → %2524TMP); server answers 200 with an empty body, which surfaced as PARSE_FAILED for a package with 29 KB of contents |
Pass the raw package name as the parent_name param and let the HTTP client encode it once; POST /repository/nodestructure then returns the ASX tree. Measured on DEV and QAS (the same empty-body response was reproduced with the pre-encoded name on both). CLI fixed 2026-10-28 |
2026-10-28 |
Also verified: /ddic/tables/{n}/source/main and
/ddic/structures/{n}/source/main return CDS-style DDL
(define table/structure) on 7.56, not field-metadata XML;
/ddic/tables/{n}/objectstructure is 404 (field descriptions unavailable).
Source Code Endpoints (Read)
Section titled “Source Code Endpoints (Read)”| Object Type | Method | URL Pattern |
|---|---|---|
| Program (report) | GET | /sap/bc/adt/programs/programs/{name}/source/main |
| Class | GET | /sap/bc/adt/oo/classes/{name}/source/main |
| Interface | GET | /sap/bc/adt/oo/interfaces/{name}/source/main |
| Function Group | GET | /sap/bc/adt/functions/groups/{fg_name}/source/main |
| Function Module | GET | /sap/bc/adt/functions/groups/{fg_name}/fmodules/{fm_name}/source/main |
| Include | GET | /sap/bc/adt/programs/includes/{name}/source/main |
| CDS View (DDL) | GET | /sap/bc/adt/ddic/ddl/sources/{name}/source/main |
| Type Group | GET | /sap/bc/adt/ddic/typegroups/{name}/source/main (legacy …/typegroups/groups/{name}/source/main → 404 on 7.56) |
| DDIC Table | GET | /sap/bc/adt/ddic/tables/{name}/source/main |
| DDIC Structure | GET | /sap/bc/adt/ddic/structures/{name}/source/main |
| Domain | GET | /sap/bc/adt/ddic/domains/{name} (legacy …/source/main → 404 on 7.56) |
| Data Element | GET | /sap/bc/adt/ddic/dataelements/{name} |
Object names must be URL-encoded. Responses are plain text (ABAP source) or XML.
Write Source — Lock / PUT / Unlock (verified 2026-09-16, Basis 7.56)
Section titled “Write Source — Lock / PUT / Unlock (verified 2026-09-16, Basis 7.56)”Stateful three-step flow inside ONE stateful session; unlock must always run
(use finally). The stateful context is selected by
X-sap-adt-sessiontype: stateful; the cookies set by the server then
accompany every request of the session. Observed under HTTP Basic auth on
the capture system: SAP_SESSIONID_ECD_400, sap-contextid,
sap-usercontext — no MYSAPSSO2.
1. Lock
Section titled “1. Lock”POST /sap/bc/adt/{object_uri}?_action=LOCK&accessMode=MODIFYX-sap-adt-sessiontype: statefulAccept: application/*,application/vnd.sap.as+xml;charset=UTF-8;dataname=com.sap.adt.lock.resultNo request body. Response 200 is ABAP-serialized XML; the lock handle is the
text of asx:abap/asx:values/DATA/LOCK_HANDLE (sibling fields CORRNR,
CORRUSER, CORRTEXT, IS_LOCAL, SCOPE_MESSAGES). An existing enqueue
comes back as 403 ExceptionResourceNoAccess “User … is currently
editing …”.
2. Write (PUT)
Section titled “2. Write (PUT)”PUT /sap/bc/adt/{object_uri}/source/main?lockHandle=<handle>Content-Type: text/plain; charset=utf-8X-sap-adt-sessiontype: stateful
# optional transport assignment: append &corrNr=<TRKORR>Body: plain text ABAP source. 200 with empty body. The handle goes in the query string, not a header.
3. Unlock
Section titled “3. Unlock”POST /sap/bc/adt/{object_uri}?_action=UNLOCK&lockHandle=<urlencoded handle>X-sap-adt-sessiontype: stateful200 with empty body. Per the write-side rule, the 200 alone proves nothing;
release was confirmed by an independent _action=LOCK in a fresh process
returning 200 (measured 2026-09-17).
Cross-process / crash semantics (measured 2026-09-16)
Section titled “Cross-process / crash semantics (measured 2026-09-16)”- Lock and unlock belong to the stateful server context identified by the
session cookie. An
_action=UNLOCKfrom a different process without the original cookie jar returns 200 empty but is a silent no-op — the next LOCK still gets 403. - A different process replaying the original cookie jar + handle does release the enqueue (verified by a crash-lock → cookie-restore → unlock → fresh LOCK 200 cycle).
- An orphaned enqueue whose owning process died also disappears when the
server stateful context times out (the SM12 entry was gone the next
morning). There is no cheap synchronous “is it locked” probe:
lockedByEditor="false"on the object resource is per-session state.
write-source verification flow (CLI)
Section titled “write-source verification flow (CLI)”The CLI never relies on ETag/If-Match (GET returns an ETag, but PUT
precondition support is not established). Instead, inside one stateful
session: baseline GET source/main (pre-confirmation) → LOCK (fails with
BAD_REQUEST if the lock’s CORRNR differs from --transport) → stateful
GET source/main re-check against the confirmed baseline hash
(BASELINE_CHANGED, nothing written) → PUT → stateful GET source/main
readback (must equal the upload hash) → UNLOCK in finally → with
--activate: activation POST, then object adtcore:version and
GET source/main?version=active must match the upload.
Canonical hash: strict UTF-8 (one BOM removed), CRLF/CR → LF, trailing
U+0020 per line and trailing empty lines removed — exactly what 7.56 stores
(measured: GET returns CRLF without final newline, PUT drops trailing blanks
and empty lines, keeps tabs). Any other difference is substantive. GET
without version returns the working (inactive, if any) version, i.e. what
a PUT replaces.
Statuses per stage: accepted (2xx only), verified (readback matched),
failed, unknown. PUT 5xx / read timeout / connection reset are
unknown unless the readback matches; 4xx and connect timeouts are
failed. Unknown or partial → WRITE_INCOMPLETE (exit 3) with the stage
data in the envelope. The CLI does not retry, and never writes the old
source back as a “rollback”. Unlock 200 in the owning session is reported
as accepted: proof of release still needs an independent LOCK.
Legacy forms (rejected by 7.56 — do not reintroduce)
Section titled “Legacy forms (rejected by 7.56 — do not reintroduce)”POST {object}?method=lock+ only the stateful header → 400contentTypeMissing; withapplication/xml→ 415.X-sap-adt-lock-handle: <handle>request header and?sap-cts-request=transport parameter — not honored on 7.56 (use?lockHandle=/?corrNr=).POST {object}?method=unlockwith the handle header.
Activation (verified 2026-09-16, Basis 7.56)
Section titled “Activation (verified 2026-09-16, Basis 7.56)”POST /sap/bc/adt/activation?method=activate&preauditRequested=trueContent-Type: application/vnd.sap.adt.activation.request+xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?><adtcore:objectReferences xmlns:adtcore="http://www.sap.com/adt/core"> <adtcore:objectReference adtcore:uri="{object_uri}" adtcore:name="{OBJECT_NAME}"/></adtcore:objectReferences>The ?method=activate parameter is mandatory — a bare POST returns 400
ExceptionParameterNotFound. GET on the same URL returns 405 (but still
serves as a CSRF-token fetch). Activation needs no lock handle and no
shared stateful session: it succeeds from a separate process after
write-source has unlocked (measured lock→write→unlock in process A, activate
in process B).
200 with an empty body = accepted and (for an empty object) activated;
read back to confirm: GET /sap/bc/adt/activation/inactiveobjects
(Accept application/vnd.sap.adt.inactivectsobjects.v1+xml) must not list
the object, and the object resource must carry
adtcore:version="active" (inactive → "inactive"). Non-empty failure
bodies use chkl:messages/msg (type E/A/X) and ioc:inactiveObjects per
the reference implementation. Measured failure (Basis 7.56, syntax error on
line 3): HTTP 200 with <chkl:properties checkExecuted="true" activationExecuted="false" …/> and <msg type="E" line="1" href="…/source/main#start=3,0"> — the line attribute is not the source
line; the position is in href#start=. The CLI maps E/A/X messages or
activationExecuted="false" to ACTIVATION_FAILED (fixture
tests/fixtures/sap_adt_cli/activate.syntax-error.chkl.xml).
Syntax Check (legacy — see verified facts #2)
Section titled “Syntax Check (legacy — see verified facts #2)”POST /sap/bc/adt/abapsource/syntaxcheckContent-Type: application/vnd.sap.adt.abapsource.syntaxcheckresult+xml; charset=utf-8
<?xml version="1.0" encoding="utf-8"?><adtcore:objectReferences xmlns:adtcore="http://www.sap.com/adt/core"> <adtcore:objectReference adtcore:uri="{object_uri}" adtcore:name="{OBJECT_NAME}"/></adtcore:objectReferences>Response: XML with severity (error/warning/info), text, and line attributes. Empty body = no issues.
Where-Used (legacy — see verified facts #5)
Section titled “Where-Used (legacy — see verified facts #5)”GET /sap/bc/adt/repository/informationsystem/whereused ?uri=<full_object_url> ← full URL including scheme+host &maxResults=50Accept: application/vnd.sap.adt.repository.informationsystem.whereused+xmlResponse: XML with adtcore:objectReference elements (namespace http://www.sap.com/adt/core), attributes: adtcore:name, adtcore:type, adtcore:uri.
Open SQL Data Preview (legacy GET — see verified facts #4)
Section titled “Open SQL Data Preview (legacy GET — see verified facts #4)”GET /sap/bc/adt/datapreview/freestyle ?rowNumber=<max_rows> &sqlCommand=<url-encoded-SELECT>Accept: application/xmlResponse: XML with <column name="..."> elements containing row data. Requires /sap/bc/adt/datapreview activated in SICF.
Only SELECT is valid. DML (INSERT, UPDATE, DELETE, MERGE, MODIFY, TRUNCATE) must be blocked at the CLI layer.
Search
Section titled “Search”GET /sap/bc/adt/repository/informationsystem/search ?operation=quickSearch &query=<url-encoded-query> ← supports * wildcard &maxResults=100Response: XML with matching objects.
Package Contents
Section titled “Package Contents”POST /sap/bc/adt/repository/nodestructure ?parent_type=DEVC/K &parent_name=<url-encoded-package> &withShortDescriptions=trueResponse: XML. Relevant nodes:
<SEU_ADT_REPOSITORY_OBJ_NODE> <OBJECT_TYPE>PROG</OBJECT_TYPE> <OBJECT_NAME>ZMYPROGRAM</OBJECT_NAME> <DESCRIPTION>My Program</DESCRIPTION> <OBJECT_URI>/sap/bc/adt/programs/programs/ZMYPROGRAM</OBJECT_URI></SEU_ADT_REPOSITORY_OBJ_NODE>Transaction Properties
Section titled “Transaction Properties”GET /sap/bc/adt/repository/informationsystem/objectproperties/values ?uri=%2Fsap%2Fbc%2Fadt%2Fvit%2Fwb%2Fobject_type%2Ftrant%2Fobject_name%2F{tx_name} &facet=package &facet=applTransport Requests
Section titled “Transport Requests”List transports (legacy — see verified facts #3)
Section titled “List transports (legacy — see verified facts #3)”GET /sap/bc/adt/cts/transports ?user=<username> &target= &category=WorkbenchAccept: application/vnd.sap.cts.transport.worklist+xml; charset=utf-8Response: XML with transport work items. Parse TRKORR, AS4TEXT (description), TRSTATUS (D=open, R=released), AS4USER (owner).
Create transport (verified 2026-09-17, Basis 7.56)
Section titled “Create transport (verified 2026-09-17, Basis 7.56)”Creation is an ABAP-serialized function call — CreateCorrectionRequest
— not a CTS resource document:
POST /sap/bc/adt/cts/transportsAccept: text/plainContent-Type: application/vnd.sap.as+xml; charset=UTF-8; dataname=com.sap.adt.CreateCorrectionRequest
<?xml version="1.0" encoding="UTF-8"?><asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"> <asx:values><DATA> <DEVCLASS>$TMP</DEVCLASS> <REQUEST_TEXT>ADT-CLI PROBE 20260917</REQUEST_TEXT> <REF>/sap/bc/adt/programs/programs/z_adt_session_probe/source/main</REF> <OPERATION>I</OPERATION> </DATA></asx:values></asx:abap>200 with text/plain body /com.sap.cts/object_record/<TRKORR> (no
Location header). Parameters measured only for this combination:
DEVCLASS— package;$TMPproduces a local request (tm:target="",target_desc="Local Change Requests", not releasable);REF— object URI the request is created for (the reference implementation validates it as an object URL); whether it is truly mandatory and how real packages behave vs.$TMPis NOT probed;OPERATION—Imeasured; other values unknown.
Per the write-side rule, read the new request back:
GET /cts/transportrequests/<TRKORR> with
application/vnd.sap.adt.transportorganizer.v1+xml gives tm:status D
(“Modifiable”), owner and description. Note: a root
GET /cts/transportrequests tree returned empty on the capture system
even while the user owned a modifiable request — direct per-TR readback is
the reliable verification.
Create transport (legacy — rejected by 7.56; the CLI used this until 2026-09-17)
Section titled “Create transport (legacy — rejected by 7.56; the CLI used this until 2026-09-17)”POST /sap/bc/adt/cts/transportsContent-Type: application/vnd.sap.cts.transport.request+xml; charset=utf-8
<cts:transportRequest xmlns:cts="http://www.sap.com/cts"> <cts:attributes> <cts:attribute name="category" value="Workbench"/> <cts:attribute name="owner" value="{username}"/> <cts:attribute name="description" value="{description}"/> <cts:attribute name="target" value=""/> </cts:attributes></cts:transportRequest>→ 400 ExceptionDataTypeNotFound “No data type found in content type …”
(fixture tests/fixtures/transport.create.400-old-shape.xml). This was the
CLI shape until 2026-09-17; create-transport now uses the verified
CreateCorrectionRequest form above (--package/--ref required,
--category removed). The fixed CLI’s request body was verified
byte-identical to the live 200 probe; an end-to-end second creation was
not run to avoid a second probe request.
Release transport (modern)
Section titled “Release transport (modern)”POST /sap/bc/adt/cts/transportrequests/{TRKORR}/newreleasejobsAccept: application/*Response tm:root/tm:releasereports/chkrun:checkReport with
chkrun:status="released" or "abortrelapifail" (pre-release check failed).
Readback: GET /cts/transportrequests/{TRKORR}
(vnd.sap.adt.transportorganizer.v1+xml, tm:request@tm:status, D/R);
CLI polls 2s/120s and emits RELEASE_UNVERIFIED (unknown final state — do
not re-release, verify in SE09/SE10) or RELEASE_REJECTED (still D).
Release transport (legacy)
Section titled “Release transport (legacy)”POST /sap/bc/adt/cts/transports/{TRKORR}?action=releaseResponse: 200 = released. Irreversible.
SICF Service Activation
Section titled “SICF Service Activation”Activate in transaction SICF before use:
| Service path | Required for |
|---|---|
/sap/bc/adt |
All ADT endpoints |
/sap/bc/adt/datapreview |
run-sql (Open SQL Data Preview) |
Common HTTP Status Codes
Section titled “Common HTTP Status Codes”| Code | Meaning |
|---|---|
| 200 | Success |
| 401 | Wrong credentials |
| 403 | Missing authorization; expired CSRF token (body mentions csrf); or object already enqueued (ExceptionResourceNoAccess “is currently editing”) on _action=LOCK |
| 404 | Object not found |
| 405 | Method not supported (e.g. GET on /activation) — response headers can still carry a fresh CSRF token |
| 415 | Unsupported media type — the error body names the accepted vendor type (e.g. …programs.programs.v2+xml) |
| 503 | ADT service not activated in SICF |
Required Authorizations
Section titled “Required Authorizations”| Operation | Authorization objects |
|---|---|
| All read operations | S_ADT_RES, S_RFC (ADT function groups) — or role SAP_ADT_BASE |
write-source, activate |
S_DEVELOP with ACTVT=02 on relevant object types |
create-transport, release-transport |
S_CTS_ADMI or equivalent transport authorization |
list-transports |
Covered by SAP_ADT_BASE — no additional flag needed |