@mcp-abap-adt/compact 18.1.0 → 19.0.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 +307 -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,20 @@ 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).
|
|
35
40
|
- `class_name` — Class name.
|
|
36
41
|
- `interface_name` — Interface name.
|
|
37
42
|
- `program_name` — Program name.
|
|
@@ -40,41 +45,53 @@ per request.
|
|
|
40
45
|
- `table_name` — Table name.
|
|
41
46
|
- `structure_name` — Structure name.
|
|
42
47
|
- `ddl_name` — DDL source name.
|
|
43
|
-
- `function_module_name` — Function module name.
|
|
44
|
-
- `function_group_name` — Function group name.
|
|
48
|
+
- `function_module_name` — Function module name: GROUP|MODULE, its function group first, or the module alone with function_group_name.
|
|
49
|
+
- `function_group_name` — Function group name (FUNCTION_GROUP; FUNCTION_MODULE given as the module's name).
|
|
45
50
|
- `behavior_definition_name` — Behavior definition name.
|
|
46
51
|
- `behavior_implementation_name` — Behavior implementation name.
|
|
47
52
|
- `metadata_extension_name` — Metadata extension name.
|
|
48
53
|
- `service_definition_name` — Service definition name.
|
|
49
54
|
- `service_binding_name` — Service binding name.
|
|
50
|
-
- `
|
|
55
|
+
- `transport_number` — Transport request or task number (TRANSPORT). A request lists the entries of all its tasks; a task lists its own.
|
|
56
|
+
- `run_id` — Run id: a unit test run (UNIT_TEST, CDS_UNIT_TEST) or an activation run (parts activation_status, activation_results).
|
|
51
57
|
- `response_format` — Response format for SERVICE_BINDING reads.
|
|
52
58
|
- `version` — Object version to read/check.
|
|
59
|
+
- `object_adt_type` — ADT type code of the object (object_structure) or of the parent node (node_structure).
|
|
60
|
+
- `object_name` — Object name (object_structure) or parent name (node_structure).
|
|
61
|
+
- `node_id` — Node id to expand (node_structure); the root when absent.
|
|
62
|
+
- `with_short_descriptions` — Include short descriptions (node_structure).
|
|
63
|
+
- `object_search_pattern` — Object name pattern (virtual_folders).
|
|
64
|
+
- `preselection` — Facet preselections (virtual_folders).
|
|
65
|
+
- `facet_order` — Facet order (virtual_folders).
|
|
66
|
+
- `with_versions` — Include versions (virtual_folders).
|
|
67
|
+
- `ignore_short_descriptions` — Leave out short descriptions (virtual_folders).
|
|
53
68
|
|
|
54
69
|
### HandlerSearch
|
|
55
70
|
|
|
56
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
71
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
57
72
|
|
|
58
|
-
**Description:**
|
|
73
|
+
**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
74
|
|
|
60
75
|
**Available in:** cloud, onprem
|
|
61
76
|
|
|
62
77
|
**Parameters:**
|
|
63
78
|
|
|
79
|
+
- `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
80
|
- `query` (required) — Object name or mask, with * as a wildcard.
|
|
65
81
|
- `object_type` — ADT object type to restrict the search to.
|
|
66
82
|
- `max_results` — Maximum number of objects returned.
|
|
67
83
|
|
|
68
84
|
### HandlerWhereUsed
|
|
69
85
|
|
|
70
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
86
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
71
87
|
|
|
72
|
-
**Description:**
|
|
88
|
+
**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
89
|
|
|
74
90
|
**Available in:** cloud, onprem
|
|
75
91
|
|
|
76
92
|
**Parameters:**
|
|
77
93
|
|
|
94
|
+
- `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
95
|
- `object_type` (required) — Type of the object whose usages are listed.
|
|
79
96
|
- `object_name` (required) — Object name.
|
|
80
97
|
- `function_group_name` — Function group of the function module (FUNCTION_MODULE).
|
|
@@ -82,61 +99,74 @@ per request.
|
|
|
82
99
|
|
|
83
100
|
### HandlerGetData
|
|
84
101
|
|
|
85
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
102
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
86
103
|
|
|
87
|
-
**Description:**
|
|
104
|
+
**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
105
|
|
|
89
106
|
**Available in:** cloud, onprem
|
|
90
107
|
|
|
91
108
|
**Parameters:**
|
|
92
109
|
|
|
110
|
+
- `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
111
|
- `object_name` — Table or CDS view whose rows are read, all columns. Used when sql_query is absent.
|
|
94
112
|
- `sql_query` — ABAP SQL SELECT naming the columns, conditions and order to read.
|
|
95
113
|
- `max_rows` — Maximum number of rows returned.
|
|
96
114
|
|
|
97
115
|
### HandlerValidate
|
|
98
116
|
|
|
99
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
117
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
100
118
|
|
|
101
|
-
**Description:**
|
|
119
|
+
**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
120
|
|
|
103
121
|
**Available in:** cloud, onprem
|
|
104
122
|
|
|
105
123
|
**Parameters:**
|
|
106
124
|
|
|
107
125
|
- `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.
|
|
126
|
+
- `object_name` (required) — Required object name. For SERVICE_BINDING this is the service binding name; a function module is named GROUP|MODULE.
|
|
109
127
|
- `package_name` — Optional package context for validation (especially for create scenarios).
|
|
128
|
+
- `super_package` — Super package of the package to validate (PACKAGE).
|
|
129
|
+
- `superclass` — Superclass of the class to validate (CLASS).
|
|
110
130
|
- `description` — Optional object description used during validation.
|
|
111
131
|
- `behavior_definition` — Optional behavior definition name, used when validating behavior implementation.
|
|
112
132
|
- `root_entity` — Optional CDS root entity name, used for behavior-related validation.
|
|
113
133
|
- `implementation_type` — Optional implementation type, used for behavior implementation validation.
|
|
114
134
|
- `service_definition_name` — Required when object_type=SERVICE_BINDING. Service definition paired with the binding.
|
|
115
135
|
- `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
136
|
|
|
119
137
|
### HandlerCheckRun
|
|
120
138
|
|
|
121
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
139
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
122
140
|
|
|
123
|
-
**Description:**
|
|
141
|
+
**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
142
|
|
|
125
143
|
**Available in:** cloud, onprem
|
|
126
144
|
|
|
127
145
|
**Parameters:**
|
|
128
146
|
|
|
129
|
-
- `object_type` (required) —
|
|
130
|
-
- `object_name` (required) —
|
|
147
|
+
- `object_type` (required) — Object type. Supported: CLASS, PROGRAM, INTERFACE, FUNCTION_GROUP, FUNCTION_MODULE, TABLE, STRUCTURE, DDL, DOMAIN, DATA_ELEMENT, PACKAGE, BEHAVIOR_DEFINITION, METADATA_EXTENSION.
|
|
148
|
+
- `object_name` (required) — Object name. A function module is named GROUP|MODULE, its function group first.
|
|
131
149
|
- `version` — Version to syntax-check.
|
|
132
|
-
- `
|
|
133
|
-
|
|
150
|
+
- `source_code` — Source to check instead of the saved one; nothing is saved. CLASS, STRUCTURE and DDL only.
|
|
151
|
+
|
|
152
|
+
### HandlerDeletionCheck
|
|
153
|
+
|
|
154
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
155
|
+
|
|
156
|
+
**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.
|
|
157
|
+
|
|
158
|
+
**Available in:** cloud, onprem
|
|
159
|
+
|
|
160
|
+
**Parameters:**
|
|
161
|
+
|
|
162
|
+
- `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.
|
|
163
|
+
- `object_name` (required) — Object name. A function module is named GROUP|MODULE, its function group first.
|
|
134
164
|
|
|
135
165
|
### HandlerUnitTestStatus
|
|
136
166
|
|
|
137
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
167
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
138
168
|
|
|
139
|
-
**Description:** ABAP Unit test run
|
|
169
|
+
**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
170
|
|
|
141
171
|
**Available in:** cloud, onprem
|
|
142
172
|
|
|
@@ -147,9 +177,9 @@ per request.
|
|
|
147
177
|
|
|
148
178
|
### HandlerUnitTestResult
|
|
149
179
|
|
|
150
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
180
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
151
181
|
|
|
152
|
-
**Description:** ABAP Unit test run
|
|
182
|
+
**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
183
|
|
|
154
184
|
**Available in:** cloud, onprem
|
|
155
185
|
|
|
@@ -161,9 +191,9 @@ per request.
|
|
|
161
191
|
|
|
162
192
|
### HandlerCdsUnitTestStatus
|
|
163
193
|
|
|
164
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
194
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
165
195
|
|
|
166
|
-
**Description:** CDS unit test run
|
|
196
|
+
**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
197
|
|
|
168
198
|
**Available in:** cloud, onprem
|
|
169
199
|
|
|
@@ -174,9 +204,9 @@ per request.
|
|
|
174
204
|
|
|
175
205
|
### HandlerCdsUnitTestResult
|
|
176
206
|
|
|
177
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
207
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
178
208
|
|
|
179
|
-
**Description:** CDS unit test run
|
|
209
|
+
**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
210
|
|
|
181
211
|
**Available in:** cloud, onprem
|
|
182
212
|
|
|
@@ -188,9 +218,9 @@ per request.
|
|
|
188
218
|
|
|
189
219
|
### HandlerProfileList
|
|
190
220
|
|
|
191
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
221
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
192
222
|
|
|
193
|
-
**Description:**
|
|
223
|
+
**Description:** [read-only] Lists the ABAP profiler trace files. Response: JSON.
|
|
194
224
|
|
|
195
225
|
**Available in:** cloud, onprem
|
|
196
226
|
|
|
@@ -198,14 +228,15 @@ per request.
|
|
|
198
228
|
|
|
199
229
|
### HandlerProfileView
|
|
200
230
|
|
|
201
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
231
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
202
232
|
|
|
203
|
-
**Description:**
|
|
233
|
+
**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
234
|
|
|
205
235
|
**Available in:** cloud, onprem
|
|
206
236
|
|
|
207
237
|
**Parameters:**
|
|
208
238
|
|
|
239
|
+
- `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
240
|
- `trace_id_or_uri` (required) — Profiler trace id or URI.
|
|
210
241
|
- `view` (required) — Profiler trace view kind.
|
|
211
242
|
- `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 +248,15 @@ per request.
|
|
|
217
248
|
|
|
218
249
|
### HandlerDumpList
|
|
219
250
|
|
|
220
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
251
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
221
252
|
|
|
222
|
-
**Description:**
|
|
253
|
+
**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
254
|
|
|
224
255
|
**Available in:** cloud, onprem
|
|
225
256
|
|
|
226
257
|
**Parameters:**
|
|
227
258
|
|
|
259
|
+
- `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
260
|
- `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
261
|
- `user` — Entries of this user.
|
|
230
262
|
- `runtime_error` — Dumps whose runtime error contains this text, in any case.
|
|
@@ -232,15 +264,15 @@ per request.
|
|
|
232
264
|
- `object_name` — Dumps whose terminated object name contains this text, in any case.
|
|
233
265
|
- `package` — Dumps whose object package contains this text, in any case.
|
|
234
266
|
- `component` — Dumps whose application component contains this text, in any case.
|
|
235
|
-
- `top` —
|
|
267
|
+
- `top` — Entries the page holds, 1 to 100 (SAP answers 100 when top is absent).
|
|
236
268
|
- `from` — Start of time range (YYYYMMDDHHMMSS).
|
|
237
|
-
- `to` — End of time range (YYYYMMDDHHMMSS); a previous next_to
|
|
269
|
+
- `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
270
|
|
|
239
271
|
### HandlerDumpView
|
|
240
272
|
|
|
241
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
273
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
242
274
|
|
|
243
|
-
**Description:**
|
|
275
|
+
**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
276
|
|
|
245
277
|
**Available in:** cloud, onprem
|
|
246
278
|
|
|
@@ -251,9 +283,9 @@ per request.
|
|
|
251
283
|
|
|
252
284
|
### HandlerServiceBindingListTypes
|
|
253
285
|
|
|
254
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
286
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
255
287
|
|
|
256
|
-
**Description:**
|
|
288
|
+
**Description:** [read-only] Lists the available service binding types. Optional: response_format(xml|json|plain). Response: XML/JSON/plain by response_format.
|
|
257
289
|
|
|
258
290
|
**Available in:** cloud, onprem
|
|
259
291
|
|
|
@@ -263,9 +295,9 @@ per request.
|
|
|
263
295
|
|
|
264
296
|
### HandlerServiceBindingValidate
|
|
265
297
|
|
|
266
|
-
**Half:** `@mcp-abap-adt/compact-readonly`
|
|
298
|
+
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
267
299
|
|
|
268
|
-
**Description:**
|
|
300
|
+
**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
301
|
|
|
270
302
|
**Available in:** cloud, onprem
|
|
271
303
|
|
|
@@ -281,58 +313,62 @@ per request.
|
|
|
281
313
|
|
|
282
314
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
283
315
|
|
|
284
|
-
**Description:**
|
|
316
|
+
**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
317
|
|
|
286
318
|
**Available in:** cloud, onprem
|
|
287
319
|
|
|
288
320
|
**Parameters:**
|
|
289
321
|
|
|
290
322
|
- `object_type` (required) — ABAP object type for routed compact operation.
|
|
291
|
-
- `class_name` — ABAP class name.
|
|
323
|
+
- `class_name` — ABAP class name (CLASS, BEHAVIOR_IMPLEMENTATION).
|
|
292
324
|
- `program_name` — ABAP program name.
|
|
293
325
|
- `domain_name` — ABAP domain name.
|
|
294
326
|
- `function_module_name` — ABAP function module name.
|
|
295
|
-
- `function_group_name` — ABAP function group name.
|
|
327
|
+
- `function_group_name` — ABAP function group name (FUNCTION_GROUP; the group of a FUNCTION_MODULE).
|
|
296
328
|
- `package_name` — ABAP package name.
|
|
297
329
|
- `ddl_name` — DDL source name (CDS view, AMDP table function, etc.).
|
|
298
330
|
- `description` — Human-readable object description.
|
|
299
331
|
- `transport_request` — Transport request id (if required by system).
|
|
300
|
-
- `
|
|
301
|
-
- `
|
|
302
|
-
- `
|
|
303
|
-
- `
|
|
304
|
-
- `
|
|
305
|
-
- `
|
|
306
|
-
- `
|
|
307
|
-
- `
|
|
308
|
-
- `
|
|
309
|
-
- `
|
|
310
|
-
- `
|
|
332
|
+
- `master_language` — Original language of the created object; the session language when absent.
|
|
333
|
+
- `super_package` — Super package (PACKAGE create).
|
|
334
|
+
- `package_type` — Package type (PACKAGE create).
|
|
335
|
+
- `software_component` — Software component (PACKAGE create).
|
|
336
|
+
- `transport_layer` — Transport layer (PACKAGE create).
|
|
337
|
+
- `record_changes` — Record changes (PACKAGE create).
|
|
338
|
+
- `application_component` — Application component (PACKAGE create).
|
|
339
|
+
- `transport_type` — Transport request type (TRANSPORT create).
|
|
340
|
+
- `target_system` — Target system of the transport request (TRANSPORT create).
|
|
341
|
+
- `owner` — Owner of the transport request (TRANSPORT create).
|
|
342
|
+
- `superclass` — Superclass name (CLASS create).
|
|
343
|
+
- `final` — Mark the class final (CLASS create).
|
|
344
|
+
- `create_protected` — Protected constructor (CLASS create).
|
|
345
|
+
- `program_type` — ABAP program type (PROGRAM create).
|
|
346
|
+
- `application` — Application area (PROGRAM create).
|
|
311
347
|
- `table_name` — Table name.
|
|
312
348
|
- `structure_name` — Structure name.
|
|
313
349
|
- `data_element_name` — Data element name.
|
|
314
350
|
- `interface_name` — Interface name.
|
|
315
|
-
- `service_definition_name` — Service definition name.
|
|
351
|
+
- `service_definition_name` — Service definition name (SERVICE_DEFINITION; the definition a SERVICE_BINDING binds).
|
|
316
352
|
- `service_binding_name` — Service binding name.
|
|
353
|
+
- `service_name` — Service name of the binding (SERVICE_BINDING create); the binding name when absent.
|
|
354
|
+
- `service_version` — Service version of the binding (SERVICE_BINDING create); 0001 when absent.
|
|
355
|
+
- `binding_variant` — Binding variant (SERVICE_BINDING create); ODATA_V4_UI when absent.
|
|
317
356
|
- `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
357
|
- `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
358
|
|
|
325
359
|
### HandlerUpdate
|
|
326
360
|
|
|
327
361
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
328
362
|
|
|
329
|
-
**Description:**
|
|
363
|
+
**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
364
|
|
|
331
365
|
**Available in:** cloud, onprem
|
|
332
366
|
|
|
333
367
|
**Parameters:**
|
|
334
368
|
|
|
335
369
|
- `object_type` (required) — ABAP object type for routed compact operation.
|
|
370
|
+
- `lock_handle` (required) — The lock handle of the object (for a class include, of the class): the write is sent under it.
|
|
371
|
+
- `transport_request` — Transport request id, sent as the write's corrNr (the types whose description names it).
|
|
336
372
|
- `class_name` — ABAP class name.
|
|
337
373
|
- `program_name` — ABAP program name.
|
|
338
374
|
- `domain_name` — ABAP domain name.
|
|
@@ -340,28 +376,17 @@ per request.
|
|
|
340
376
|
- `function_group_name` — ABAP function group name.
|
|
341
377
|
- `package_name` — ABAP package name.
|
|
342
378
|
- `ddl_name` — DDL source name (CDS view, AMDP table function, etc.).
|
|
343
|
-
- `source_code` —
|
|
379
|
+
- `source_code` — The content written: the source, or for PACKAGE, DOMAIN, DATA_ELEMENT and FUNCTION_GROUP the whole metadata document.
|
|
344
380
|
- `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
381
|
- `table_name` — Table name.
|
|
357
382
|
- `structure_name` — Structure name.
|
|
358
383
|
- `data_element_name` — Data element name.
|
|
359
384
|
- `interface_name` — Interface name.
|
|
360
385
|
- `service_definition_name` — Service definition name.
|
|
361
386
|
- `service_binding_name` — Service binding name.
|
|
362
|
-
- `service_name` — Published service name (
|
|
387
|
+
- `service_name` — Published service name (SERVICE_BINDING, an OData V2 binding).
|
|
388
|
+
- `service_version` — Published service version (SERVICE_BINDING, an OData V2 binding). Default 0001.
|
|
363
389
|
- `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
390
|
- `ddl_code` — Complete DDL source code (for TABLE/STRUCTURE update).
|
|
366
391
|
- `implementation_code` — Behavior implementation methods source code.
|
|
367
392
|
- `test_class_source` — ABAP source of the local test classes (UNIT_TEST and CDS_UNIT_TEST update).
|
|
@@ -376,20 +401,22 @@ per request.
|
|
|
376
401
|
|
|
377
402
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
378
403
|
|
|
379
|
-
**Description:**
|
|
404
|
+
**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
405
|
|
|
381
406
|
**Available in:** cloud, onprem
|
|
382
407
|
|
|
383
408
|
**Parameters:**
|
|
384
409
|
|
|
385
|
-
- `object_type` (required) —
|
|
410
|
+
- `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.
|
|
411
|
+
- `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.
|
|
412
|
+
- `package_name` — ABAP package name.
|
|
386
413
|
- `class_name` — ABAP class name.
|
|
387
414
|
- `program_name` — ABAP program name.
|
|
388
415
|
- `domain_name` — ABAP domain name.
|
|
389
416
|
- `function_module_name` — ABAP function module name.
|
|
390
417
|
- `function_group_name` — ABAP function group name.
|
|
391
418
|
- `ddl_name` — DDL source name (CDS view, AMDP table function, etc.).
|
|
392
|
-
- `transport_request` — Transport request id (
|
|
419
|
+
- `transport_request` — Transport request id, sent with the deletion (or the include write).
|
|
393
420
|
- `table_name` — Table name.
|
|
394
421
|
- `structure_name` — Structure name.
|
|
395
422
|
- `data_element_name` — Data element name.
|
|
@@ -404,23 +431,23 @@ per request.
|
|
|
404
431
|
|
|
405
432
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
406
433
|
|
|
407
|
-
**Description:**
|
|
434
|
+
**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
435
|
|
|
409
436
|
**Available in:** cloud, onprem
|
|
410
437
|
|
|
411
438
|
**Parameters:**
|
|
412
439
|
|
|
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` —
|
|
440
|
+
- `object_type` — ABAP object type for routed compact operation. Names the object's type in the single form.
|
|
441
|
+
- `object_name` — Object name (single form).
|
|
442
|
+
- `object_adt_type` — ADT object type code (e.g. CLAS/OC, PROG/P) of the object (single form).
|
|
443
|
+
- `objects` — The objects activated together (list form).
|
|
417
444
|
- `preaudit` — Run pre-audit checks before activation.
|
|
418
445
|
|
|
419
446
|
### HandlerTransportCreate
|
|
420
447
|
|
|
421
448
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
422
449
|
|
|
423
|
-
**Description:** Transport create.
|
|
450
|
+
**Description:** Transport create. Required: description*. Optional: transport_type(workbench|customizing), target_system, owner. Response: JSON.
|
|
424
451
|
|
|
425
452
|
**Available in:** cloud, onprem
|
|
426
453
|
|
|
@@ -431,43 +458,65 @@ per request.
|
|
|
431
458
|
- `target_system` — Target system id.
|
|
432
459
|
- `owner` — Transport owner user.
|
|
433
460
|
|
|
461
|
+
### HandlerTransportSortAndCompress
|
|
462
|
+
|
|
463
|
+
**Half:** `@mcp-abap-adt/compact-modify`
|
|
464
|
+
|
|
465
|
+
**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.
|
|
466
|
+
|
|
467
|
+
**Available in:** cloud, onprem
|
|
468
|
+
|
|
469
|
+
**Parameters:**
|
|
470
|
+
|
|
471
|
+
- `transport_number` (required) — Number of the transport task to sort and compress.
|
|
472
|
+
|
|
473
|
+
### HandlerTransportMoveObjects
|
|
474
|
+
|
|
475
|
+
**Half:** `@mcp-abap-adt/compact-modify`
|
|
476
|
+
|
|
477
|
+
**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.
|
|
478
|
+
|
|
479
|
+
**Available in:** cloud, onprem
|
|
480
|
+
|
|
481
|
+
**Parameters:**
|
|
482
|
+
|
|
483
|
+
- `transport_number` (required) — Number of the transport task that holds the entries.
|
|
484
|
+
- `target_number` (required) — Number of the transport task the entries move to.
|
|
485
|
+
- `objects` (required) — The entries to move, at least one — each with object_name, object_type, position (in the source task) and an optional pgmid.
|
|
486
|
+
|
|
434
487
|
### HandlerLock
|
|
435
488
|
|
|
436
489
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
437
490
|
|
|
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*).
|
|
491
|
+
**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
492
|
|
|
440
493
|
**Available in:** cloud, onprem
|
|
441
494
|
|
|
442
495
|
**Parameters:**
|
|
443
496
|
|
|
444
|
-
- `object_type` (required) —
|
|
445
|
-
- `object_name` (required) —
|
|
497
|
+
- `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.
|
|
498
|
+
- `object_name` (required) — Object name. A function module is named GROUP|MODULE, its function group first.
|
|
446
499
|
- `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
500
|
|
|
450
501
|
### HandlerUnlock
|
|
451
502
|
|
|
452
503
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
453
504
|
|
|
454
|
-
**Description:** Unlock operation. object_type required: CLASS(object_name*, lock_handle
|
|
505
|
+
**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
506
|
|
|
456
507
|
**Available in:** cloud, onprem
|
|
457
508
|
|
|
458
509
|
**Parameters:**
|
|
459
510
|
|
|
460
|
-
- `object_type` (required) —
|
|
461
|
-
- `object_name` (required) —
|
|
511
|
+
- `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.
|
|
512
|
+
- `object_name` (required) — Object name. A function module is named GROUP|MODULE, its function group first.
|
|
462
513
|
- `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
514
|
|
|
466
515
|
### HandlerUnitTestRun
|
|
467
516
|
|
|
468
517
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
469
518
|
|
|
470
|
-
**Description:** ABAP Unit test run.
|
|
519
|
+
**Description:** [read-only] ABAP Unit test run. Required: tests[]{container_class*, test_class*}. Optional: title, context, scope, risk_level, duration. Response: JSON.
|
|
471
520
|
|
|
472
521
|
**Available in:** cloud, onprem
|
|
473
522
|
|
|
@@ -480,21 +529,17 @@ per request.
|
|
|
480
529
|
- `risk_level` — Allowed risk levels.
|
|
481
530
|
- `duration` — Allowed duration classes.
|
|
482
531
|
|
|
483
|
-
###
|
|
532
|
+
### HandlerProfileSchedule
|
|
484
533
|
|
|
485
534
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
486
535
|
|
|
487
|
-
**Description:**
|
|
536
|
+
**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
537
|
|
|
489
538
|
**Available in:** cloud, onprem
|
|
490
539
|
|
|
491
540
|
**Parameters:**
|
|
492
541
|
|
|
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.
|
|
542
|
+
- `description` — Profiler trace description.
|
|
498
543
|
- `all_procedural_units` — Trace all procedural units.
|
|
499
544
|
- `all_misc_abap_statements` — Trace miscellaneous ABAP statements.
|
|
500
545
|
- `all_internal_table_events` — Trace internal table events.
|
|
@@ -509,70 +554,193 @@ per request.
|
|
|
509
554
|
- `amdp_trace` — Enable AMDP tracing.
|
|
510
555
|
- `max_time_for_tracing` — Maximum tracing time.
|
|
511
556
|
|
|
512
|
-
###
|
|
557
|
+
### HandlerProfileRun
|
|
513
558
|
|
|
514
|
-
**Half:**
|
|
559
|
+
**Half:** `@mcp-abap-adt/compact-modify`
|
|
515
560
|
|
|
516
|
-
**Description:**
|
|
561
|
+
**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
562
|
|
|
518
563
|
**Available in:** cloud, onprem
|
|
519
564
|
|
|
520
565
|
**Parameters:**
|
|
521
566
|
|
|
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).
|
|
567
|
+
- `target_type` (required) — Run target kind.
|
|
568
|
+
- `class_name` — Class to run.
|
|
569
|
+
- `program_name` — Program to run.
|
|
570
|
+
- `profiler_id` — The profiler id of a scheduled trace. Given, the run goes under that trace; absent, the run is plain.
|
|
571
|
+
- `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
572
|
|
|
531
|
-
###
|
|
573
|
+
### HandlerDebugBreakpoints
|
|
532
574
|
|
|
533
|
-
**Half:** debugger
|
|
575
|
+
**Half:** debugger tools of `@mcp-abap-adt/compact` (the write binaries; no `-ro` one)
|
|
534
576
|
|
|
535
|
-
**Description:**
|
|
577
|
+
**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
578
|
|
|
537
579
|
**Available in:** cloud, onprem
|
|
538
580
|
|
|
539
581
|
**Parameters:**
|
|
540
582
|
|
|
541
|
-
- `state_handle`
|
|
542
|
-
- `
|
|
583
|
+
- `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.
|
|
584
|
+
- `kind` (required) — abap works with the ABAP debugger; amdp with the AMDP debugger of SQLScript methods.
|
|
585
|
+
- `operation` (required) — The one request: abap setBreakpoints, syncBreakpoints, deleteBreakpoint, createWatchpoint, listWatchpoints or deleteWatchpoint; amdp syncBreakpoints.
|
|
586
|
+
- `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.
|
|
587
|
+
- `sync_scope` — abap syncBreakpoints: full replaces every breakpoint of the set; partial replaces those of the objects in sync_objects and takes line breakpoints.
|
|
588
|
+
- `sync_objects` — abap syncBreakpoints with sync_scope partial: the ADT URIs of the objects whose breakpoints are replaced.
|
|
589
|
+
- `breakpoint_id` — abap deleteBreakpoint: the id SAP gave the breakpoint.
|
|
590
|
+
- `variable_name` — abap createWatchpoint: the variable watched.
|
|
591
|
+
- `condition` — abap createWatchpoint: the ABAP condition the watchpoint stops on.
|
|
592
|
+
- `watchpoint_id` — abap deleteWatchpoint: the id SAP gave the watchpoint.
|
|
593
|
+
- `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.
|
|
594
|
+
- `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
595
|
- `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
596
|
|
|
545
|
-
###
|
|
597
|
+
### HandlerDebugSession
|
|
546
598
|
|
|
547
|
-
**Half:** debugger
|
|
599
|
+
**Half:** debugger tools of `@mcp-abap-adt/compact` (the write binaries; no `-ro` one)
|
|
548
600
|
|
|
549
|
-
**Description:**
|
|
601
|
+
**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
602
|
|
|
551
603
|
**Available in:** cloud, onprem
|
|
552
604
|
|
|
553
605
|
**Parameters:**
|
|
554
606
|
|
|
555
|
-
- `state_handle`
|
|
556
|
-
- `
|
|
557
|
-
- `
|
|
607
|
+
- `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.
|
|
608
|
+
- `kind` (required) — abap works with the ABAP debugger; amdp with the AMDP debugger of SQLScript methods.
|
|
609
|
+
- `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.
|
|
610
|
+
- `hold_seconds` — abap listen: how long SAP holds the listen, in seconds; SAP answers at a catch or when the hold ends.
|
|
611
|
+
- `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.
|
|
612
|
+
- `debuggee_id` — abap attach: the debuggee_id listen answered. amdp deleteDebuggee: the debuggee id of a break event.
|
|
613
|
+
- `server` — abap attach: the debuggee's application server, as listen answered it.
|
|
614
|
+
- `settings` — abap setDebuggerSettings: the settings sent; a field left out keeps its value.
|
|
615
|
+
- `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.
|
|
616
|
+
- `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
617
|
- `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
618
|
|
|
560
619
|
### HandlerDebugStep
|
|
561
620
|
|
|
562
|
-
**Half:** debugger
|
|
621
|
+
**Half:** debugger tools of `@mcp-abap-adt/compact` (the write binaries; no `-ro` one)
|
|
563
622
|
|
|
564
|
-
**Description:** Moves the stopped debuggee
|
|
623
|
+
**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
624
|
|
|
566
625
|
**Available in:** cloud, onprem
|
|
567
626
|
|
|
568
627
|
**Parameters:**
|
|
569
628
|
|
|
570
629
|
- `state_handle` (required) — Opaque handle identifying the server-held state this operation works on.
|
|
571
|
-
- `
|
|
630
|
+
- `kind` (required) — abap works with the ABAP debugger; amdp with the AMDP debugger of SQLScript methods.
|
|
631
|
+
- `operation` (required) — The one request: abap stepInto, stepOver, stepReturn, stepContinue, stepRunToLine, stepJumpToLine or setStackPosition; amdp stepOver or stepContinue.
|
|
572
632
|
- `object_type` — For a line: CLAS, PROG, INCL or FUNC.
|
|
573
633
|
- `object_name` — For a line: the object holding it.
|
|
574
634
|
- `line` — For a line: the line in the object source.
|
|
575
635
|
- `include` — For a class: definitions, implementations, macros or testclasses; the main source when omitted.
|
|
576
636
|
- `parent_name` — For a function module: its function group.
|
|
637
|
+
- `position` — abap setStackPosition: the frame's position in the stack.
|
|
638
|
+
- `debuggee_id` — amdp: the debuggee id of the break event.
|
|
639
|
+
- `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).
|
|
640
|
+
|
|
641
|
+
### HandlerDebugMaintain
|
|
642
|
+
|
|
643
|
+
**Half:** debugger tools of `@mcp-abap-adt/compact` (the write binaries; no `-ro` one)
|
|
644
|
+
|
|
645
|
+
**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.
|
|
646
|
+
|
|
647
|
+
**Available in:** cloud, onprem
|
|
648
|
+
|
|
649
|
+
**Parameters:**
|
|
650
|
+
|
|
651
|
+
- `state_handle` (required) — Opaque handle identifying the server-held state this operation works on.
|
|
652
|
+
- `kind` (required) — abap works with the ABAP debugger; amdp with the AMDP debugger of SQLScript methods.
|
|
653
|
+
- `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).
|
|
654
|
+
- `names` — abap getVariables: the variables read.
|
|
655
|
+
- `parents` — abap getChildVariables: the ids whose members are read; @ROOT, the scopes, when omitted.
|
|
656
|
+
- `variable_name` — abap setVariableValue: the variable set. amdp getDataPreview: the table variable read.
|
|
657
|
+
- `value` — abap setVariableValue: the new value.
|
|
658
|
+
- `debuggee_id` — amdp getDataPreview: the debuggee id of the break event.
|
|
659
|
+
- `query` — amdp getDataPreview: a SELECT over the table variable; every column when omitted.
|
|
660
|
+
- `row_number` — amdp getDataPreview: how many rows SAP answers; SAP's own count when omitted.
|
|
577
661
|
- `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
662
|
|
|
663
|
+
### HandlerDebugBatch
|
|
664
|
+
|
|
665
|
+
**Half:** debugger tools of `@mcp-abap-adt/compact` (the write binaries; no `-ro` one)
|
|
666
|
+
|
|
667
|
+
**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.
|
|
668
|
+
|
|
669
|
+
**Available in:** cloud, onprem
|
|
670
|
+
|
|
671
|
+
**Parameters:**
|
|
672
|
+
|
|
673
|
+
- `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.
|
|
674
|
+
- `number` — answers: one batch number to read, at least 1.
|
|
675
|
+
- `numbers` — answers: several batch numbers to read, each at least 1, answered in the order given.
|
|
676
|
+
|
|
677
|
+
### HandlerBackgroundRunGet
|
|
678
|
+
|
|
679
|
+
**Half:** background-run tools of `@mcp-abap-adt/lib` (the write binaries, where `HandlerProfileRun` is)
|
|
680
|
+
|
|
681
|
+
**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.
|
|
682
|
+
|
|
683
|
+
**Available in:** all
|
|
684
|
+
|
|
685
|
+
**Parameters:**
|
|
686
|
+
|
|
687
|
+
- `run_handle` (required) — The run_handle a run started with background=true answered.
|
|
688
|
+
|
|
689
|
+
### HandlerBackgroundRunList
|
|
690
|
+
|
|
691
|
+
**Half:** background-run tools of `@mcp-abap-adt/lib` (the write binaries, where `HandlerProfileRun` is)
|
|
692
|
+
|
|
693
|
+
**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.
|
|
694
|
+
|
|
695
|
+
**Available in:** all
|
|
696
|
+
|
|
697
|
+
**Parameters:** none
|
|
698
|
+
|
|
699
|
+
### HandlerBackgroundRunDiscard
|
|
700
|
+
|
|
701
|
+
**Half:** background-run tools of `@mcp-abap-adt/lib` (the write binaries, where `HandlerProfileRun` is)
|
|
702
|
+
|
|
703
|
+
**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.
|
|
704
|
+
|
|
705
|
+
**Available in:** all
|
|
706
|
+
|
|
707
|
+
**Parameters:**
|
|
708
|
+
|
|
709
|
+
- `run_handle` (required) — The run_handle a run started with background=true answered.
|
|
710
|
+
|
|
711
|
+
### HandlerLeftoverSessionList
|
|
712
|
+
|
|
713
|
+
**Half:** leftover-session tools of `@mcp-abap-adt/lib`, stdio binaries only (the list and the logoff in both)
|
|
714
|
+
|
|
715
|
+
**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.
|
|
716
|
+
|
|
717
|
+
**Available in:** all
|
|
718
|
+
|
|
719
|
+
**Parameters:** none
|
|
720
|
+
|
|
721
|
+
### HandlerLeftoverSessionLogoff
|
|
722
|
+
|
|
723
|
+
**Half:** leftover-session tools of `@mcp-abap-adt/lib`, stdio binaries only (the list and the logoff in both)
|
|
724
|
+
|
|
725
|
+
**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.
|
|
726
|
+
|
|
727
|
+
**Available in:** all
|
|
728
|
+
|
|
729
|
+
**Parameters:**
|
|
730
|
+
|
|
731
|
+
- `handle` (required) — The handle of a leftover session, as the list answers it.
|
|
732
|
+
|
|
733
|
+
### HandlerBatch
|
|
734
|
+
|
|
735
|
+
**Half:** batch mode of `@mcp-abap-adt/lib`, in every compact binary
|
|
736
|
+
|
|
737
|
+
**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.
|
|
738
|
+
|
|
739
|
+
**Available in:** all
|
|
740
|
+
|
|
741
|
+
**Parameters:**
|
|
742
|
+
|
|
743
|
+
- `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).
|
|
744
|
+
- `number` — answers only: one batch number to read (an integer of at least 1); give this or numbers, not both.
|
|
745
|
+
- `numbers` — answers only: several batch numbers to read, answered in the order given; give this or number, not both.
|
|
746
|
+
|