adt-mcp
v0.4.62MCP server for SAP ADT operations – exposes adt-cli features as MCP tools
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
sap_connect
Open a SAP ADT session bound to the current MCP session. Subsequent tool calls on the same MCP session may omit connection args.
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
sap_disconnect
Close the SAP ADT session bound to the current MCP session (idempotent).
changeset_begin
Open a transactional unit-of-work bound to the current MCP session. Pair with changeset_add, changeset_commit, changeset_rollback.
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
description | string | Free-text description recorded on the changeset |
force | boolean | Auto-rollback any existing open changeset first |
password | string | Password for basic auth |
systemId | string | |
username | string | Username for basic auth |
changeset_add
Stage an object write into the current open changeset: lock + PUT source. Activation is deferred to changeset_commit.
| Parameter | Type | Description |
|---|---|---|
objectName * | string | ABAP object name |
objectType * | string | Object type (e.g. PROG, CLAS, INTF, FUGR) |
source * | string | New ABAP source code |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | |
transport | string | Transport request (required for transportable objects) |
username | string | Username for basic auth |
changeset_commit
Activate every object staged in the current changeset (single batch POST to /sap/bc/adt/activation), release all locks, clear the session pointer.
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | |
username | string | Username for basic auth |
changeset_rollback
Release every lock held by the current changeset and mark it rolled back. Source PUTs are not reverted (SAP has no transactional discard — the inactive version stays until the next edit/activate cycle).
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | |
username | string | Username for basic auth |
discovery
Discover available ADT services on a SAP system
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
filter | string | Filter workspaces by title substring |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
system_info
Get SAP system and/or session information
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
scope | string | What to retrieve (default: both) |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
search_objects
Search for ABAP objects in the repository (supports wildcards)
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query (supports wildcards like *) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
maxResults | number | Maximum number of results (default: 50) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_object
Get details about a specific ABAP object by name
| Parameter | Type | Description |
|---|---|---|
objectName * | string | ABAP object name to inspect |
objectType * | string | Object type (e.g. CLAS, PROG, INTF, FUGR) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
cts_list_transports
List transport requests from the CTS
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
maxResults | number | Maximum number of results (default: 50) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
cts_get_transport
Get details of a specific transport request
| Parameter | Type | Description |
|---|---|---|
transport * | string | Transport number (e.g. TRLK900001) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
cts_transport_metadata
Get typed request/task metadata including CTS status, parent, type, and last-change timestamp.
| Parameter | Type | Description |
|---|---|---|
transport * | string | Transport request or task number |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
cts_create_transport
Create a new transport request
| Parameter | Type | Description |
|---|---|---|
description * | string | Transport description |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
project | string | CTS project name |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
target | string | Target system |
type | string | Transport type: K (Workbench) or W (Customizing). Default: K |
username | string | Username for basic auth |
cts_create_task
Create and verify a modifiable task under an existing transport request.
| Parameter | Type | Description |
|---|---|---|
owner * | string | SAP user who should own the task |
transport * | string | Parent transport request number |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
cts_release_transport
Release a transport request
| Parameter | Type | Description |
|---|---|---|
transport * | string | Transport number to release (e.g. TRLK900001) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
releaseAll | boolean | Release all modifiable tasks before the request |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
cts_delete_transport
Delete a transport request
| Parameter | Type | Description |
|---|---|---|
transport * | string | Transport number to delete (e.g. TRLK900001) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
cts_search_transports
Search transport requests via /sap/bc/adt/cts/transports?_action=FIND. Filters: user (owner), trfunction (K/W/T/*), status (D/R/L/... client-side filter).
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
maxResults | number | Maximum number of results (default: 50) |
password | string | Password for basic auth |
status | string | Optional client-side filter on TRSTATUS (e.g. D=Modifiable, R=Released) |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
trfunction | string | Transport function filter – K=workbench, W=customizing, T=copies, * for all (default: *) |
user | string | Owner filter – username or * for all (default: *) |
username | string | Username for basic auth |
atc_run
Run ABAP Test Cockpit (ATC) checks for a package, transport request, or named objects.
| Parameter | Type | Description |
|---|---|---|
scope * | Canonical target scope; never an ADT URI | |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
objectUri | ||
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
variant | string |
get_frozen_source
Read one immutable source body from the signed frozen AI Review scope.
| Parameter | Type | Description |
|---|---|---|
canonicalKey * | string | Canonical object key from the accepted Review scope |
componentId * | string | Immutable source component from the accepted Review scope |
get_source
Fetch ABAP source code for an object (program, class, interface, etc.) with optional version, include, method-level, grep filtering, or structured output.
| Parameter | Type | Description |
|---|---|---|
objectName * | string | ABAP object name |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
format | string | Output format: raw source text, or structured JSON with class includes and method boundaries. |
grep | string | Regex pattern; returns only matching source lines with context instead of full source. |
include | string | For CLAS: source include such as definitions, implementations, testclasses, macros, localtypes, text_symbols, or main. |
maxBytes | integer | Maximum UTF-8 response size in bytes (default 1048576, hard cap 2097152). Oversized source is rejected, never truncated. |
method | string | For CLAS: method name to read, or "*" to list all methods. |
objectType | string | Object type (e.g. PROG, CLAS, INTF). Speeds up URI resolution when known. |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
version | string | Source version: active (default, last activated) or inactive (unactivated draft). |
update_source
Write new ABAP source code to an existing object (acquires lock, PUTs source, releases lock)
| Parameter | Type | Description |
|---|---|---|
objectName * | string | ABAP object name |
sourceCode * | string | New ABAP source code |
action | string | Write mode: update writes full source; editMethod replaces one method body inside a class |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
lintBeforeWrite | boolean | When true, run local abaplint pre-check and block write on parser/cloud violations |
lintPreset | string | Lint preset for lintBeforeWrite gate (btp enables cloud_types checking) |
methodName | string | Method name to replace when action=editMethod |
objectType | string | Object type (e.g. PROG, CLAS, INTF) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
transport | string | Transport request number (required for transportable objects) |
username | string | Username for basic auth |
lint_abap
Run local ABAP lint checks using @abaplint/core. Supports lint, lint_and_fix, and list_rules.
| Parameter | Type | Description |
|---|---|---|
action | string | |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
lintPreset | string | Lint preset to apply (defaults to onpremise) |
objectName | string | Optional object name used for issue filename context |
password | string | Password for basic auth |
ruleOverrides | object | Optional per-rule override config passed to abaplint |
source | string | ABAP source code to lint |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_context
Fetch compressed dependency context for an ABAP object by stripping dependencies to their public API surface.
| Parameter | Type | Description |
|---|---|---|
objectName * | string | ABAP object name |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
depth | integer | Dependency traversal depth (1..3) |
maxDeps | integer | Maximum dependencies to include |
objectType | string | Object type (CLAS, INTF, PROG, DDLS, FUNC) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
activate_object
Activate one or more ABAP objects. Supply either objectName+objectType for a single object, or the objects array for batch activation.
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
objectName | string | ABAP object name (single-object mode) |
objectType | string | Object type (e.g. PROG, CLAS, INTF) (single-object mode) |
objects | array | Array of objects to activate (batch mode) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
check_syntax
Run ABAP syntax check (checkruns) on an object and return structured messages
| Parameter | Type | Description |
|---|---|---|
objectName * | string | ABAP object name to check |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
objectType | string | Object type hint (e.g. CLAS, PROG). Speeds up URI resolution. |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
version | string | Version to check: active, inactive, or new (default: active) |
run_unit_tests
Run ABAP Unit tests on an object or package and return pass/fail counts per method
| Parameter | Type | Description |
|---|---|---|
objectName * | string | ABAP object name (class, program, or package) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
coverage | boolean | Alias for withCoverage. If true, returns coverage report XML alongside the results. |
coverageFormat | string | Coverage report format when coverage is enabled |
objectType | string | Object type (e.g. CLAS, PROG, DEVC). Speeds up URI resolution. |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
withCoverage | boolean | Whether to collect code coverage data |
get_test_classes
Get the test class definitions (FOR TESTING) embedded in an ABAP class
| Parameter | Type | Description |
|---|---|---|
className * | string | ABAP class name (e.g. ZCL_MY_CLASS) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
list_package_objects
List ABAP objects contained in a package (uses quickSearch with packageName filter)
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name (e.g. ZPACKAGE) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
maxResults | number | Maximum number of results (default: 200) |
objectType | string | Filter by object type (e.g. CLAS, PROG, INTF) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
grep_objects
Regex search for a pattern within named ABAP object source code.
| Parameter | Type | Description |
|---|---|---|
objects * | array | Objects to search within (resolved to URIs automatically) |
pattern * | string | Search pattern (regex or literal string) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
maxResults | number | Maximum number of results (default: 50) |
objectUris | ||
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
grep_packages
Regex search for a pattern across all ABAP source code within a package (and optionally its subpackages)
| Parameter | Type | Description |
|---|---|---|
packageName * | string | ABAP package name to search within (e.g. ZPACKAGE) |
pattern * | string | Search pattern (regex or literal string) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
includeSubPackages | boolean | Also search subpackages (default: true) |
maxResults | number | Maximum number of results (default: 50) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_table
Read DDIC table or structure definition (fields, keys, data elements)
| Parameter | Type | Description |
|---|---|---|
tableName * | string | DDIC table or structure name (e.g. MARA, VBAK) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_table_contents
Read data from a DDIC table with optional WHERE filter, column selection, and row limit. WARNING: the WHERE clause is sent as-is to the SAP data preview endpoint — avoid untrusted input.
| Parameter | Type | Description |
|---|---|---|
tableName * | string | DDIC table name (e.g. MARA, VBAK, T001) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
columns | array | Columns to select (default: all columns). Example: ["MATNR","MBRSH"] |
maxRows | number | Maximum rows to return (default: 100) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
where | string | WHERE clause (ABAP SQL syntax, e.g. "MATNR LIKE 'Z%'") |
run_query
Execute a freestyle ABAP SQL SELECT query and return results as JSON. Only SELECT statements are supported.
| Parameter | Type | Description |
|---|---|---|
query * | string | ABAP SQL SELECT statement (e.g. "SELECT * FROM T001 WHERE MANDT = '100'") |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
maxRows | number | Maximum rows to return (default: 100) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
find_definition
Resolve an ABAP symbol (class, interface, function, data element, …) to its ADT object URI.
| Parameter | Type | Description |
|---|---|---|
objectName * | string | Name of the symbol or object to resolve |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
objectType | string | Object type to narrow the search (e.g. CLAS, PROG, DTEL, TABL) |
parentObjectName | string | Parent object name (e.g. class name when looking for a method) — currently used as a hint for scoping |
parentObjectType | string | Parent object type (e.g. CLAS) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
find_references
Find all usages (where-used) of an ABAP object or symbol. Uses the 2-step POST /usageReferences protocol.
| Parameter | Type | Description |
|---|---|---|
objectName * | string | Name of the ABAP object to find references for |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
maxResults | number | Maximum number of results (default: 100) |
objectType | string | Object type (e.g. CLAS, PROG, DTEL, TABL) |
objectUri | ||
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_callers_of
Find all callers (upward call hierarchy) of an ABAP method, function module, or subroutine
| Parameter | Type | Description |
|---|---|---|
objectName * | string | Name of the ABAP object (class, function group, program) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
maxResults | number | Maximum number of results (default: 50) |
objectType | string | Object type (e.g. CLAS, FUGR, PROG) |
objectUri | ||
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_callees_of
Find all callees (downward call hierarchy) of an ABAP method, function module, or subroutine
| Parameter | Type | Description |
|---|---|---|
objectName * | string | Name of the ABAP object (class, function group, program) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
maxResults | number | Maximum number of results (default: 50) |
objectType | string | Object type (e.g. CLAS, FUGR, PROG) |
objectUri | ||
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
create_object
Create a new ABAP object. Supported types: PROG, CLAS, INTF, FUGR, DEVC, DOMA (domain), DTEL (data element), TABL (table), STRUCT (structure), DDLS (CDS DDL), DCLS (CDS DCL), BDEF (RAP behavior definition), SRVD (RAP service definition).
| Parameter | Type | Description |
|---|---|---|
description * | string | Short description of the object |
objectName * | string | Name of the new object (uppercase, e.g. ZCL_MY_CLASS, ZPACKAGE) |
objectType * | string | Object type: PROG, CLAS, INTF, FUGR, DEVC, DOMA, DTEL, TABL, STRUCT, DDLS, DCLS, BDEF, SRVD |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
packageName | string | Package to assign the object to (required for non-local objects) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
transport | string | Transport request number (required for transportable objects) |
username | string | Username for basic auth |
delete_object
Delete an ABAP object. Supports PROG, INCL, CLAS, INTF, FUGR, DEVC, DOMA, DTEL, TABL, STRUCT, DDLS, DCLS, BDEF, SRVD, SRVB and falls back to direct URI deletion for other types.
| Parameter | Type | Description |
|---|---|---|
objectName * | string | Name of the ABAP object to delete |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
objectType | string | Object type (e.g. CLAS, PROG, INTF, FUGR, DEVC) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
transport | string | Transport request number (required for transportable objects) |
username | string | Username for basic auth |
activate_package
Batch-activate all inactive objects in a package. Returns the count and list of activated objects.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | ABAP package name (e.g. ZPACKAGE) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_function_group
Read ABAP function group metadata (description, includes). Optionally includes source code.
| Parameter | Type | Description |
|---|---|---|
groupName * | string | Function group name (e.g. ZFUGR_UTIL) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
includeSource | boolean | Whether to also return the main include source code (default: false) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_function
Read ABAP function module metadata (parameters, exceptions) and optionally its source code.
| Parameter | Type | Description |
|---|---|---|
functionName * | string | Function module name (e.g. Z_MY_FUNCTION) |
groupName * | string | Function group name (e.g. ZFUGR_UTIL) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
includeSource | boolean | Whether to also return the source code (default: false) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
create_function_group
Create a new ABAP function group. Wraps the typed functions/groups contract.
| Parameter | Type | Description |
|---|---|---|
description * | string | Short description of the group |
groupName * | string | Function group name (uppercase, e.g. ZFG_UTIL) |
packageName * | string | Package to assign the function group to |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
transport | string | Transport request number (for transportable objects) |
username | string | Username for basic auth |
create_function_module
Create a new ABAP function module in a function group. Wraps the typed fmodules contract.
| Parameter | Type | Description |
|---|---|---|
description * | string | Short description |
functionName * | string | Function module name (e.g. Z_MY_FM) |
groupName * | string | Parent function group name (e.g. ZFG_UTIL) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
processingType | string | Processing type (default: normal) |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
transport | string | Transport request number (for transportable objects) |
username | string | Username for basic auth |
delete_function_module
Delete an ABAP function module. Requires both group name and module name.
| Parameter | Type | Description |
|---|---|---|
functionName * | string | Function module name to delete |
groupName * | string | Parent function group name (e.g. ZFG_UTIL) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
transport | string | Transport request number (for transportable objects) |
username | string | Username for basic auth |
lock_object
Acquire an ADT edit lock on an ABAP object and return the lock handle needed for subsequent write operations.
| Parameter | Type | Description |
|---|---|---|
objectName * | string | ABAP object name |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
objectType | string | Object type (e.g. CLAS, PROG, INTF, FUGR) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
transport | string | Transport request number |
username | string | Username for basic auth |
unlock_object
Release an ADT edit lock acquired with lock_object. Requires the lockHandle returned by lock_object.
| Parameter | Type | Description |
|---|---|---|
lockHandle * | string | Lock handle returned by lock_object |
objectName * | string | ABAP object name |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
objectType | string | Object type (e.g. CLAS, PROG, INTF, FUGR) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_object_structure
Get the structural tree of an ABAP object (includes, methods, attributes, sub-components).
| Parameter | Type | Description |
|---|---|---|
objectName * | string | ABAP object name |
objectType * | string | Object type (e.g. CLAS, PROG, INTF, FUGR) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
version | string | Object version to inspect (default: active) |
get_type_hierarchy
Get the type hierarchy (super/sub-types, implemented interfaces) of an ABAP class or interface.
| Parameter | Type | Description |
|---|---|---|
objectName * | string | Class or interface name (e.g. ZCL_MY_CLASS, ZIF_MY_INTF) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
includeSubTypes | boolean | Whether to include sub-types (subclasses/implementors) in the result (default: false) |
objectType | string | Object type: CLAS (class) or INTF (interface). Auto-detected if omitted. |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
pretty_print
Format ABAP source code via the SAP pretty-printer. Returns the formatted code without modifying the object.
| Parameter | Type | Description |
|---|---|---|
sourceCode * | string | ABAP source code to format |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_short_dumps
List ABAP runtime short dumps or fetch details for a specific dump id.
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
id | string | Short dump id for details lookup |
maxResults | integer | Maximum dumps to return |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
user | string | Optional SAP user filter |
username | string | Username for basic auth |
get_traces
List ABAP runtime traces or fetch trace details (hitlist/db accesses).
| Parameter | Type | Description |
|---|---|---|
action | string | Trace operation to execute |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
id | string | Trace id for hitlist/dbAccesses actions |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_completions
Get ABAP code-completion proposals at a specific cursor position.
| Parameter | Type | Description |
|---|---|---|
column * | integer | 1-based cursor column |
line * | integer | 1-based cursor line |
objectName * | string | ABAP object name |
objectType * | string | ABAP object type (e.g. CLAS, PROG) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
sourceCode | string | Optional source override; fetched from SAP if omitted |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
create_package
Create a new ABAP development package (DEVC). Omit transport for local ($TMP) packages.
| Parameter | Type | Description |
|---|---|---|
description * | string | Short description of the package |
packageName * | string | Package name (e.g. ZPACKAGE, $TMP_TEST) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
packageType | string | Package type (default: development) |
parentPackage | string | Parent package name (e.g. ZROOT). If omitted the package is created at the top level. |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
transport | string | Transport request number. Omit for local packages (e.g. $-prefixed names). |
username | string | Username for basic auth |
get_installed_components
List all software components installed on the SAP system with their version and release information.
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_features
Probe the SAP system for available ADT features (abapGit, RAP, AMDP, UI5, ATC, CTS, etc.).
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
clone_object
Copy an ABAP object to a new name. Supported types: PROG, CLAS, INTF. Creates the new object and copies the source code.
| Parameter | Type | Description |
|---|---|---|
sourceObjectName * | string | Name of the source object to copy |
sourceObjectType * | string | Object type of the source: PROG, CLAS, or INTF |
targetObjectName * | string | Name for the new (cloned) object |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
targetDescription | string | Description for the clone (defaults to source description with "Copy of" prefix) |
targetPackage | string | Package for the clone |
transport | string | Transport request number for the clone |
username | string | Username for basic auth |
publish_service_binding
Publish (or unpublish) a RAP Service Binding (SRVB) in SAP. Pass `unpublish: true` to deactivate. Delegates to the typed SRVB contract.
| Parameter | Type | Description |
|---|---|---|
bindingName * | string | Service binding name (e.g. ZUI_MYAPP_O4) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
unpublish | boolean | If true, unpublishes (deactivates) the service binding instead (default: false) |
username | string | Username for basic auth |
get_git_types
List ABAP objects in a package that are eligible for abapGit export. Requires abapGit installed on the SAP system.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | ABAP package name to inspect (e.g. ZPACKAGE) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
git_export
Export an ABAP package in abapGit XML format. Requires abapGit installed on the SAP system. Returns a map of file paths to their content.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | ABAP package name to export (e.g. ZPACKAGE) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
import_object
Import a single ABAP object (by name) into a local folder in abapGit format. Mirrors `adt import object`.
| Parameter | Type | Description |
|---|---|---|
objectName * | string | ABAP object name (case-insensitive) |
objectType * | string | ABAP object type (e.g. CLAS, INTF, PROG, FUGR, DOMA). Used as a hint. |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
format | string | Format plugin name, default 'abapgit' |
outputDir | string | Target directory for the serialised files (default: ./imported) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
import_package
Recursively import all objects in an ABAP package to a local folder in abapGit format. Mirrors `adt import package`.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | ABAP package name (e.g. Z_MY_PACKAGE) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
format | string | Format plugin name, default 'abapgit' |
objectTypes | array | Optional list of object types to filter (e.g. ["CLAS","INTF"]) |
outputDir | string | Target directory (default: ./imported) |
password | string | Password for basic auth |
recursive | boolean | Include subpackages (default: true) |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
import_transport
Export all objects referenced by a transport request to a local folder. Mirrors `adt import transport`.
| Parameter | Type | Description |
|---|---|---|
transportNumber * | string | Transport request number(s), comma-separated for multiple (e.g. "DEVK900001" or "DEVK900001,DEVK900002") |
applyDeletions | boolean | Whether to remove local files for objects marked with obj_func=D and pgmid=R3TR (default: true) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
format | string | Format plugin name, default 'abapgit' |
objectTypes | array | Optional list of object types to filter (e.g. ["CLAS","INTF"]) |
outputDir | string | Target directory (default: ./imported) |
password | string | Password for basic auth |
removeMissingObjects | boolean | Remove local files only for confirmed HTTP 404/not-found objects; other read errors fail without cleanup (default: false) |
saveTrMetadata | boolean | Write a JSON sidecar for each transport to <outputDir>/.adt/tr/<TRKORR>.json (default: false) |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
cts_update_transport
Update a transport request (description, target, project). Uses ADT lock/unlock protocol.
| Parameter | Type | Description |
|---|---|---|
transportNumber * | string | Transport number (e.g. TRLK900123) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
description | string | New transport description |
password | string | Password for basic auth |
project | string | CTS project name |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
target | string | New target system |
username | string | Username for basic auth |
cts_reassign_transport
Change the owner of a transport request (optionally cascading to modifiable tasks).
| Parameter | Type | Description |
|---|---|---|
targetUser * | string | SAP username of the new owner |
transportNumber * | string | Transport number (e.g. TRLK900123) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
recursive | boolean | Also reassign all modifiable tasks (default: false) |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
cts_transport_objects
List objects in a transport request with optional obj_func / pgmid / type filters. Mirrors `adt cts tr objects`.
| Parameter | Type | Description |
|---|---|---|
transport * | string | Transport number (e.g. DEVK900001) |
alsoTransports | array | Additional transport numbers to merge (deduplicated by pgmid/type/name) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
objFunc | string | Filter by object function code (comma-separated). 'D' = deletions only, '*' = any non-empty. |
password | string | Password for basic auth |
pgmid | string | Filter by program ID (comma-separated, e.g. 'R3TR' or 'R3TR,LIMU'). '*' = any. |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
type | string | Filter by object type (comma-separated, e.g. 'CLAS,TABL'). '*' = any. |
username | string | Username for basic auth |
stat_package
Check whether an ABAP package exists. Returns { exists, metadata? }.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name (e.g. ZPACKAGE) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_package
Get metadata for an ABAP package, optionally including its contained objects.
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Package name (e.g. ZPACKAGE) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
includeObjects | boolean | If true, also list the objects contained in the package. |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
lookup_user
Look up SAP system users. Empty query returns the current user; exact username returns a single user; wildcard query (with * or ?) searches.
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
maxResults | integer | Max results for wildcard searches (default: 50). |
password | string | Password for basic auth |
query | string | Username (exact) or wildcard search (e.g. DEV*). Empty returns the current user. |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
run_abap
Execute an ad-hoc ABAP snippet via a temporary IF_OO_ADT_CLASSRUN class. Creates the class, writes the source, activates, executes, then deletes (unless keepClass is true).
| Parameter | Type | Description |
|---|---|---|
source * | string | ABAP source — either a bare method body or a full CLASS definition |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
className | string | Temp class name (default: ZCL_ADTCLI_RUN) |
client | string | SAP client number |
keepClass | boolean | If true, do not delete the temp class after execution |
packageName | string | Package for temp class (default: $TMP) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
transport | string | Transport request (not needed for $TMP) |
username | string | Username for basic auth |
get_domain
Fetch DDIC domain metadata (type information, fixed values, output info).
| Parameter | Type | Description |
|---|---|---|
domainName * | string | Domain name (e.g. ZDOM_SAMPLE) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_include
Fetch metadata for an ABAP program include (PROG/I).
| Parameter | Type | Description |
|---|---|---|
includeName * | string | Include name (e.g. ZTEST_INCLUDE). Case-insensitive. |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_data_element
Fetch DDIC data element metadata.
| Parameter | Type | Description |
|---|---|---|
dataElementName * | string | Data element name (e.g. ZDTEL_SAMPLE) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_structure
Fetch DDIC structure metadata, optionally including the ABAP source.
| Parameter | Type | Description |
|---|---|---|
structureName * | string | Structure name (e.g. ZSTRUCT_SAMPLE) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
includeSource | boolean | Include ABAP source definition |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_cds_ddl
Fetch CDS DDL source (DDLS) metadata, optionally including the DDL source code.
| Parameter | Type | Description |
|---|---|---|
ddlName * | string | DDL source name (e.g. ZDDL_SAMPLE) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
includeSource | boolean | Include DDL source code |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_cds_dcl
Fetch CDS DCL access control source (DCLS) metadata, optionally including the source code.
| Parameter | Type | Description |
|---|---|---|
dclName * | string | DCL source name (e.g. ZDCL_SAMPLE) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
includeSource | boolean | Include DCL source code |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_bdef
Fetch RAP Behavior Definition (BDEF) metadata, optionally including the .abdl source code.
| Parameter | Type | Description |
|---|---|---|
bdefName * | string | BDEF name (e.g. ZBP_MY_ENTITY) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
includeSource | boolean | Include the .abdl source text |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
create_bdef
Create a new RAP Behavior Definition (BDEF) object.
| Parameter | Type | Description |
|---|---|---|
bdefName * | string | BDEF name (uppercase, e.g. ZBP_MY_ENTITY) |
description * | string | Short description |
packageName * | string | ABAP package to assign the BDEF to (e.g. $TMP) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
transport | string | Transport request number (required for transportable) |
username | string | Username for basic auth |
delete_bdef
Delete a RAP Behavior Definition (BDEF) object.
| Parameter | Type | Description |
|---|---|---|
bdefName * | string | BDEF name |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
transport | string | Transport request number |
username | string | Username for basic auth |
get_badi
Read BAdI information (classic SXSD/SXCI definition or implementation, or ENHO/XHH). Kind is auto-detected. Use includeImplementations on a definition to list its classic implementations.
| Parameter | Type | Description |
|---|---|---|
badiName * | string | BAdI name — definition, implementation (SXCI/XI), or ENHO container |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
includeImplementations | boolean | When badiName is a classic definition (SXSD/XD), include its SXCI/XI implementations |
includeSource | boolean | Include ENHO/XHH source text when kind is enhancement |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
create_badi
Create a new Enhancement Implementation (ENHO/XHH — BAdI container).
| Parameter | Type | Description |
|---|---|---|
badiName * | string | Enhancement Implementation name (uppercase) |
description * | string | Short description |
packageName * | string | ABAP package to assign the ENHO to (e.g. $TMP) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
transport | string | Transport request number (required for transportable) |
username | string | Username for basic auth |
delete_badi
Delete an Enhancement Implementation (ENHO/XHH — BAdI container).
| Parameter | Type | Description |
|---|---|---|
badiName * | string | Enhancement Implementation name |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
transport | string | Transport request number |
username | string | Username for basic auth |
get_srvd
Fetch RAP Service Definition (SRVD) metadata, optionally including the .asrvd source code.
| Parameter | Type | Description |
|---|---|---|
srvdName * | string | SRVD name (e.g. ZUI_MY_SERVICE) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
includeSource | boolean | Include the .asrvd source text |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
create_srvd
Create a new RAP Service Definition (SRVD) object.
| Parameter | Type | Description |
|---|---|---|
description * | string | Short description |
packageName * | string | ABAP package to assign the SRVD to (e.g. $TMP) |
srvdName * | string | SRVD name (uppercase, e.g. ZUI_MY_SERVICE) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
transport | string | Transport request number (required for transportable) |
username | string | Username for basic auth |
delete_srvd
Delete a RAP Service Definition (SRVD) object.
| Parameter | Type | Description |
|---|---|---|
srvdName * | string | SRVD name |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
transport | string | Transport request number |
username | string | Username for basic auth |
get_srvb
Fetch RAP Service Binding (SRVB) metadata. SRVB has no source text; only the binding XML is returned.
| Parameter | Type | Description |
|---|---|---|
srvbName * | string | SRVB name (e.g. ZUI_MY_BINDING) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
create_srvb
Create a new RAP Service Binding (SRVB) object.
| Parameter | Type | Description |
|---|---|---|
description * | string | Short description |
packageName * | string | ABAP package to assign the SRVB to (e.g. $TMP) |
srvbName * | string | SRVB name (uppercase, e.g. ZUI_MY_BINDING) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
transport | string | Transport request number (required for transportable) |
username | string | Username for basic auth |
delete_srvb
Delete a RAP Service Binding (SRVB) object.
| Parameter | Type | Description |
|---|---|---|
srvbName * | string | SRVB name |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
transport | string | Transport request number |
username | string | Username for basic auth |
unpublish_srvb
Unpublish (deactivate) a RAP Service Binding (SRVB) so it is no longer exposed via the SAP Gateway.
| Parameter | Type | Description |
|---|---|---|
srvbName * | string | SRVB name |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
list_pses
List SAP STRUST Personal Security Environments (identities).
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
list_certs
List X.509 certificates installed in a STRUST PSE.
| Parameter | Type | Description |
|---|---|---|
applic * | string | PSE application (e.g. DFAULT, ANONYM) |
context * | string | PSE context (e.g. SSLC, SSLS) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
upload_cert
Upload a PEM-encoded X.509 certificate into a STRUST PSE.
| Parameter | Type | Description |
|---|---|---|
applic * | string | PSE application (e.g. DFAULT, ANONYM) |
context * | string | PSE context (e.g. SSLC, SSLS) |
pem * | string | PEM-encoded certificate text (BEGIN/END CERTIFICATE blocks) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
delete_cert
Delete a certificate from a STRUST PSE.
| Parameter | Type | Description |
|---|---|---|
applic * | string | PSE application (e.g. DFAULT, ANONYM) |
certId * | string | Certificate id (from list_certs, typically a 1-based index) |
context * | string | PSE context (e.g. SSLC, SSLS) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
checkin
Push a local abapGit/gCTS-formatted directory into SAP (inverse of `import_package`). Mirrors `adt checkin`.
| Parameter | Type | Description |
|---|---|---|
sourceDir * | string | Local directory containing serialised files |
abapLanguageVersion | string | ABAP language version — e.g. '5' for Cloud |
activate | boolean | Activate saved objects after apply (default true) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
dryRun | boolean | If true, build the plan but do not modify SAP |
format | string | Format id — e.g. 'abapgit' (default) or 'gcts' |
objectTypes | array | Filter to these ABAP types (e.g. ["CLAS","INTF"]) |
password | string | Password for basic auth |
rootPackage | string | Target root SAP package (required for PREFIX folder logic) |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
transport | string | Transport request (e.g. DEVK900001) |
unlock | boolean | Release objects only when this CLI previously persisted their lock handles |
username | string | Username for basic auth |
gcts_list_repos
List gCTS repositories on the SAP system
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
gcts_get_repo
Get a single gCTS repository by RID
| Parameter | Type | Description |
|---|---|---|
rid * | string | Repository ID |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
gcts_create_repo
Create a new gCTS repository (POST /repository)
| Parameter | Type | Description |
|---|---|---|
rid * | string | Repository ID |
url * | string | Git URL (https://...) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
role | string | Repository role (default: SOURCE) |
startingFolder | string | Repository start directory (default: src/) |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
type | string | Repository type (default: GITHUB) |
username | string | Username for basic auth |
vcsToken | string | VCS authentication token (if required) |
vsid | string | Virtual system ID (default: 6IT) |
gcts_clone_repo
Clone an existing gCTS repository (POST /clone)
| Parameter | Type | Description |
|---|---|---|
rid * | string | Repository ID |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
gcts_delete_repo
Delete a gCTS repository (DELETE /repository/<rid>)
| Parameter | Type | Description |
|---|---|---|
rid * | string | Repository ID |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
gcts_pull
Pull a gCTS repository (GET /pullByCommit)
| Parameter | Type | Description |
|---|---|---|
rid * | string | Repository ID |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
gcts_checkout_branch
Check out a branch in a gCTS repository
| Parameter | Type | Description |
|---|---|---|
branch * | string | Target branch |
rid * | string | Repository ID |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
currentBranch | string | Current branch (auto-detected if omitted) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
gcts_list_branches
List branches of a gCTS repository
| Parameter | Type | Description |
|---|---|---|
rid * | string | Repository ID |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
gcts_create_branch
Create a branch in a gCTS repository
| Parameter | Type | Description |
|---|---|---|
name * | string | New branch name |
rid * | string | Repository ID |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
localOnly | boolean | Create a local branch only |
password | string | Password for basic auth |
peeled | boolean | |
symbolic | boolean | |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
gcts_switch_branch
Switch branches in a gCTS repository
| Parameter | Type | Description |
|---|---|---|
rid * | string | Repository ID |
target * | string | Target branch |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
currentBranch | string | |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
gcts_commit
Commit a package or transport into a gCTS repository
| Parameter | Type | Description |
|---|---|---|
rid * | string | Repository ID |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
corrnr | string | Transport number (mutually exclusive with devc) |
description | string | Long description |
devc | string | ABAP package name (defaults to RID when corrnr is absent) |
message | string | Commit message |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
gcts_log
Show the commit history of a gCTS repository
| Parameter | Type | Description |
|---|---|---|
rid * | string | Repository ID |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
gcts_config
Get, set, unset, or list gCTS repository configuration entries
| Parameter | Type | Description |
|---|---|---|
action * | string | Operation to perform |
rid * | string | Repository ID |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
key | string | Config key (for get/set/unset) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
value | string | Config value (for set) |
call_rfc
Invoke a classic RFC function module on the SAP system via SOAP-over-HTTP (/sap/bc/soap/rfc). Use this for BAPIs, STFC_CONNECTION, custom RFC FMs, etc.
| Parameter | Type | Description |
|---|---|---|
functionModule * | string | RFC function module name (case-insensitive, e.g. "STFC_CONNECTION") |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | Override sap-client query parameter |
parameters | object | Flat key/value map of RFC parameters. Scalars as strings; structures as objects; tables as arrays of objects. |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
list_flp_catalogs
List Fiori Launchpad catalogs via the Page Builder OData service
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
list_flp_groups
List Fiori Launchpad groups (Page Builder "Pages") via OData
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
list_flp_tiles
List Fiori Launchpad tiles (CHIPs). Optional catalogId filter.
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
catalogId | string | Restrict to tiles of a specific catalog |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_flp_tile
Get a single Fiori Launchpad tile (CHIP) by its full CHIP ID
| Parameter | Type | Description |
|---|---|---|
tileId * | string | CHIP ID, e.g. X-SAP-UI2-CHIP:/UI2/STATIC_APPLAUNCHER |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
list_source_versions
List immutable ADT source-version metadata and transport provenance for an ABAP object. Source bodies are never returned.
| Parameter | Type | Description |
|---|---|---|
objectName * | string | ABAP object name |
objectType * | string | ABAP object type (for example PROG, CLAS, or INTF) |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
component | string | Optional source component id (for example main, definitions, or testclasses) |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
get_source_version
Read one manifest-authorised immutable ADT source version. The UTF-8 response is bounded and is never silently truncated.
| Parameter | Type | Description |
|---|---|---|
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
maxBytes | integer | Maximum UTF-8 response size in bytes (default 1048576, hard cap 2097152) |
password | string | Password for basic auth |
sourceCapability | string | Opaque capability returned by cts_transport_source_manifest |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
uri | string | Direct server-relative ADT URI (must start with /sap/bc/adt/); prefer sourceCapability |
username | string | Username for basic auth |
cts_transport_source_manifest
Build an exactness-gated, component-granular source manifest for one or more CTS transports. Returns metadata and opaque immutable source capabilities only.
| Parameter | Type | Description |
|---|---|---|
transports * | array | Non-empty ordered list of CTS request or task numbers |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
concurrency | integer | Maximum concurrent metadata/feed requests (hard cap 32) |
password | string | Password for basic auth |
selector | object | Optional CTS object selector; dimensions are ANDed |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
flow_checkout_tr
Reconcile a confined workspace to the exact base or head source boundary of one or more transports.
| Parameter | Type | Description |
|---|---|---|
transports * | array | |
workspaceRoot * | string | Absolute target directory within a server-owned root |
base | boolean | |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
indexOnInexact | boolean | Persist source-free inventory when an exact source boundary is unavailable |
partial | boolean | Materialize only objects with exact source-history boundaries |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |
verifyInventory | boolean | Recompute transport inventory instead of reusing an exact-head index |
flow_index_tr
Persist a confined workspace transport inventory without materializing source files.
| Parameter | Type | Description |
|---|---|---|
transports * | array | |
workspaceRoot * | string | Absolute target directory within a server-owned root |
baseUrl | string | SAP system base URL (e.g. https://host:8000) |
client | string | SAP client number |
password | string | Password for basic auth |
systemId | string | Logical system id (resolved via the server multi-system configuration) |
username | string | Username for basic auth |