@mcp-abap-adt/compact 18.1.0 → 19.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -27
- package/bin/mcp-abap-adt-compact.js +7 -8
- package/dist/index.d.ts +9 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -9
- package/dist/index.js.map +1 -1
- package/dist/launcher.d.ts +10 -22
- package/dist/launcher.d.ts.map +1 -1
- package/dist/launcher.js +29 -151
- package/dist/launcher.js.map +1 -1
- package/docs/AVAILABLE_TOOLS.md +308 -139
- package/package.json +7 -7
- package/dist/debug/group.d.ts +0 -21
- package/dist/debug/group.d.ts.map +0 -1
- package/dist/debug/group.js +0 -39
- package/dist/debug/group.js.map +0 -1
- package/dist/debug/handleHandlerDebugStart.d.ts +0 -137
- package/dist/debug/handleHandlerDebugStart.d.ts.map +0 -1
- package/dist/debug/handleHandlerDebugStart.js +0 -71
- package/dist/debug/handleHandlerDebugStart.js.map +0 -1
- package/dist/debug/handleHandlerDebugStep.d.ts +0 -49
- package/dist/debug/handleHandlerDebugStep.d.ts.map +0 -1
- package/dist/debug/handleHandlerDebugStep.js +0 -118
- package/dist/debug/handleHandlerDebugStep.js.map +0 -1
- package/dist/debug/handleHandlerDebugView.d.ts +0 -36
- package/dist/debug/handleHandlerDebugView.d.ts.map +0 -1
- package/dist/debug/handleHandlerDebugView.js +0 -72
- package/dist/debug/handleHandlerDebugView.js.map +0 -1
- package/dist/debug/handleHandlerDebugWait.d.ts +0 -29
- package/dist/debug/handleHandlerDebugWait.d.ts.map +0 -1
- package/dist/debug/handleHandlerDebugWait.js +0 -39
- package/dist/debug/handleHandlerDebugWait.js.map +0 -1
- package/dist/debug/shared.d.ts +0 -23
- package/dist/debug/shared.d.ts.map +0 -1
- package/dist/debug/shared.js +0 -45
- package/dist/debug/shared.js.map +0 -1
- package/dist/group.d.ts +0 -6
- package/dist/group.d.ts.map +0 -1
- package/dist/group.js +0 -35
- package/dist/group.js.map +0 -1
package/docs/AVAILABLE_TOOLS.md
CHANGED
|
@@ -3,16 +3,19 @@
|
|
|
3
3
|
Generated from the built packages, not from source text: these are the tool
|
|
4
4
|
definitions a client receives.
|
|
5
5
|
|
|
6
|
-
- Tools:
|
|
7
|
-
- Read-only half: `@mcp-abap-adt/compact-readonly`
|
|
6
|
+
- Tools: 40
|
|
7
|
+
- Read-only half: `@mcp-abap-adt/compact-readonly-entries`
|
|
8
8
|
- Modifying half: `@mcp-abap-adt/compact-modify`
|
|
9
|
-
- Debugger verbs: `@mcp-abap-adt/compact`, served
|
|
10
|
-
-
|
|
9
|
+
- Debugger verbs: `@mcp-abap-adt/compact`, served by the write binaries always, by no `-ro` binary
|
|
10
|
+
- Leftover-session tools: `@mcp-abap-adt/lib`, on stdio only (`mcp-abap-adt-compact`, `mcp-abap-adt-compact-ro`): the list and the logoff in both; no `-compact-http` or `-compact-sse` binary serves them
|
|
11
|
+
- Background-run tools: `@mcp-abap-adt/lib`, in the write binaries (where `HandlerProfileRun` is)
|
|
12
|
+
- Batch mode: `HandlerBatch` of `@mcp-abap-adt/lib`, in every compact binary, on every transport. Every other tool's description, as the server lists it, ends with one sentence saying how a call of it behaves in batch mode: recordable, recordable for the arguments it names, or run outside batch mode; the descriptions on this page are the tools' own, without it ([Batch Mode](https://github.com/fr0ster/mcp-abap-adt/blob/main/docs/user-guide/BATCH_MODE.md))
|
|
13
|
+
- Commands: `mcp-abap-adt-compact` (`@mcp-abap-adt/compact`) serves every tool below; `mcp-abap-adt-compact-ro` (`@mcp-abap-adt/compact-ro`) the read-only half and the leftover-session list and logoff (and `-compact-http`, `-compact-sse`, each with its `-ro`, the same without the leftover-session tools)
|
|
11
14
|
|
|
12
15
|
## How it works
|
|
13
16
|
|
|
14
17
|
One tool per OPERATION, with the object in `object_type`: `HandlerCreate` with
|
|
15
|
-
`object_type: "CLASS"` rather than a `CreateClass` tool.
|
|
18
|
+
`object_type: "CLASS"` rather than a `CreateClass` tool. 40 schemas instead of
|
|
16
19
|
the object-oriented surface's hundreds, for a host that cannot select tools
|
|
17
20
|
per request.
|
|
18
21
|
|
|
@@ -20,18 +23,21 @@ per request.
|
|
|
20
23
|
|
|
21
24
|
### HandlerGet
|
|
22
25
|
|
|
23
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
26
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
24
27
|
|
|
25
|
-
**Description:**
|
|
28
|
+
**Description:** [read-only] Reads one part of the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …). part selects it: source (default) the source alone, in one request; metadata the ADT metadata document alone, in one request; urls (SERVICE_BINDING) the service URL, its $metadata and the browser preview, contents (PACKAGE) the objects the package holds, its walk read level by level in ADT batch envelopes; package_names lists several packages, read together, one entry per package in the order given. A source document answers { part: 'source', source } and a metadata document { part: 'metadata', metadata }, beside the object's name. Parts per type: PACKAGE metadata, contents; DOMAIN, DATA_ELEMENT, FUNCTION_GROUP metadata; LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS, LOCAL_MACROS, TRANSPORT, UNIT_TEST, CDS_UNIT_TEST source; SERVICE_BINDING source, metadata, urls; every other type source, metadata. A part outside the type's list is answered with that list. Three parts read the repository by ADT address: object_structure(object_adt_type*, object_name*), node_structure(object_adt_type*, object_name*, node_id, with_short_descriptions; one node level; a package's blank answer is the empty listing with blank stating its two readings: an empty package, or an unknown package name) and virtual_folders(object_search_pattern, preselection, facet_order, with_versions, ignore_short_descriptions). Two parts read an activation run by its id, in one request each: activation_status(run_id*) answers { run_id, part, status, document }, the run's status (finished, error, failed, or its progress while it runs) and its status document as SAP answered it; activation_results(run_id*) answers { run_id, part, messages, document }, the messages the run produced and its results document as SAP answered it. Otherwise object_type required: PACKAGE(package_name*; part contents: package_name* or package_names*), DOMAIN(domain_name*), DATA_ELEMENT(data_element_name*), TABLE(table_name*), STRUCTURE(structure_name*), DDL(ddl_name*), SERVICE_DEFINITION(service_definition_name*), SERVICE_BINDING(service_binding_name*), CLASS(class_name*), LOCAL_TEST_CLASS(class_name*), LOCAL_TYPES(class_name*), LOCAL_DEFINITIONS(class_name*), LOCAL_MACROS(class_name*), PROGRAM(program_name*) [onprem only], INTERFACE(interface_name*), FUNCTION_GROUP(function_group_name*), FUNCTION_MODULE(function_module_name* as GROUP|MODULE, or function_module_name* with function_group_name*), BEHAVIOR_DEFINITION(behavior_definition_name*), BEHAVIOR_IMPLEMENTATION(behavior_implementation_name*), METADATA_EXTENSION(metadata_extension_name*), UNIT_TEST(run_id*), CDS_UNIT_TEST(run_id*), TRANSPORT(transport_number*). TRANSPORT answers the objects a task holds, each with its position in the task's object list; for a request, every task's entries, each once, with its task number and position. UNIT_TEST and CDS_UNIT_TEST read the run's result in one request and answer { success, run_id, run_result }, run_result the result document SAP answered, parsed. Valid once the status is FINISHED; a finished run's result carries executionTime. Runs on an ABAP session of its own. Optional timeout (seconds): when it passes, the read is cancelled, its ABAP session logged off, and the system stays as it was. Set it below your MCP client's request limit — the TypeScript SDK's client cancels at 60 s; a client's cancel ends only the client's wait, and SAP runs the read on.
|
|
26
29
|
|
|
27
30
|
**Available in:** cloud, onprem
|
|
28
31
|
|
|
29
32
|
**Parameters:**
|
|
30
33
|
|
|
31
|
-
- `
|
|
32
|
-
- `
|
|
34
|
+
- `timeout` — Seconds to wait for the answer: a whole number, at least 1, no default — without it the call waits until SAP answers. When it passes, the read is cancelled (its ABAP session is logged off) and the call answers that nothing was changed. Set it below your MCP client's request limit — the TypeScript SDK's client cancels at 60 s; a cancel does nothing to SAP. Applies to the repository reads: object_type PACKAGE, DOMAIN, DATA_ELEMENT, TABLE, STRUCTURE, DDL, SERVICE_DEFINITION, SERVICE_BINDING, CLASS, LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS, LOCAL_MACROS, PROGRAM, INTERFACE, FUNCTION_GROUP, FUNCTION_MODULE, BEHAVIOR_DEFINITION, BEHAVIOR_IMPLEMENTATION, METADATA_EXTENSION, TRANSPORT, and the parts object_structure, node_structure, virtual_folders.
|
|
35
|
+
- `object_type` — ABAP object type for routed compact operation.
|
|
36
|
+
- `part` — The part to read: source (the source alone), metadata (the ADT metadata document alone), urls (the service and preview URLs), contents (the objects a package holds); each object type answers the parts it has, and a part outside them is answered with the list of its parts. Three parts read the repository by ADT address: object_structure (object_adt_type*, object_name*), node_structure (object_adt_type*, object_name*, node_id, with_short_descriptions) and virtual_folders (object_search_pattern, preselection, facet_order, with_versions, ignore_short_descriptions). Two parts read an activation run by run_id*: activation_status (its status) and activation_results (the messages it produced).
|
|
33
37
|
- `package_name` — Package name.
|
|
34
|
-
- `
|
|
38
|
+
- `package_names` — Several package names (part contents), read together: one entry per package, in the order given, each { package_name, contents } or { package_name, error }.
|
|
39
|
+
- `max_results` — Maximum number of members listed per package (part contents).
|
|
40
|
+
- `include_descriptions` — Include each member's description (part contents). Where the system serves ADT batch, each description is read from the member's metadata: one more read per member, which on a large package takes most of the call.
|
|
35
41
|
- `class_name` — Class name.
|
|
36
42
|
- `interface_name` — Interface name.
|
|
37
43
|
- `program_name` — Program name.
|
|
@@ -40,41 +46,53 @@ per request.
|
|
|
40
46
|
- `table_name` — Table name.
|
|
41
47
|
- `structure_name` — Structure name.
|
|
42
48
|
- `ddl_name` — DDL source name.
|
|
43
|
-
- `function_module_name` — Function module name.
|
|
44
|
-
- `function_group_name` — Function group name.
|
|
49
|
+
- `function_module_name` — Function module name: GROUP|MODULE, its function group first, or the module alone with function_group_name.
|
|
50
|
+
- `function_group_name` — Function group name (FUNCTION_GROUP; FUNCTION_MODULE given as the module's name).
|
|
45
51
|
- `behavior_definition_name` — Behavior definition name.
|
|
46
52
|
- `behavior_implementation_name` — Behavior implementation name.
|
|
47
53
|
- `metadata_extension_name` — Metadata extension name.
|
|
48
54
|
- `service_definition_name` — Service definition name.
|
|
49
55
|
- `service_binding_name` — Service binding name.
|
|
50
|
-
- `
|
|
56
|
+
- `transport_number` — Transport request or task number (TRANSPORT). A request lists the entries of all its tasks; a task lists its own.
|
|
57
|
+
- `run_id` — Run id: a unit test run (UNIT_TEST, CDS_UNIT_TEST) or an activation run (parts activation_status, activation_results).
|
|
51
58
|
- `response_format` — Response format for SERVICE_BINDING reads.
|
|
52
59
|
- `version` — Object version to read/check.
|
|
60
|
+
- `object_adt_type` — ADT type code of the object (object_structure) or of the parent node (node_structure).
|
|
61
|
+
- `object_name` — Object name (object_structure) or parent name (node_structure).
|
|
62
|
+
- `node_id` — Node id to expand (node_structure); the root when absent.
|
|
63
|
+
- `with_short_descriptions` — Include short descriptions (node_structure).
|
|
64
|
+
- `object_search_pattern` — Object name pattern (virtual_folders).
|
|
65
|
+
- `preselection` — Facet preselections (virtual_folders).
|
|
66
|
+
- `facet_order` — Facet order (virtual_folders).
|
|
67
|
+
- `with_versions` — Include versions (virtual_folders).
|
|
68
|
+
- `ignore_short_descriptions` — Leave out short descriptions (virtual_folders).
|
|
53
69
|
|
|
54
70
|
### HandlerSearch
|
|
55
71
|
|
|
56
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
72
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
57
73
|
|
|
58
|
-
**Description:**
|
|
74
|
+
**Description:** [read-only] Searches the ABAP repository for the objects whose name matches query, a name or a mask. Required: query*. Optional: object_type, max_results (default 100). Response: one object per line. Runs on an ABAP session of its own. Optional timeout (seconds): when it passes, the read is cancelled, its ABAP session logged off, and the system stays as it was. Set it below your MCP client's request limit — the TypeScript SDK's client cancels at 60 s; a client's cancel ends only the client's wait, and SAP runs the read on.
|
|
59
75
|
|
|
60
76
|
**Available in:** cloud, onprem
|
|
61
77
|
|
|
62
78
|
**Parameters:**
|
|
63
79
|
|
|
80
|
+
- `timeout` — Seconds to wait for the answer: a whole number, at least 1, no default — without it the call waits until SAP answers. When it passes, the read is cancelled (its ABAP session is logged off) and the call answers that nothing was changed. Set it below your MCP client's request limit — the TypeScript SDK's client cancels at 60 s; a cancel does nothing to SAP.
|
|
64
81
|
- `query` (required) — Object name or mask, with * as a wildcard.
|
|
65
82
|
- `object_type` — ADT object type to restrict the search to.
|
|
66
83
|
- `max_results` — Maximum number of objects returned.
|
|
67
84
|
|
|
68
85
|
### HandlerWhereUsed
|
|
69
86
|
|
|
70
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
87
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
71
88
|
|
|
72
|
-
**Description:**
|
|
89
|
+
**Description:** [read-only] Lists where the object named by object_type and object_name is used — a class, interface, program, include, function group, function module (BAPI included), package, table, structure, domain, data element or CDS DDL source: the objects that use, call or reference it, with type and package. Required: object_type*, object_name*. Optional: function_group_name (FUNCTION_MODULE), max_results (default 100). Response: JSON. Runs on an ABAP session of its own. Optional timeout (seconds): when it passes, the read is cancelled, its ABAP session logged off, and the system stays as it was. Set it below your MCP client's request limit — the TypeScript SDK's client cancels at 60 s; a client's cancel ends only the client's wait, and SAP runs the read on.
|
|
73
90
|
|
|
74
91
|
**Available in:** cloud, onprem
|
|
75
92
|
|
|
76
93
|
**Parameters:**
|
|
77
94
|
|
|
95
|
+
- `timeout` — Seconds to wait for the answer: a whole number, at least 1, no default — without it the call waits until SAP answers. When it passes, the read is cancelled (its ABAP session is logged off) and the call answers that nothing was changed. Set it below your MCP client's request limit — the TypeScript SDK's client cancels at 60 s; a cancel does nothing to SAP.
|
|
78
96
|
- `object_type` (required) — Type of the object whose usages are listed.
|
|
79
97
|
- `object_name` (required) — Object name.
|
|
80
98
|
- `function_group_name` — Function group of the function module (FUNCTION_MODULE).
|
|
@@ -82,61 +100,74 @@ per request.
|
|
|
82
100
|
|
|
83
101
|
### HandlerGetData
|
|
84
102
|
|
|
85
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
103
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
86
104
|
|
|
87
|
-
**Description:**
|
|
105
|
+
**Description:** [read-only] Reads the rows of the table or CDS view named by object_name, or the rows sql_query selects: every column of object_name, or what sql_query selects with its columns, conditions and order. Required: object_name or sql_query. Optional: max_rows (default 100). Response: JSON. Runs on an ABAP session of its own. Optional timeout (seconds): when it passes, the read is cancelled, its ABAP session logged off, and the system stays as it was. Set it below your MCP client's request limit — the TypeScript SDK's client cancels at 60 s; a client's cancel ends only the client's wait, and SAP runs the read on.
|
|
88
106
|
|
|
89
107
|
**Available in:** cloud, onprem
|
|
90
108
|
|
|
91
109
|
**Parameters:**
|
|
92
110
|
|
|
111
|
+
- `timeout` — Seconds to wait for the answer: a whole number, at least 1, no default — without it the call waits until SAP answers. When it passes, the read is cancelled (its ABAP session is logged off) and the call answers that nothing was changed. Set it below your MCP client's request limit — the TypeScript SDK's client cancels at 60 s; a cancel does nothing to SAP.
|
|
93
112
|
- `object_name` — Table or CDS view whose rows are read, all columns. Used when sql_query is absent.
|
|
94
113
|
- `sql_query` — ABAP SQL SELECT naming the columns, conditions and order to read.
|
|
95
114
|
- `max_rows` — Maximum number of rows returned.
|
|
96
115
|
|
|
97
116
|
### HandlerValidate
|
|
98
117
|
|
|
99
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
118
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
100
119
|
|
|
101
|
-
**Description:**
|
|
120
|
+
**Description:** [read-only] Validates a new object named by object_type and object_name before it is created. object_type required: CLASS(object_name*, superclass), PROGRAM(object_name*) [onprem only], INTERFACE(object_name*), FUNCTION_GROUP(object_name*), FUNCTION_MODULE(object_name* as GROUP|MODULE), TABLE(object_name*), STRUCTURE(object_name*), DDL(object_name*), DOMAIN(object_name*), DATA_ELEMENT(object_name*), PACKAGE(object_name*, super_package), BEHAVIOR_DEFINITION(object_name*), BEHAVIOR_IMPLEMENTATION(object_name*), METADATA_EXTENSION(object_name*), SERVICE_BINDING(object_name*=service_binding_name*, service_definition_name*).
|
|
102
121
|
|
|
103
122
|
**Available in:** cloud, onprem
|
|
104
123
|
|
|
105
124
|
**Parameters:**
|
|
106
125
|
|
|
107
126
|
- `object_type` (required) — Object type to validate before create. Supported: CLASS, PROGRAM, INTERFACE, FUNCTION_GROUP, FUNCTION_MODULE, TABLE, STRUCTURE, DDL, DOMAIN, DATA_ELEMENT, PACKAGE, BEHAVIOR_DEFINITION, BEHAVIOR_IMPLEMENTATION, METADATA_EXTENSION, SERVICE_BINDING.
|
|
108
|
-
- `object_name` (required) — Required object name. For SERVICE_BINDING this is the service binding name.
|
|
127
|
+
- `object_name` (required) — Required object name. For SERVICE_BINDING this is the service binding name; a function module is named GROUP|MODULE.
|
|
109
128
|
- `package_name` — Optional package context for validation (especially for create scenarios).
|
|
129
|
+
- `super_package` — Super package of the package to validate (PACKAGE).
|
|
130
|
+
- `superclass` — Superclass of the class to validate (CLASS).
|
|
110
131
|
- `description` — Optional object description used during validation.
|
|
111
132
|
- `behavior_definition` — Optional behavior definition name, used when validating behavior implementation.
|
|
112
133
|
- `root_entity` — Optional CDS root entity name, used for behavior-related validation.
|
|
113
134
|
- `implementation_type` — Optional implementation type, used for behavior implementation validation.
|
|
114
135
|
- `service_definition_name` — Required when object_type=SERVICE_BINDING. Service definition paired with the binding.
|
|
115
136
|
- `service_binding_version` — Optional service binding version for SERVICE_BINDING.
|
|
116
|
-
- `session_id` — Optional ADT session id for stateful validation flow.
|
|
117
|
-
- `session_state` — Optional ADT session state container (cookies/CSRF) for stateful validation flow.
|
|
118
137
|
|
|
119
138
|
### HandlerCheckRun
|
|
120
139
|
|
|
121
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
140
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
122
141
|
|
|
123
|
-
**Description:**
|
|
142
|
+
**Description:** [read-only] Runs a syntax check on the object named by object_type and object_name. object_type required: CLASS(object_name*), PROGRAM(object_name*) [onprem only], INTERFACE(object_name*), FUNCTION_GROUP(object_name*), FUNCTION_MODULE(object_name* as GROUP|MODULE), TABLE(object_name*), STRUCTURE(object_name*), DDL(object_name*), DOMAIN(object_name*), DATA_ELEMENT(object_name*), PACKAGE(object_name*), BEHAVIOR_DEFINITION(object_name*), METADATA_EXTENSION(object_name*). source_code checks unsaved source given in the call, for CLASS, STRUCTURE and DDL.
|
|
124
143
|
|
|
125
144
|
**Available in:** cloud, onprem
|
|
126
145
|
|
|
127
146
|
**Parameters:**
|
|
128
147
|
|
|
129
|
-
- `object_type` (required) —
|
|
130
|
-
- `object_name` (required) —
|
|
148
|
+
- `object_type` (required) — Object type. Supported: CLASS, PROGRAM, INTERFACE, FUNCTION_GROUP, FUNCTION_MODULE, TABLE, STRUCTURE, DDL, DOMAIN, DATA_ELEMENT, PACKAGE, BEHAVIOR_DEFINITION, METADATA_EXTENSION.
|
|
149
|
+
- `object_name` (required) — Object name. A function module is named GROUP|MODULE, its function group first.
|
|
131
150
|
- `version` — Version to syntax-check.
|
|
132
|
-
- `
|
|
133
|
-
|
|
151
|
+
- `source_code` — Source to check instead of the saved one; nothing is saved. CLASS, STRUCTURE and DDL only.
|
|
152
|
+
|
|
153
|
+
### HandlerDeletionCheck
|
|
154
|
+
|
|
155
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
156
|
+
|
|
157
|
+
**Description:** [read-only] Asks SAP whether the object named by object_type and object_name can be deleted: sends the deletion check request for its type, and answers SAP's verdict as it came: deletable true with the object and SAP's message when it carries one, or SAP's refusal with its words. object_type and object_name required: PACKAGE, DOMAIN, DATA_ELEMENT, TABLE, STRUCTURE, DDL, SERVICE_DEFINITION, SERVICE_BINDING, CLASS, CDS_UNIT_TEST (its test class), PROGRAM [onprem only], INTERFACE, FUNCTION_GROUP, FUNCTION_MODULE (object_name GROUP|MODULE), BEHAVIOR_DEFINITION, BEHAVIOR_IMPLEMENTATION, METADATA_EXTENSION.
|
|
158
|
+
|
|
159
|
+
**Available in:** cloud, onprem
|
|
160
|
+
|
|
161
|
+
**Parameters:**
|
|
162
|
+
|
|
163
|
+
- `object_type` (required) — Object type. Supported: PACKAGE, DOMAIN, DATA_ELEMENT, TABLE, STRUCTURE, DDL, SERVICE_DEFINITION, SERVICE_BINDING, CLASS, CDS_UNIT_TEST, PROGRAM, INTERFACE, FUNCTION_GROUP, FUNCTION_MODULE, BEHAVIOR_DEFINITION, BEHAVIOR_IMPLEMENTATION, METADATA_EXTENSION.
|
|
164
|
+
- `object_name` (required) — Object name. A function module is named GROUP|MODULE, its function group first.
|
|
134
165
|
|
|
135
166
|
### HandlerUnitTestStatus
|
|
136
167
|
|
|
137
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
168
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
138
169
|
|
|
139
|
-
**Description:** ABAP Unit test run
|
|
170
|
+
**Description:** [read-only] Reads the status of the ABAP Unit test run named by run_id. Required: run_id*. Optional: with_long_polling. Response: JSON.
|
|
140
171
|
|
|
141
172
|
**Available in:** cloud, onprem
|
|
142
173
|
|
|
@@ -147,9 +178,9 @@ per request.
|
|
|
147
178
|
|
|
148
179
|
### HandlerUnitTestResult
|
|
149
180
|
|
|
150
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
181
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
151
182
|
|
|
152
|
-
**Description:** ABAP Unit test run
|
|
183
|
+
**Description:** [read-only] Reads the result of the ABAP Unit test run named by run_id*, in one request (GET /sap/bc/adt/abapunit/results/{run_id}), and answers { success, run_id, run_result }: run_result is the result document SAP answered, parsed. Valid once the status is FINISHED; a finished run's result carries executionTime. Optional: with_navigation_uris, format (abapunit or junit).
|
|
153
184
|
|
|
154
185
|
**Available in:** cloud, onprem
|
|
155
186
|
|
|
@@ -161,9 +192,9 @@ per request.
|
|
|
161
192
|
|
|
162
193
|
### HandlerCdsUnitTestStatus
|
|
163
194
|
|
|
164
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
195
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
165
196
|
|
|
166
|
-
**Description:** CDS unit test run
|
|
197
|
+
**Description:** [read-only] Reads the status of the CDS unit test run named by run_id. Required: run_id*. Optional: with_long_polling. Response: JSON.
|
|
167
198
|
|
|
168
199
|
**Available in:** cloud, onprem
|
|
169
200
|
|
|
@@ -174,9 +205,9 @@ per request.
|
|
|
174
205
|
|
|
175
206
|
### HandlerCdsUnitTestResult
|
|
176
207
|
|
|
177
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
208
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
178
209
|
|
|
179
|
-
**Description:** CDS unit test run
|
|
210
|
+
**Description:** [read-only] Reads the result of the CDS unit test run named by run_id*, in one request (GET /sap/bc/adt/abapunit/results/{run_id}), and answers { success, run_id, run_result }: run_result is the result document SAP answered, parsed. Valid once the status is FINISHED; a finished run's result carries executionTime. Optional: with_navigation_uris, format (abapunit or junit).
|
|
180
211
|
|
|
181
212
|
**Available in:** cloud, onprem
|
|
182
213
|
|
|
@@ -188,9 +219,9 @@ per request.
|
|
|
188
219
|
|
|
189
220
|
### HandlerProfileList
|
|
190
221
|
|
|
191
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
222
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
192
223
|
|
|
193
|
-
**Description:**
|
|
224
|
+
**Description:** [read-only] Lists the ABAP profiler trace files. Response: JSON.
|
|
194
225
|
|
|
195
226
|
**Available in:** cloud, onprem
|
|
196
227
|
|
|
@@ -198,14 +229,15 @@ per request.
|
|
|
198
229
|
|
|
199
230
|
### HandlerProfileView
|
|
200
231
|
|
|
201
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
232
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
202
233
|
|
|
203
|
-
**Description:**
|
|
234
|
+
**Description:** [read-only] Reads the ABAP profiler trace named by trace_id_or_uri in the view given (hit list, statements or database accesses), raw or analysed. Required: trace_id_or_uri*, view*(hitlist|statements|db_accesses). Optional: mode(raw|analyze, default raw), top(analyze only), with_system_events, id, with_details, auto_drill_down_threshold. Response: JSON. Runs on an ABAP session of its own. Optional timeout (seconds): when it passes, the read is cancelled, its ABAP session logged off, and the system stays as it was. Set it below your MCP client's request limit — the TypeScript SDK's client cancels at 60 s; a client's cancel ends only the client's wait, and SAP runs the read on.
|
|
204
235
|
|
|
205
236
|
**Available in:** cloud, onprem
|
|
206
237
|
|
|
207
238
|
**Parameters:**
|
|
208
239
|
|
|
240
|
+
- `timeout` — Seconds to wait for the answer: a whole number, at least 1, no default — without it the call waits until SAP answers. When it passes, the read is cancelled (its ABAP session is logged off) and the call answers that nothing was changed. Set it below your MCP client's request limit — the TypeScript SDK's client cancels at 60 s; a cancel does nothing to SAP.
|
|
209
241
|
- `trace_id_or_uri` (required) — Profiler trace id or URI.
|
|
210
242
|
- `view` (required) — Profiler trace view kind.
|
|
211
243
|
- `mode` — "raw" returns the parsed trace payload as-is (default). "analyze" returns a compact summary instead — totals plus the top-ranked entries — via the same trace view.
|
|
@@ -217,14 +249,15 @@ per request.
|
|
|
217
249
|
|
|
218
250
|
### HandlerDumpList
|
|
219
251
|
|
|
220
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
252
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
221
253
|
|
|
222
|
-
**Description:**
|
|
254
|
+
**Description:** [read-only] Reads one page of the runtime feed named by feed_type in one request, newest first: the ABAP short dumps (runtime errors) of the user, object_name or time range from–to given, or system messages or SAP Gateway errors. Optional: feed_type(dumps|system_messages|gateway_errors, default dumps), user, runtime_error, exception, object_name, package, component, top (1 to 100), from, to. Response: JSON { feed_type, count, entries, next_to }; each dump carries dump_id; next_to is the `to` of SAP's next link, present when more remain. The next link's page starts at the boundary second, inclusive: entries of that second may repeat; match them by dump_id. Runs on an ABAP session of its own. Optional timeout (seconds): when it passes, the read is cancelled, its ABAP session logged off, and the system stays as it was. Set it below your MCP client's request limit — the TypeScript SDK's client cancels at 60 s; a client's cancel ends only the client's wait, and SAP runs the read on.
|
|
223
255
|
|
|
224
256
|
**Available in:** cloud, onprem
|
|
225
257
|
|
|
226
258
|
**Parameters:**
|
|
227
259
|
|
|
260
|
+
- `timeout` — Seconds to wait for the answer: a whole number, at least 1, no default — without it the call waits until SAP answers. When it passes, the read is cancelled (its ABAP session is logged off) and the call answers that nothing was changed. Set it below your MCP client's request limit — the TypeScript SDK's client cancels at 60 s; a cancel does nothing to SAP.
|
|
228
261
|
- `feed_type` — Which runtime feed to list. Default "dumps" (ABAP short dumps). "system_messages" and "gateway_errors" read the other two ADT runtime feeds through the same call.
|
|
229
262
|
- `user` — Entries of this user.
|
|
230
263
|
- `runtime_error` — Dumps whose runtime error contains this text, in any case.
|
|
@@ -232,15 +265,15 @@ per request.
|
|
|
232
265
|
- `object_name` — Dumps whose terminated object name contains this text, in any case.
|
|
233
266
|
- `package` — Dumps whose object package contains this text, in any case.
|
|
234
267
|
- `component` — Dumps whose application component contains this text, in any case.
|
|
235
|
-
- `top` —
|
|
268
|
+
- `top` — Entries the page holds, 1 to 100 (SAP answers 100 when top is absent).
|
|
236
269
|
- `from` — Start of time range (YYYYMMDDHHMMSS).
|
|
237
|
-
- `to` — End of time range (YYYYMMDDHHMMSS); a previous next_to
|
|
270
|
+
- `to` — End of time range (YYYYMMDDHHMMSS), inclusive: the page holds the entries up to that second; a previous answer's next_to is the next page's to, and that page starts at the boundary second, inclusive.
|
|
238
271
|
|
|
239
272
|
### HandlerDumpView
|
|
240
273
|
|
|
241
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
274
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
242
275
|
|
|
243
|
-
**Description:**
|
|
276
|
+
**Description:** [read-only] Reads the ABAP short dump (runtime error) named by dump_id in the view given. Required: dump_id* (id or URI). Optional: view(default|summary|formatted). Response: JSON.
|
|
244
277
|
|
|
245
278
|
**Available in:** cloud, onprem
|
|
246
279
|
|
|
@@ -251,9 +284,9 @@ per request.
|
|
|
251
284
|
|
|
252
285
|
### HandlerServiceBindingListTypes
|
|
253
286
|
|
|
254
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
287
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
255
288
|
|
|
256
|
-
**Description:**
|
|
289
|
+
**Description:** [read-only] Lists the available service binding types. Optional: response_format(xml|json|plain). Response: XML/JSON/plain by response_format.
|
|
257
290
|
|
|
258
291
|
**Available in:** cloud, onprem
|
|
259
292
|
|
|
@@ -263,9 +296,9 @@ per request.
|
|
|
263
296
|
|
|
264
297
|
### HandlerServiceBindingValidate
|
|
265
298
|
|
|
266
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
299
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
267
300
|
|
|
268
|
-
**Description:**
|
|
301
|
+
**Description:** [read-only] Validates a new service binding named by service_binding_name for the service definition named by service_definition_name, before it is created. Required: service_binding_name*, service_definition_name*. Optional: service_binding_version, package_name, description. Response: JSON.
|
|
269
302
|
|
|
270
303
|
**Available in:** cloud, onprem
|
|
271
304
|
|
|
@@ -281,58 +314,62 @@ per request.
|
|
|
281
314
|
|
|
282
315
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
283
316
|
|
|
284
|
-
**Description:**
|
|
317
|
+
**Description:** Creates the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …): sends the create request for its type with the given parameters, and answers SAP's result. The object is created inactive. object_type required: PACKAGE(package_name*, super_package*), DOMAIN(domain_name*, package_name*), DATA_ELEMENT(data_element_name*, package_name*), TRANSPORT(description*), TABLE(table_name*, package_name*), STRUCTURE(structure_name*, package_name*), DDL(ddl_name*, package_name*), SERVICE_DEFINITION(service_definition_name*, package_name*), SERVICE_BINDING(service_binding_name*, service_definition_name*, package_name*), CLASS(class_name*, package_name*), PROGRAM(program_name*, package_name*) [onprem only], INTERFACE(interface_name*, package_name*), FUNCTION_GROUP(function_group_name*, package_name*), FUNCTION_MODULE(function_module_name*, function_group_name*), BEHAVIOR_DEFINITION(name*, package_name*, implementation_type*), BEHAVIOR_IMPLEMENTATION(class_name*, package_name*), METADATA_EXTENSION(name*, package_name*). Optional for every type: description, transport_request.
|
|
285
318
|
|
|
286
319
|
**Available in:** cloud, onprem
|
|
287
320
|
|
|
288
321
|
**Parameters:**
|
|
289
322
|
|
|
290
323
|
- `object_type` (required) — ABAP object type for routed compact operation.
|
|
291
|
-
- `class_name` — ABAP class name.
|
|
324
|
+
- `class_name` — ABAP class name (CLASS, BEHAVIOR_IMPLEMENTATION).
|
|
292
325
|
- `program_name` — ABAP program name.
|
|
293
326
|
- `domain_name` — ABAP domain name.
|
|
294
327
|
- `function_module_name` — ABAP function module name.
|
|
295
|
-
- `function_group_name` — ABAP function group name.
|
|
328
|
+
- `function_group_name` — ABAP function group name (FUNCTION_GROUP; the group of a FUNCTION_MODULE).
|
|
296
329
|
- `package_name` — ABAP package name.
|
|
297
330
|
- `ddl_name` — DDL source name (CDS view, AMDP table function, etc.).
|
|
298
331
|
- `description` — Human-readable object description.
|
|
299
332
|
- `transport_request` — Transport request id (if required by system).
|
|
300
|
-
- `
|
|
301
|
-
- `
|
|
302
|
-
- `
|
|
303
|
-
- `
|
|
304
|
-
- `
|
|
305
|
-
- `
|
|
306
|
-
- `
|
|
307
|
-
- `
|
|
308
|
-
- `
|
|
309
|
-
- `
|
|
310
|
-
- `
|
|
333
|
+
- `master_language` — Original language of the created object; the session language when absent.
|
|
334
|
+
- `super_package` — Super package (PACKAGE create).
|
|
335
|
+
- `package_type` — Package type (PACKAGE create).
|
|
336
|
+
- `software_component` — Software component (PACKAGE create).
|
|
337
|
+
- `transport_layer` — Transport layer (PACKAGE create).
|
|
338
|
+
- `record_changes` — Record changes (PACKAGE create).
|
|
339
|
+
- `application_component` — Application component (PACKAGE create).
|
|
340
|
+
- `transport_type` — Transport request type (TRANSPORT create).
|
|
341
|
+
- `target_system` — Target system of the transport request (TRANSPORT create).
|
|
342
|
+
- `owner` — Owner of the transport request (TRANSPORT create).
|
|
343
|
+
- `superclass` — Superclass name (CLASS create).
|
|
344
|
+
- `final` — Mark the class final (CLASS create).
|
|
345
|
+
- `create_protected` — Protected constructor (CLASS create).
|
|
346
|
+
- `program_type` — ABAP program type (PROGRAM create).
|
|
347
|
+
- `application` — Application area (PROGRAM create).
|
|
311
348
|
- `table_name` — Table name.
|
|
312
349
|
- `structure_name` — Structure name.
|
|
313
350
|
- `data_element_name` — Data element name.
|
|
314
351
|
- `interface_name` — Interface name.
|
|
315
|
-
- `service_definition_name` — Service definition name.
|
|
352
|
+
- `service_definition_name` — Service definition name (SERVICE_DEFINITION; the definition a SERVICE_BINDING binds).
|
|
316
353
|
- `service_binding_name` — Service binding name.
|
|
354
|
+
- `service_name` — Service name of the binding (SERVICE_BINDING create); the binding name when absent.
|
|
355
|
+
- `service_version` — Service version of the binding (SERVICE_BINDING create); 0001 when absent.
|
|
356
|
+
- `binding_variant` — Binding variant (SERVICE_BINDING create); ODATA_V4_UI when absent.
|
|
317
357
|
- `name` — Object name for handlers that require a generic `name` (behavior definition, metadata extension).
|
|
318
|
-
- `root_entity` — Root CDS entity name (behavior definition create).
|
|
319
358
|
- `implementation_type` — Behavior definition implementation type.
|
|
320
|
-
- `behavior_definition` — Referenced behavior definition name (behavior implementation create).
|
|
321
|
-
- `cds_view_name` — CDS view name to validate for unit test doubles.
|
|
322
|
-
- `fields` — Structure fields (for STRUCTURE create).
|
|
323
|
-
- `test_class_source` — ABAP source of the local test classes (UNIT_TEST and CDS_UNIT_TEST create).
|
|
324
359
|
|
|
325
360
|
### HandlerUpdate
|
|
326
361
|
|
|
327
362
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
328
363
|
|
|
329
|
-
**Description:**
|
|
364
|
+
**Description:** Writes the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …) under its lock: sends the one write request of its type under lock_handle, the lock handle of the object, and answers SAP's result. The write sets the whole content to the one given. lock_handle and object_type required: PACKAGE(package_name*, source_code*, transport_request), DOMAIN(domain_name*, source_code*, transport_request), DATA_ELEMENT(data_element_name*, source_code*, transport_request), FUNCTION_GROUP(function_group_name*, source_code*, transport_request), TABLE(table_name*, ddl_code*, transport_request), STRUCTURE(structure_name*, ddl_code*, transport_request), DDL(ddl_name*, ddl_source*, transport_request), SERVICE_DEFINITION(service_definition_name*, source_code*, transport_request), CLASS(class_name*, source_code*, transport_request), LOCAL_TEST_CLASS(class_name*, test_class_code*, transport_request), LOCAL_TYPES(class_name*, local_types_code*, transport_request), LOCAL_DEFINITIONS(class_name*, definitions_code*, transport_request), LOCAL_MACROS(class_name*, macros_code*, transport_request), UNIT_TEST(class_name*, test_class_source*, transport_request), CDS_UNIT_TEST(class_name*, test_class_source*, transport_request), PROGRAM(program_name*, source_code*, transport_request) [onprem only], INTERFACE(interface_name*, source_code*, transport_request), FUNCTION_MODULE(function_module_name*, function_group_name*, source_code*, transport_request), BEHAVIOR_DEFINITION(name*, source_code*, transport_request), BEHAVIOR_IMPLEMENTATION(class_name*, implementation_code*, transport_request), METADATA_EXTENSION(name*, source_code*, transport_request), SERVICE_BINDING(service_binding_name*, desired_publication_state*, binding_variant*, service_name, service_version). For PACKAGE, DOMAIN, DATA_ELEMENT and FUNCTION_GROUP, source_code is the whole metadata document, sent as given. For LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS, LOCAL_MACROS, UNIT_TEST, CDS_UNIT_TEST and BEHAVIOR_IMPLEMENTATION, lock_handle is the class's lock handle. For SERVICE_BINDING the write is its publication request, sent under the lock_handle given, an empty one included; service_name and service_version (default 0001) name the service of an OData V2 binding. transport_request is sent as the write's corrNr. Over Streamable HTTP the request carries the lock's state_handle in the x-mcp-state-handle header: the write is sent only under a lock the instance it reaches holds.
|
|
330
365
|
|
|
331
366
|
**Available in:** cloud, onprem
|
|
332
367
|
|
|
333
368
|
**Parameters:**
|
|
334
369
|
|
|
335
370
|
- `object_type` (required) — ABAP object type for routed compact operation.
|
|
371
|
+
- `lock_handle` (required) — The lock handle of the object (for a class include, of the class): the write is sent under it.
|
|
372
|
+
- `transport_request` — Transport request id, sent as the write's corrNr (the types whose description names it).
|
|
336
373
|
- `class_name` — ABAP class name.
|
|
337
374
|
- `program_name` — ABAP program name.
|
|
338
375
|
- `domain_name` — ABAP domain name.
|
|
@@ -340,28 +377,17 @@ per request.
|
|
|
340
377
|
- `function_group_name` — ABAP function group name.
|
|
341
378
|
- `package_name` — ABAP package name.
|
|
342
379
|
- `ddl_name` — DDL source name (CDS view, AMDP table function, etc.).
|
|
343
|
-
- `source_code` —
|
|
380
|
+
- `source_code` — The content written: the source, or for PACKAGE, DOMAIN, DATA_ELEMENT and FUNCTION_GROUP the whole metadata document.
|
|
344
381
|
- `ddl_source` — Complete DDL source code (for DDL update).
|
|
345
|
-
- `transport_request` — Transport request id (if required by system).
|
|
346
|
-
- `activate` — Activate object after update.
|
|
347
|
-
- `description` — Human-readable object description.
|
|
348
|
-
- `datatype` — ABAP data type.
|
|
349
|
-
- `length` — Length for typed artifacts.
|
|
350
|
-
- `decimals` — Decimal places.
|
|
351
|
-
- `conversion_exit` — Conversion exit name.
|
|
352
|
-
- `lowercase` — Allow lowercase values (domain setting).
|
|
353
|
-
- `sign_exists` — Allow signed values (domain setting).
|
|
354
|
-
- `value_table` — Foreign key value table.
|
|
355
|
-
- `fixed_values` — Domain fixed values list.
|
|
356
382
|
- `table_name` — Table name.
|
|
357
383
|
- `structure_name` — Structure name.
|
|
358
384
|
- `data_element_name` — Data element name.
|
|
359
385
|
- `interface_name` — Interface name.
|
|
360
386
|
- `service_definition_name` — Service definition name.
|
|
361
387
|
- `service_binding_name` — Service binding name.
|
|
362
|
-
- `service_name` — Published service name (
|
|
388
|
+
- `service_name` — Published service name (SERVICE_BINDING, an OData V2 binding).
|
|
389
|
+
- `service_version` — Published service version (SERVICE_BINDING, an OData V2 binding). Default 0001.
|
|
363
390
|
- `name` — Object name for handlers that require a generic `name` (behavior definition, metadata extension).
|
|
364
|
-
- `behavior_definition` — Referenced behavior definition name (behavior implementation update).
|
|
365
391
|
- `ddl_code` — Complete DDL source code (for TABLE/STRUCTURE update).
|
|
366
392
|
- `implementation_code` — Behavior implementation methods source code.
|
|
367
393
|
- `test_class_source` — ABAP source of the local test classes (UNIT_TEST and CDS_UNIT_TEST update).
|
|
@@ -376,20 +402,22 @@ per request.
|
|
|
376
402
|
|
|
377
403
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
378
404
|
|
|
379
|
-
**Description:**
|
|
405
|
+
**Description:** Deletes the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …): sends the deletion request for its type, and answers SAP's result. object_type required: PACKAGE(package_name*, transport_request), DOMAIN(domain_name*, transport_request), DATA_ELEMENT(data_element_name*, transport_request), TABLE(table_name*, transport_request), STRUCTURE(structure_name*, transport_request), DDL(ddl_name*, transport_request), SERVICE_DEFINITION(service_definition_name*, transport_request), SERVICE_BINDING(service_binding_name*, transport_request), CLASS(class_name*, transport_request), CDS_UNIT_TEST(class_name*, transport_request), PROGRAM(program_name*, transport_request) [onprem only], INTERFACE(interface_name*, transport_request), FUNCTION_GROUP(function_group_name*, transport_request), FUNCTION_MODULE(function_module_name*, function_group_name*, transport_request), BEHAVIOR_DEFINITION(behavior_definition_name*, transport_request), BEHAVIOR_IMPLEMENTATION(behavior_implementation_name*, transport_request), METADATA_EXTENSION(metadata_extension_name*, transport_request), LOCAL_TEST_CLASS(class_name*, lock_handle*, transport_request), LOCAL_TYPES(class_name*, lock_handle*, transport_request), LOCAL_DEFINITIONS(class_name*, lock_handle*, transport_request), LOCAL_MACROS(class_name*, lock_handle*, transport_request), UNIT_TEST(class_name*, lock_handle*, transport_request). CDS_UNIT_TEST deletes its test class. For LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS and LOCAL_MACROS (the class's local includes) and UNIT_TEST (its test classes include) the include is written empty under lock_handle, the class's lock handle. transport_request is sent with the request. Over Streamable HTTP an include write carries the lock's state_handle in the x-mcp-state-handle header: it is sent only under a lock the instance it reaches holds.
|
|
380
406
|
|
|
381
407
|
**Available in:** cloud, onprem
|
|
382
408
|
|
|
383
409
|
**Parameters:**
|
|
384
410
|
|
|
385
|
-
- `object_type` (required) —
|
|
411
|
+
- `object_type` (required) — Object type. Supported: PACKAGE, DOMAIN, DATA_ELEMENT, TABLE, STRUCTURE, DDL, SERVICE_DEFINITION, SERVICE_BINDING, CLASS, CDS_UNIT_TEST, PROGRAM, INTERFACE, FUNCTION_GROUP, FUNCTION_MODULE, BEHAVIOR_DEFINITION, BEHAVIOR_IMPLEMENTATION, METADATA_EXTENSION, LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS, LOCAL_MACROS, UNIT_TEST.
|
|
412
|
+
- `lock_handle` — The lock handle of the class (LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS, LOCAL_MACROS, UNIT_TEST): the include is written empty under it.
|
|
413
|
+
- `package_name` — ABAP package name.
|
|
386
414
|
- `class_name` — ABAP class name.
|
|
387
415
|
- `program_name` — ABAP program name.
|
|
388
416
|
- `domain_name` — ABAP domain name.
|
|
389
417
|
- `function_module_name` — ABAP function module name.
|
|
390
418
|
- `function_group_name` — ABAP function group name.
|
|
391
419
|
- `ddl_name` — DDL source name (CDS view, AMDP table function, etc.).
|
|
392
|
-
- `transport_request` — Transport request id (
|
|
420
|
+
- `transport_request` — Transport request id, sent with the deletion (or the include write).
|
|
393
421
|
- `table_name` — Table name.
|
|
394
422
|
- `structure_name` — Structure name.
|
|
395
423
|
- `data_element_name` — Data element name.
|
|
@@ -404,23 +432,23 @@ per request.
|
|
|
404
432
|
|
|
405
433
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
406
434
|
|
|
407
|
-
**Description:**
|
|
435
|
+
**Description:** Activates the object named by object_name and object_type (or object_adt_type), or the objects named by objects, in one request. Single form (object_name*, object_type or object_adt_type*): object_type is enough for CLASS, PROGRAM [onprem only], INTERFACE, FUNCTION_GROUP, TABLE, STRUCTURE, DDL, DOMAIN, DATA_ELEMENT, BEHAVIOR_DEFINITION, METADATA_EXTENSION, PACKAGE, SERVICE_DEFINITION and SERVICE_BINDING; any other type takes object_adt_type (e.g. "CLAS/OC"). List form (objects[].name*, objects[].type*, objects[].parentName, objects[].uri); a function module is listed with objects[].parentName set to its function group, type FUGR/FF. One object of CLASS, PROGRAM, INTERFACE, FUNCTION_GROUP, TABLE, STRUCTURE, DDL, DOMAIN, DATA_ELEMENT, BEHAVIOR_DEFINITION or METADATA_EXTENSION (by object_type or its ADT type code) is activated directly and answers the activation verdict. Every other call starts an activation run and answers { run_id }: the id of the accepted run, whose status and messages are read by that id.
|
|
408
436
|
|
|
409
437
|
**Available in:** cloud, onprem
|
|
410
438
|
|
|
411
439
|
**Parameters:**
|
|
412
440
|
|
|
413
|
-
- `object_type` — ABAP object type for routed compact operation.
|
|
414
|
-
- `object_name` — Object name
|
|
415
|
-
- `object_adt_type` — ADT object type code (e.g. CLAS/OC, PROG/P)
|
|
416
|
-
- `objects` —
|
|
441
|
+
- `object_type` — ABAP object type for routed compact operation. Names the object's type in the single form.
|
|
442
|
+
- `object_name` — Object name (single form).
|
|
443
|
+
- `object_adt_type` — ADT object type code (e.g. CLAS/OC, PROG/P) of the object (single form).
|
|
444
|
+
- `objects` — The objects activated together (list form).
|
|
417
445
|
- `preaudit` — Run pre-audit checks before activation.
|
|
418
446
|
|
|
419
447
|
### HandlerTransportCreate
|
|
420
448
|
|
|
421
449
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
422
450
|
|
|
423
|
-
**Description:** Transport create.
|
|
451
|
+
**Description:** Transport create. Required: description*. Optional: transport_type(workbench|customizing), target_system, owner. Response: JSON.
|
|
424
452
|
|
|
425
453
|
**Available in:** cloud, onprem
|
|
426
454
|
|
|
@@ -431,43 +459,65 @@ per request.
|
|
|
431
459
|
- `target_system` — Target system id.
|
|
432
460
|
- `owner` — Transport owner user.
|
|
433
461
|
|
|
462
|
+
### HandlerTransportSortAndCompress
|
|
463
|
+
|
|
464
|
+
**Half:** `@mcp-abap-adt/compact-modify`
|
|
465
|
+
|
|
466
|
+
**Description:** Sorts the object list of the transport task named by transport_number and merges its duplicate entries. Required: transport_number* (a task). A task holding the same entry twice refuses removing an entry until this has run. Response: JSON — acceptance only; a re-read of the task's objects (object_type TRANSPORT) confirms it.
|
|
467
|
+
|
|
468
|
+
**Available in:** cloud, onprem
|
|
469
|
+
|
|
470
|
+
**Parameters:**
|
|
471
|
+
|
|
472
|
+
- `transport_number` (required) — Number of the transport task to sort and compress.
|
|
473
|
+
|
|
474
|
+
### HandlerTransportMoveObjects
|
|
475
|
+
|
|
476
|
+
**Half:** `@mcp-abap-adt/compact-modify`
|
|
477
|
+
|
|
478
|
+
**Description:** Moves the object entries named by objects from the transport task named by transport_number to the task named by target_number. Required: transport_number* (the source task), target_number* (the target task), objects* (at least one: object_name*, object_type*, position* in the source task's object list, pgmid). The positions come from a read of the source task's objects (object_type TRANSPORT). Response: JSON — acceptance only; a re-read of both tasks' objects (object_type TRANSPORT) confirms it.
|
|
479
|
+
|
|
480
|
+
**Available in:** cloud, onprem
|
|
481
|
+
|
|
482
|
+
**Parameters:**
|
|
483
|
+
|
|
484
|
+
- `transport_number` (required) — Number of the transport task that holds the entries.
|
|
485
|
+
- `target_number` (required) — Number of the transport task the entries move to.
|
|
486
|
+
- `objects` (required) — The entries to move, at least one — each with object_name, object_type, position (in the source task) and an optional pgmid.
|
|
487
|
+
|
|
434
488
|
### HandlerLock
|
|
435
489
|
|
|
436
490
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
437
491
|
|
|
438
|
-
**Description:** Lock operation. object_type required: CLASS(object_name*), PROGRAM(object_name*) [onprem only], INTERFACE(object_name*), FUNCTION_GROUP(object_name*), FUNCTION_MODULE(object_name*), TABLE(object_name*), STRUCTURE(object_name*), DDL(object_name*), DOMAIN(object_name*), DATA_ELEMENT(object_name*), PACKAGE(object_name*), BEHAVIOR_DEFINITION(object_name*), BEHAVIOR_IMPLEMENTATION(object_name*), METADATA_EXTENSION(object_name*).
|
|
492
|
+
**Description:** Lock operation. object_type required: CLASS(object_name*), PROGRAM(object_name*) [onprem only], INTERFACE(object_name*), FUNCTION_GROUP(object_name*), FUNCTION_MODULE(object_name*), TABLE(object_name*), STRUCTURE(object_name*), DDL(object_name*), DOMAIN(object_name*), DATA_ELEMENT(object_name*), PACKAGE(object_name*), BEHAVIOR_DEFINITION(object_name*), BEHAVIOR_IMPLEMENTATION(object_name*), METADATA_EXTENSION(object_name*), SERVICE_DEFINITION(object_name*), SERVICE_BINDING(object_name*). Answers the lock_handle; a SERVICE_BINDING open in an editing session answers an empty one, under which its publication runs. Over Streamable HTTP the answer also carries the state_handle of the instance that holds the lock: the write and the unlock under this lock send it in the x-mcp-state-handle header.
|
|
439
493
|
|
|
440
494
|
**Available in:** cloud, onprem
|
|
441
495
|
|
|
442
496
|
**Parameters:**
|
|
443
497
|
|
|
444
|
-
- `object_type` (required) —
|
|
445
|
-
- `object_name` (required) —
|
|
498
|
+
- `object_type` (required) — Object type. Supported: CLASS, PROGRAM, INTERFACE, FUNCTION_GROUP, FUNCTION_MODULE, TABLE, STRUCTURE, DDL, DOMAIN, DATA_ELEMENT, PACKAGE, BEHAVIOR_DEFINITION, BEHAVIOR_IMPLEMENTATION, METADATA_EXTENSION, SERVICE_DEFINITION, SERVICE_BINDING.
|
|
499
|
+
- `object_name` (required) — Object name. A function module is named GROUP|MODULE, its function group first.
|
|
446
500
|
- `super_package` — Super package context when relevant.
|
|
447
|
-
- `session_id` — Optional ADT session id for stateful lock flow.
|
|
448
|
-
- `session_state` — Optional ADT session state container (cookies/CSRF) for stateful lock flow.
|
|
449
501
|
|
|
450
502
|
### HandlerUnlock
|
|
451
503
|
|
|
452
504
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
453
505
|
|
|
454
|
-
**Description:** Unlock operation. object_type required: CLASS(object_name*, lock_handle
|
|
506
|
+
**Description:** Unlock operation. object_type required: CLASS(object_name*, lock_handle*), PROGRAM(object_name*, lock_handle*) [onprem only], INTERFACE(object_name*, lock_handle*), FUNCTION_GROUP(object_name*, lock_handle*), FUNCTION_MODULE(object_name*, lock_handle*), TABLE(object_name*, lock_handle*), STRUCTURE(object_name*, lock_handle*), DDL(object_name*, lock_handle*), DOMAIN(object_name*, lock_handle*), DATA_ELEMENT(object_name*, lock_handle*), PACKAGE(object_name*, lock_handle*), BEHAVIOR_DEFINITION(object_name*, lock_handle*), BEHAVIOR_IMPLEMENTATION(object_name*, lock_handle*), METADATA_EXTENSION(object_name*, lock_handle*), SERVICE_DEFINITION(object_name*, lock_handle*), SERVICE_BINDING(object_name*, lock_handle*); an empty lock_handle of a SERVICE_BINDING answers that the binding is already unlocked. Over Streamable HTTP the request carries the lock's state_handle in the x-mcp-state-handle header; the unlock ends the instance's hold on the lock.
|
|
455
507
|
|
|
456
508
|
**Available in:** cloud, onprem
|
|
457
509
|
|
|
458
510
|
**Parameters:**
|
|
459
511
|
|
|
460
|
-
- `object_type` (required) —
|
|
461
|
-
- `object_name` (required) —
|
|
512
|
+
- `object_type` (required) — Object type. Supported: CLASS, PROGRAM, INTERFACE, FUNCTION_GROUP, FUNCTION_MODULE, TABLE, STRUCTURE, DDL, DOMAIN, DATA_ELEMENT, PACKAGE, BEHAVIOR_DEFINITION, BEHAVIOR_IMPLEMENTATION, METADATA_EXTENSION, SERVICE_DEFINITION, SERVICE_BINDING.
|
|
513
|
+
- `object_name` (required) — Object name. A function module is named GROUP|MODULE, its function group first.
|
|
462
514
|
- `lock_handle` (required) — Lock handle returned by lock.
|
|
463
|
-
- `session_id` (required) — ADT session id used during lock.
|
|
464
|
-
- `session_state` — Optional ADT session state container (cookies/CSRF) for stateful unlock flow.
|
|
465
515
|
|
|
466
516
|
### HandlerUnitTestRun
|
|
467
517
|
|
|
468
518
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
469
519
|
|
|
470
|
-
**Description:** ABAP Unit test run.
|
|
520
|
+
**Description:** [read-only] ABAP Unit test run. Required: tests[]{container_class*, test_class*}. Optional: title, context, scope, risk_level, duration. Response: JSON.
|
|
471
521
|
|
|
472
522
|
**Available in:** cloud, onprem
|
|
473
523
|
|
|
@@ -480,21 +530,17 @@ per request.
|
|
|
480
530
|
- `risk_level` — Allowed risk levels.
|
|
481
531
|
- `duration` — Allowed duration classes.
|
|
482
532
|
|
|
483
|
-
###
|
|
533
|
+
### HandlerProfileSchedule
|
|
484
534
|
|
|
485
535
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
486
536
|
|
|
487
|
-
**Description:**
|
|
537
|
+
**Description:** [read-only] Schedules an ABAP profiler trace in one request. Optional: description, profiling flags (all_procedural_units, all_misc_abap_statements, all_internal_table_events, all_dynpro_events, aggregate, explicit_on_off, with_rfc_tracing, all_system_kernel_events, sql_trace, all_db_events, max_size_for_trace_file, amdp_trace, max_time_for_tracing). Response: JSON { success, profiler_id }, profiler_id the id of the scheduled trace.
|
|
488
538
|
|
|
489
539
|
**Available in:** cloud, onprem
|
|
490
540
|
|
|
491
541
|
**Parameters:**
|
|
492
542
|
|
|
493
|
-
- `
|
|
494
|
-
- `class_name` — Class name for profiling.
|
|
495
|
-
- `program_name` — Program name for profiling.
|
|
496
|
-
- `profiling` — Whether to capture a profiler trace while running. Default true. Set false for a plain run with no tracing — the profiling flags below are then ignored.
|
|
497
|
-
- `description` — Profiler run description.
|
|
543
|
+
- `description` — Profiler trace description.
|
|
498
544
|
- `all_procedural_units` — Trace all procedural units.
|
|
499
545
|
- `all_misc_abap_statements` — Trace miscellaneous ABAP statements.
|
|
500
546
|
- `all_internal_table_events` — Trace internal table events.
|
|
@@ -509,70 +555,193 @@ per request.
|
|
|
509
555
|
- `amdp_trace` — Enable AMDP tracing.
|
|
510
556
|
- `max_time_for_tracing` — Maximum tracing time.
|
|
511
557
|
|
|
512
|
-
###
|
|
558
|
+
### HandlerProfileRun
|
|
513
559
|
|
|
514
|
-
**Half:**
|
|
560
|
+
**Half:** `@mcp-abap-adt/compact-modify`
|
|
515
561
|
|
|
516
|
-
**Description:**
|
|
562
|
+
**Description:** [read-only] Runs a class or a program in one request. Required: target_type*(CLASS|PROGRAM) + class_name* for CLASS or program_name* for PROGRAM [onprem only — programs exist on premise]. Optional: profiler_id (the profiler id of a scheduled trace; given, the run goes under that trace; absent, the run is plain), background. Response: JSON { success, class_name | program_name, output }, plus profile: { profiler_id } for a run under a trace.
|
|
517
563
|
|
|
518
564
|
**Available in:** cloud, onprem
|
|
519
565
|
|
|
520
566
|
**Parameters:**
|
|
521
567
|
|
|
522
|
-
- `
|
|
523
|
-
- `
|
|
524
|
-
- `
|
|
525
|
-
- `
|
|
526
|
-
- `
|
|
527
|
-
- `settings` — Debugger settings, applied after each attach; a field left out keeps its value.
|
|
528
|
-
- `run` — A class (as a console application) or a report started in the background once listening; its outcome is reported as the end of the session.
|
|
529
|
-
- `detail` — How much of the answer to return: "terse" (default, the fields you need to act), "full" (the whole parse), "raw" (the document as ADT sent it).
|
|
568
|
+
- `target_type` (required) — Run target kind.
|
|
569
|
+
- `class_name` — Class to run.
|
|
570
|
+
- `program_name` — Program to run.
|
|
571
|
+
- `profiler_id` — The profiler id of a scheduled trace. Given, the run goes under that trace; absent, the run is plain.
|
|
572
|
+
- `background` — When true, the run goes on in the background on an ABAP session of its own and the call answers at once with a run_handle; read its answer later with HandlerBackgroundRunGet, and remove it with HandlerBackgroundRunDiscard. A started run cannot be stopped. No default: without it the call waits for the run to end.
|
|
530
573
|
|
|
531
|
-
###
|
|
574
|
+
### HandlerDebugBreakpoints
|
|
532
575
|
|
|
533
|
-
**Half:** debugger
|
|
576
|
+
**Half:** debugger tools of `@mcp-abap-adt/compact` (the write binaries; no `-ro` one)
|
|
534
577
|
|
|
535
|
-
**Description:**
|
|
578
|
+
**Description:** [read-only] Debugger breakpoints and watchpoints: each call sends one SAP request, the operation's, and answers what SAP answered. kind abap: setBreakpoints sets the breakpoint set of this debugging identity to breakpoints and answers each row SAP placed or refused; syncBreakpoints rewrites the full set (sync_scope full) or the part of the objects in sync_objects (sync_scope partial); deleteBreakpoint deletes breakpoint_id; createWatchpoint, listWatchpoints and deleteWatchpoint work on the attached debuggee. In user mode the breakpoints catch every request of the request user; the set is one per SAP user and request user, shared by every IDE of that user, and each change rewrites it as a whole. kind amdp: syncBreakpoints rewrites the breakpoints of the running AMDP session and answers the request id; SAP confirms them in a SYNC_BREAKPOINTS event. The answer carries state_handle, and for abap the identity in force.
|
|
536
579
|
|
|
537
580
|
**Available in:** cloud, onprem
|
|
538
581
|
|
|
539
582
|
**Parameters:**
|
|
540
583
|
|
|
541
|
-
- `state_handle`
|
|
542
|
-
- `
|
|
584
|
+
- `state_handle` — The handle of this server's debug state. abap setBreakpoints and syncBreakpoints open the debug state when it is omitted and answer its handle; every other operation takes it.
|
|
585
|
+
- `kind` (required) — abap works with the ABAP debugger; amdp with the AMDP debugger of SQLScript methods.
|
|
586
|
+
- `operation` (required) — The one request: abap setBreakpoints, syncBreakpoints, deleteBreakpoint, createWatchpoint, listWatchpoints or deleteWatchpoint; amdp syncBreakpoints.
|
|
587
|
+
- `breakpoints` — setBreakpoints and syncBreakpoints: abap a line, an exception class, an ABAP statement or a message, a line breakpoint may carry a condition; amdp object_name (the class) and line of each, an empty list clears them.
|
|
588
|
+
- `sync_scope` — abap syncBreakpoints: full replaces every breakpoint of the set; partial replaces those of the objects in sync_objects and takes line breakpoints.
|
|
589
|
+
- `sync_objects` — abap syncBreakpoints with sync_scope partial: the ADT URIs of the objects whose breakpoints are replaced.
|
|
590
|
+
- `breakpoint_id` — abap deleteBreakpoint: the id SAP gave the breakpoint.
|
|
591
|
+
- `variable_name` — abap createWatchpoint: the variable watched.
|
|
592
|
+
- `condition` — abap createWatchpoint: the ABAP condition the watchpoint stops on.
|
|
593
|
+
- `watchpoint_id` — abap deleteWatchpoint: the id SAP gave the watchpoint.
|
|
594
|
+
- `request_user` — abap, user mode: the SAP user whose requests the breakpoints and the listener catch; the connected SAP user when omitted. The first abap call of a debug state fixes it.
|
|
595
|
+
- `debugging_mode` — abap: user (when omitted) catches every request of the request user; terminal catches the requests that carry this debug state's terminal_id and ide_id. The first abap call of a debug state fixes it.
|
|
543
596
|
- `detail` — How much of the answer to return: "terse" (default, the fields you need to act), "full" (the whole parse), "raw" (the document as ADT sent it).
|
|
544
597
|
|
|
545
|
-
###
|
|
598
|
+
### HandlerDebugSession
|
|
546
599
|
|
|
547
|
-
**Half:** debugger
|
|
600
|
+
**Half:** debugger tools of `@mcp-abap-adt/compact` (the write binaries; no `-ro` one)
|
|
548
601
|
|
|
549
|
-
**Description:**
|
|
602
|
+
**Description:** [read-only] Debugger listener and session. Each operation up to end sends one SAP request, the operation's, and answers what SAP answered. kind abap: checkListener answers whether another debugger holds this identity's debugging (SAP's 409 names the holder); listen waits for a debuggee for exactly hold_seconds, SAP's hold, and answers the debuggee caught (debuggee_id, its server) or caught: false; a breakpoint stops a program while a listen is open; stopListener ends the listener and deletes the identity's breakpoints; attach attaches debuggee_id on the attaching session, which the first attach opens and every later attach, step and reading uses; detachDebugger sends detachDebugger on the attaching session, which releases the debuggee, and the program runs on; terminateDebuggee ends the debuggee where it stands and terminateDebugger frees the debugger; each answers SAP's answer as it came, which is a 500 when it succeeded, and the next answer shows the success (noSessionAttached, or the program's end); setDebuggerSettings sends the settings given at the attached debuggee. kind amdp: start opens an AMDP session for the connected SAP user and answers its main_id; getEvents answers the events SAP sends (breaks with their debuggee ids, breakpoint confirmations, ends); stop ends the AMDP session; deleteDebuggee cancels the execution of debuggee_id. end, for either kind, takes state_handle and logs off each connection the debug state opened, one logoff each: an attached debuggee runs on, an AMDP debug session ends, and the user's breakpoints stay set until stopListener removes them; the debug state and its handle end with it, and a new debug state of either kind and any identity opens after it. The answer carries state_handle while the debug state holds something, and for abap the identity in force.
|
|
550
603
|
|
|
551
604
|
**Available in:** cloud, onprem
|
|
552
605
|
|
|
553
606
|
**Parameters:**
|
|
554
607
|
|
|
555
|
-
- `state_handle`
|
|
556
|
-
- `
|
|
557
|
-
- `
|
|
608
|
+
- `state_handle` — The handle of this server's debug state. abap checkListener, listen, stopListener and attach, and amdp start, open the debug state when it is omitted and answer its handle; every other operation takes it.
|
|
609
|
+
- `kind` (required) — abap works with the ABAP debugger; amdp with the AMDP debugger of SQLScript methods.
|
|
610
|
+
- `operation` (required) — The one request: abap checkListener, listen, stopListener, attach, detachDebugger, terminateDebuggee, terminateDebugger or setDebuggerSettings; amdp start, getEvents, stop or deleteDebuggee. end, for either kind, logs off the debug state.
|
|
611
|
+
- `hold_seconds` — abap listen: how long SAP holds the listen, in seconds; SAP answers at a catch or when the hold ends.
|
|
612
|
+
- `take_over` — abap listen: true displaces another debugger listening for the same user; false, or omitted, answers its 409. amdp start: true ends an AMDP session of this user left behind.
|
|
613
|
+
- `debuggee_id` — abap attach: the debuggee_id listen answered. amdp deleteDebuggee: the debuggee id of a break event.
|
|
614
|
+
- `server` — abap attach: the debuggee's application server, as listen answered it.
|
|
615
|
+
- `settings` — abap setDebuggerSettings: the settings sent; a field left out keeps its value.
|
|
616
|
+
- `request_user` — abap, user mode: the SAP user whose requests the breakpoints and the listener catch; the connected SAP user when omitted. The first abap call of a debug state fixes it.
|
|
617
|
+
- `debugging_mode` — abap: user (when omitted) catches every request of the request user; terminal catches the requests that carry this debug state's terminal_id and ide_id. The first abap call of a debug state fixes it.
|
|
558
618
|
- `detail` — How much of the answer to return: "terse" (default, the fields you need to act), "full" (the whole parse), "raw" (the document as ADT sent it).
|
|
559
619
|
|
|
560
620
|
### HandlerDebugStep
|
|
561
621
|
|
|
562
|
-
**Half:** debugger
|
|
622
|
+
**Half:** debugger tools of `@mcp-abap-adt/compact` (the write binaries; no `-ro` one)
|
|
563
623
|
|
|
564
|
-
**Description:** Moves the stopped debuggee
|
|
624
|
+
**Description:** [read-only] Moves the stopped debuggee: each call sends one SAP request, the operation's. kind abap, on the attached debuggee: stepInto, stepOver, stepReturn and stepContinue step from where it stands; stepRunToLine runs to the line object_type, object_name and line name, stepJumpToLine moves there and skips what lies between; a step answers SAP's step result, or ended when SAP reports the program's end, and the stopped position is read from the stack. setStackPosition makes frame position the one variables are read in. kind amdp: stepOver and stepContinue move debuggee_id and answer the request id; the next stop arrives as a break event.
|
|
565
625
|
|
|
566
626
|
**Available in:** cloud, onprem
|
|
567
627
|
|
|
568
628
|
**Parameters:**
|
|
569
629
|
|
|
570
630
|
- `state_handle` (required) — Opaque handle identifying the server-held state this operation works on.
|
|
571
|
-
- `
|
|
631
|
+
- `kind` (required) — abap works with the ABAP debugger; amdp with the AMDP debugger of SQLScript methods.
|
|
632
|
+
- `operation` (required) — The one request: abap stepInto, stepOver, stepReturn, stepContinue, stepRunToLine, stepJumpToLine or setStackPosition; amdp stepOver or stepContinue.
|
|
572
633
|
- `object_type` — For a line: CLAS, PROG, INCL or FUNC.
|
|
573
634
|
- `object_name` — For a line: the object holding it.
|
|
574
635
|
- `line` — For a line: the line in the object source.
|
|
575
636
|
- `include` — For a class: definitions, implementations, macros or testclasses; the main source when omitted.
|
|
576
637
|
- `parent_name` — For a function module: its function group.
|
|
638
|
+
- `position` — abap setStackPosition: the frame's position in the stack.
|
|
639
|
+
- `debuggee_id` — amdp: the debuggee id of the break event.
|
|
640
|
+
- `detail` — How much of the answer to return: "terse" (default, the fields you need to act), "full" (the whole parse), "raw" (the document as ADT sent it).
|
|
641
|
+
|
|
642
|
+
### HandlerDebugMaintain
|
|
643
|
+
|
|
644
|
+
**Half:** debugger tools of `@mcp-abap-adt/compact` (the write binaries; no `-ro` one)
|
|
645
|
+
|
|
646
|
+
**Description:** [read-only] Reads and changes the stopped debuggee: each call sends one SAP request, chosen by operation. kind abap, on the attached debuggee: getStack answers the frames, each with its program, include, line and ADT address, the stopped position on top; getVariables answers the variables in names (a path reads a component or a table row); getChildVariables answers the members of the ids in parents, the scopes (@ROOT) when parents is omitted; getMemorySizes answers the memory sizes; createMemorySnapshot creates a memory snapshot; setVariableValue sets variable_name to value and answers the variable. kind amdp: getDataPreview answers the rows of the table variable variable_name of debuggee_id.
|
|
647
|
+
|
|
648
|
+
**Available in:** cloud, onprem
|
|
649
|
+
|
|
650
|
+
**Parameters:**
|
|
651
|
+
|
|
652
|
+
- `state_handle` (required) — Opaque handle identifying the server-held state this operation works on.
|
|
653
|
+
- `kind` (required) — abap works with the ABAP debugger; amdp with the AMDP debugger of SQLScript methods.
|
|
654
|
+
- `operation` (required) — What the call does: abap getStack (the stack), getVariables (variables by name), getChildVariables (child variables), getMemorySizes (memory sizes), createMemorySnapshot (a snapshot) or setVariableValue (set a value); amdp getDataPreview (the data preview of a table variable).
|
|
655
|
+
- `names` — abap getVariables: the variables read.
|
|
656
|
+
- `parents` — abap getChildVariables: the ids whose members are read; @ROOT, the scopes, when omitted.
|
|
657
|
+
- `variable_name` — abap setVariableValue: the variable set. amdp getDataPreview: the table variable read.
|
|
658
|
+
- `value` — abap setVariableValue: the new value.
|
|
659
|
+
- `debuggee_id` — amdp getDataPreview: the debuggee id of the break event.
|
|
660
|
+
- `query` — amdp getDataPreview: a SELECT over the table variable; every column when omitted.
|
|
661
|
+
- `row_number` — amdp getDataPreview: how many rows SAP answers; SAP's own count when omitted.
|
|
577
662
|
- `detail` — How much of the answer to return: "terse" (default, the fields you need to act), "full" (the whole parse), "raw" (the document as ADT sent it).
|
|
578
663
|
|
|
664
|
+
### HandlerDebugBatch
|
|
665
|
+
|
|
666
|
+
**Half:** debugger tools of `@mcp-abap-adt/compact` (the write binaries; no `-ro` one)
|
|
667
|
+
|
|
668
|
+
**Description:** [read-only] action 'begin': Starts the debugger batch on the stopped ABAP debuggee, else at the AMDP break. In the debugger batch each call of step, step to line, stack, variables, child variables, stack position or setting a variable at the ABAP debuggee, and of step over, continue or the data preview of a table variable at the AMDP break, is recorded under the next number, starting at 1, and answers with empty content. Answers the state_handle, which HTTP clients send in the x-mcp-state-handle header with every call of the batch. action 'end': Sends the recorded calls of the stopped debuggee in one envelope on the session the batch started on — the ABAP debuggee's session, or the AMDP session's command session — and ends the debugger batch. Splits SAP's answer into each call's parts and answers the number of recorded calls, of requests sent and of parts received; when sending fails, the parts received differ from the requests sent or the answer fails to split, answers that error, and every number of the batch then answers it. action 'answers' (with number or numbers): Answers the calls of the last executed batch by number: for each number asked, the tool's answer, built from the call's parts of SAP's response when the number is first read and kept for later reads; the numbers asked are processed in parallel. Takes one number or a list of numbers; an unknown number answers as unknown.
|
|
669
|
+
|
|
670
|
+
**Available in:** cloud, onprem
|
|
671
|
+
|
|
672
|
+
**Parameters:**
|
|
673
|
+
|
|
674
|
+
- `action` (required) — begin starts the debugger batch on the stopped ABAP debuggee or at the AMDP break; end sends the recorded calls and ends it; answers reads the last batch's answers by number, with number or numbers.
|
|
675
|
+
- `number` — answers: one batch number to read, at least 1.
|
|
676
|
+
- `numbers` — answers: several batch numbers to read, each at least 1, answered in the order given.
|
|
677
|
+
|
|
678
|
+
### HandlerBackgroundRunGet
|
|
679
|
+
|
|
680
|
+
**Half:** background-run tools of `@mcp-abap-adt/lib` (the write binaries, where `HandlerProfileRun` is)
|
|
681
|
+
|
|
682
|
+
**Description:** [read-only] Reads one of your background runs by its run_handle: running, or finished with what the run tool answered (the system answer as it is, an error included). A read keeps the run.
|
|
683
|
+
|
|
684
|
+
**Available in:** all
|
|
685
|
+
|
|
686
|
+
**Parameters:**
|
|
687
|
+
|
|
688
|
+
- `run_handle` (required) — The run_handle a run started with background=true answered.
|
|
689
|
+
|
|
690
|
+
### HandlerBackgroundRunList
|
|
691
|
+
|
|
692
|
+
**Half:** background-run tools of `@mcp-abap-adt/lib` (the write binaries, where `HandlerProfileRun` is)
|
|
693
|
+
|
|
694
|
+
**Description:** [read-only] Lists your background runs: run_handle, tool, object, when it started, and running or finished. A run's output is read by its run_handle.
|
|
695
|
+
|
|
696
|
+
**Available in:** all
|
|
697
|
+
|
|
698
|
+
**Parameters:** none
|
|
699
|
+
|
|
700
|
+
### HandlerBackgroundRunDiscard
|
|
701
|
+
|
|
702
|
+
**Half:** background-run tools of `@mcp-abap-adt/lib` (the write binaries, where `HandlerProfileRun` is)
|
|
703
|
+
|
|
704
|
+
**Description:** [read-only] Removes the kept answer of one of your finished background runs. Works on a finished run; a started run runs to its end.
|
|
705
|
+
|
|
706
|
+
**Available in:** all
|
|
707
|
+
|
|
708
|
+
**Parameters:**
|
|
709
|
+
|
|
710
|
+
- `run_handle` (required) — The run_handle a run started with background=true answered.
|
|
711
|
+
|
|
712
|
+
### HandlerLeftoverSessionList
|
|
713
|
+
|
|
714
|
+
**Half:** leftover-session tools of `@mcp-abap-adt/lib`, stdio binaries only (the list and the logoff in both)
|
|
715
|
+
|
|
716
|
+
**Description:** [read-only] Lists the SAP sessions of this server's destination an ended server process left open (it was killed before logging them off): handle, role (built or debugger), destination, user, when recorded. Read from the session records alone. Only sessions of ended processes are listed. A server starting while exactly one built session of its destination is left is born on it; with several, all stay listed and untaken.
|
|
717
|
+
|
|
718
|
+
**Available in:** all
|
|
719
|
+
|
|
720
|
+
**Parameters:** none
|
|
721
|
+
|
|
722
|
+
### HandlerLeftoverSessionLogoff
|
|
723
|
+
|
|
724
|
+
**Half:** leftover-session tools of `@mcp-abap-adt/lib`, stdio binaries only (the list and the logoff in both)
|
|
725
|
+
|
|
726
|
+
**Description:** [read-only] Logs off a leftover SAP session (any role), releasing every lock it holds; only the logoff is sent, credential-free. Its record is deleted afterwards.
|
|
727
|
+
|
|
728
|
+
**Available in:** all
|
|
729
|
+
|
|
730
|
+
**Parameters:**
|
|
731
|
+
|
|
732
|
+
- `handle` (required) — The handle of a leftover session, as the list answers it.
|
|
733
|
+
|
|
734
|
+
### HandlerBatch
|
|
735
|
+
|
|
736
|
+
**Half:** batch mode of `@mcp-abap-adt/lib`, in every compact binary
|
|
737
|
+
|
|
738
|
+
**Description:** [read-only] action 'begin': Starts batch mode on this server. In batch mode each call of a tool marked recordable is recorded under the next number, starting at 1, and answers with empty content. Answers the state_handle, which HTTP clients send in the x-mcp-state-handle header with every call of the batch. action 'end': Sends the recorded calls in one envelope with the credentials in force and ends batch mode. Splits SAP's answer into each call's parts and answers the number of recorded calls, of requests sent and of parts received; when sending fails, the parts received differ from the requests sent or the answer fails to split, answers that error, and every number of the batch then answers it. action 'answers' (with number or numbers): Answers the calls of the last executed batch by number: for each number asked, the tool's answer, built from the call's parts of SAP's response when the number is first read and kept for later reads; the numbers asked are processed in parallel. Takes one number or a list of numbers; an unknown number answers as unknown.
|
|
739
|
+
|
|
740
|
+
**Available in:** all
|
|
741
|
+
|
|
742
|
+
**Parameters:**
|
|
743
|
+
|
|
744
|
+
- `action` (required) — begin: switch into batch mode; end: send the recorded calls and leave batch mode; answers: read the last batch's answers by number (with number or numbers).
|
|
745
|
+
- `number` — answers only: one batch number to read (an integer of at least 1); give this or numbers, not both.
|
|
746
|
+
- `numbers` — answers only: several batch numbers to read, answered in the order given; give this or number, not both.
|
|
747
|
+
|