SAP ABAP Development Tools (ADT)
Read and write ABAP and CDS sources, activate objects, run classrun probes and manage transport requests over the ADT REST API — the same API Eclipse uses, without Eclipse.
Authentication
This connector uses Token-based authentication.
info
Set up your connection in the Abstra Console before using it in your workflows.
How to use
Using the Smart Chat
Execute the action "CHOOSE_ONE_ACTION_BELOW" from my connector "YOUR_CONNECTOR_NAME" using the params "PARAMS_HERE".
Using the Web Editor
from abstra.connectors import run_connection_action
result = run_connection_action(
connection_name="your_connection_name",
action_name="your_action_name",
params={
"param1": "value1",
"param2": "value2"
})
Available Actions
This connector provides 10 actions:
| Action | Purpose | Parameters |
|---|---|---|
| read_source | Read the ABAP source of a repository object class, program, CDS view, behavior definition, .... | objectType (string) required name (string) required |
| write_source | Write the ABAP source of a repository object: locks it, replaces the source, unlocks it and by default activates it. Always unlocks, including when the write fails. | objectType (string) required name (string) required source (string) required transportRequest (string) activate (boolean) |
| activate | Activate a repository object. Reports the ABAP syntax messages — ADT returns those inside a 200 response, so an inactive-but-saved object is not a silent success. | objectType (string) required name (string) required |
| search_objects | Search the repository by name pattern, the way the ADT search field does. Use it to find out whether an object exists and which type it is. | query (string) required maxResults (integer) |
| run_class | Run an ABAP class that implements IF_OO_ADT_CLASSRUN and return what it wrote, the way 'Run as console application' does in Eclipse. This is the ABAP REPL. | className (string) required |
| create_transport | Create a transport request and return its number. | description (string) required type (string) target (string) |
| release_transport | Release a transport request. Releasing freezes it — further changes need a new request, and production then expects the requests in order. | transportRequest (string) required |
| list_transports | List the modifiable transport requests of a user. | user (string) |
| discovery | Read the ADT discovery document: the collections this system actually serves. Use it to check whether a capability is available before assuming it is. | No parameters |
| request | Send a raw request to the ADT REST API for anything the typed actions do not cover. The path is appended to /sap/bc/adt. | method (string) required path (string) required query (object) body (string) contentType (string) accept (string) |