@mcp-abap-adt/adt-clients 43.0.1 → 43.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/dist/core/shared/AdtUtils.d.ts +37 -0
- package/dist/core/shared/AdtUtils.d.ts.map +1 -1
- package/dist/core/shared/AdtUtils.js +40 -0
- package/dist/core/shared/elementInfo.d.ts +42 -0
- package/dist/core/shared/elementInfo.d.ts.map +1 -0
- package/dist/core/shared/elementInfo.js +56 -0
- package/dist/endpoints/objects.d.ts +12 -0
- package/dist/endpoints/objects.d.ts.map +1 -1
- package/dist/endpoints/objects.js +6 -0
- package/docs/usage/CLIENT_API_REFERENCE.md +42 -0
- package/package.json +2 -2
|
@@ -434,6 +434,43 @@ export declare class AdtUtils<T extends UtilValues = ResultValuesOf<typeof utilD
|
|
|
434
434
|
version?: AdtReadVersion;
|
|
435
435
|
accept?: string;
|
|
436
436
|
} & IAdtAnalyseOptions<E>): Promise<IAdtResponse<string, E>>;
|
|
437
|
+
/**
|
|
438
|
+
* A structure's element info — `GET /sap/bc/adt/ddic/elementinfo?path=`,
|
|
439
|
+
* one request: every component in order, each include and append as an
|
|
440
|
+
* `.include` / `.append` element naming the included structure
|
|
441
|
+
* (`ddicIncludeName`) and its URI, every field with its data element, type
|
|
442
|
+
* and length and, inside an include, the include it is part of and its
|
|
443
|
+
* level. Measured on premise and on ABAP cloud.
|
|
444
|
+
* `@mcp-abap-adt/adt-strategies`' `readStructureElementInfo` reads it.
|
|
445
|
+
*
|
|
446
|
+
* **The document as it came, always**, as for `getObjectOutline`:
|
|
447
|
+
* `IUtilResults` of interfaces-adt has no slot for this member. A name
|
|
448
|
+
* that does not exist answers `200` with an element info naming nothing.
|
|
449
|
+
*
|
|
450
|
+
* @param options.accept - The Accept to send; SAP answers only
|
|
451
|
+
* `application/vnd.sap.adt.elementinfo+xml`, the default
|
|
452
|
+
*/
|
|
453
|
+
getStructureElementInfo<E extends IAdtError = IAdtError>(structureName: string, options?: {
|
|
454
|
+
accept?: string;
|
|
455
|
+
} & IAdtAnalyseOptions<E>): Promise<IAdtResponse<string, E>>;
|
|
456
|
+
/**
|
|
457
|
+
* A service definition's element info —
|
|
458
|
+
* `GET /sap/bc/adt/ddic/srvd/elementinfo?path=`, one request: its exposed
|
|
459
|
+
* entities, each with its name, its DDL source URI and its alias (absent
|
|
460
|
+
* when the `expose` has no `as`), those of its extensions included, and a
|
|
461
|
+
* link to each extension. Measured on premise and on ABAP cloud.
|
|
462
|
+
* `@mcp-abap-adt/adt-strategies`' `readServiceDefinitionElementInfo` reads
|
|
463
|
+
* it.
|
|
464
|
+
*
|
|
465
|
+
* **The document as it came, always**, as for `getObjectOutline`. A name
|
|
466
|
+
* that does not exist answers `200` with an element info naming nothing.
|
|
467
|
+
*
|
|
468
|
+
* @param options.accept - The Accept to send; SAP answers only
|
|
469
|
+
* `application/vnd.sap.adt.elementinfo+xml`, the default
|
|
470
|
+
*/
|
|
471
|
+
getServiceDefinitionElementInfo<E extends IAdtError = IAdtError>(serviceDefinitionName: string, options?: {
|
|
472
|
+
accept?: string;
|
|
473
|
+
} & IAdtAnalyseOptions<E>): Promise<IAdtResponse<string, E>>;
|
|
437
474
|
/**
|
|
438
475
|
* The properties of one repository object —
|
|
439
476
|
* `/repository/informationsystem/objectproperties/values?uri={objectUri}`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdtUtils.d.ts","sourceRoot":"","sources":["../../../src/core/shared/AdtUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgFG;AAEH,OAAO,KAAK,EAEV,UAAU,EACV,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,WAAW,EAC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aG;IACG,UAAU,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,EAC9C,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAC9B,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC;IAQzC;;;;;;;;;;;;;;;OAeG;IACG,WAAW,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,EAC/C,YAAY,GAAE,MAAY,EAC1B,IAAI,GAAE,MAAY,EAClB,IAAI,GAAE,MAAyB,EAC/B,OAAO,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAC9B,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;IAQvC;;;;;;;;;;;;;;;;;OAiBG;IACG,gBAAgB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,EACpD,OAAO,EAAE;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,GAAG,kBAAkB,CAAC,CAAC,CAAC,GACxD,OAAO,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;CAOpC"}
|
|
@@ -7,6 +7,7 @@ const requestTrace_1 = require("../../utils/requestTrace");
|
|
|
7
7
|
const resultStrategy_1 = require("../../utils/resultStrategy");
|
|
8
8
|
const allTypes_1 = require("./allTypes");
|
|
9
9
|
const discovery_1 = require("./discovery");
|
|
10
|
+
const elementInfo_1 = require("./elementInfo");
|
|
10
11
|
const getInactiveObjects_1 = require("./getInactiveObjects");
|
|
11
12
|
const groupActivation_1 = require("./groupActivation");
|
|
12
13
|
const groupDeletion_1 = require("./groupDeletion");
|
|
@@ -496,6 +497,45 @@ class AdtUtils {
|
|
|
496
497
|
accept: options?.accept,
|
|
497
498
|
}), resultStrategy_1.rawDocument, options?.analyse);
|
|
498
499
|
}
|
|
500
|
+
/**
|
|
501
|
+
* A structure's element info — `GET /sap/bc/adt/ddic/elementinfo?path=`,
|
|
502
|
+
* one request: every component in order, each include and append as an
|
|
503
|
+
* `.include` / `.append` element naming the included structure
|
|
504
|
+
* (`ddicIncludeName`) and its URI, every field with its data element, type
|
|
505
|
+
* and length and, inside an include, the include it is part of and its
|
|
506
|
+
* level. Measured on premise and on ABAP cloud.
|
|
507
|
+
* `@mcp-abap-adt/adt-strategies`' `readStructureElementInfo` reads it.
|
|
508
|
+
*
|
|
509
|
+
* **The document as it came, always**, as for `getObjectOutline`:
|
|
510
|
+
* `IUtilResults` of interfaces-adt has no slot for this member. A name
|
|
511
|
+
* that does not exist answers `200` with an element info naming nothing.
|
|
512
|
+
*
|
|
513
|
+
* @param options.accept - The Accept to send; SAP answers only
|
|
514
|
+
* `application/vnd.sap.adt.elementinfo+xml`, the default
|
|
515
|
+
*/
|
|
516
|
+
async getStructureElementInfo(structureName, options) {
|
|
517
|
+
return (0, adtResponse_1.answering)(() => (0, elementInfo_1.getStructureElementInfo)(this.connection, structureName, {
|
|
518
|
+
accept: options?.accept,
|
|
519
|
+
}), resultStrategy_1.rawDocument, options?.analyse);
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* A service definition's element info —
|
|
523
|
+
* `GET /sap/bc/adt/ddic/srvd/elementinfo?path=`, one request: its exposed
|
|
524
|
+
* entities, each with its name, its DDL source URI and its alias (absent
|
|
525
|
+
* when the `expose` has no `as`), those of its extensions included, and a
|
|
526
|
+
* link to each extension. Measured on premise and on ABAP cloud.
|
|
527
|
+
* `@mcp-abap-adt/adt-strategies`' `readServiceDefinitionElementInfo` reads
|
|
528
|
+
* it.
|
|
529
|
+
*
|
|
530
|
+
* **The document as it came, always**, as for `getObjectOutline`. A name
|
|
531
|
+
* that does not exist answers `200` with an element info naming nothing.
|
|
532
|
+
*
|
|
533
|
+
* @param options.accept - The Accept to send; SAP answers only
|
|
534
|
+
* `application/vnd.sap.adt.elementinfo+xml`, the default
|
|
535
|
+
*/
|
|
536
|
+
async getServiceDefinitionElementInfo(serviceDefinitionName, options) {
|
|
537
|
+
return (0, adtResponse_1.answering)(() => (0, elementInfo_1.getServiceDefinitionElementInfo)(this.connection, serviceDefinitionName, { accept: options?.accept }), resultStrategy_1.rawDocument, options?.analyse);
|
|
538
|
+
}
|
|
499
539
|
/**
|
|
500
540
|
* The properties of one repository object —
|
|
501
541
|
* `/repository/informationsystem/objectproperties/values?uri={objectUri}`.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Element info of a structure and of a service definition — what Eclipse
|
|
3
|
+
* shows on a hover over a name in DDIC source.
|
|
4
|
+
*
|
|
5
|
+
* Measured on premise and on ABAP cloud (2026-11-05), the same answers byte
|
|
6
|
+
* for byte where both systems hold the object: one `abapsource:elementInfo`
|
|
7
|
+
* for the object (`adtcore:uri`, `adtcore:type`, `adtcore:name`, its short
|
|
8
|
+
* text) with one nested `abapsource:elementInfo` per component and, last, its
|
|
9
|
+
* package (`DEVC/K`). Both endpoints answer `406` to any Accept but
|
|
10
|
+
* `application/vnd.sap.adt.elementinfo+xml`, and `200` with an element info
|
|
11
|
+
* that names no object for a name that does not exist.
|
|
12
|
+
*/
|
|
13
|
+
import type { IAbapConnection, IAdtWireResponse } from '@mcp-abap-adt/interfaces-adt-connection';
|
|
14
|
+
/** The one media type both element-info endpoints answer. */
|
|
15
|
+
export declare const ACCEPT_ELEMENT_INFO = "application/vnd.sap.adt.elementinfo+xml";
|
|
16
|
+
/**
|
|
17
|
+
* A structure's element info — `GET /sap/bc/adt/ddic/elementinfo?path=<name>`.
|
|
18
|
+
*
|
|
19
|
+
* Every component in order, flat: an include or an append is a `TABL/DS`
|
|
20
|
+
* element named `.include` or `.append` with `ddicIncludeName` and the
|
|
21
|
+
* included structure's source URI, and each field inside it carries
|
|
22
|
+
* `ddicIsPartOfInclude` and `ddicIncludeHierarchyLevel`; nested includes
|
|
23
|
+
* follow the same rule one level down. A named include (`_x : include s`)
|
|
24
|
+
* is an `.include` too: the group name is not stated.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getStructureElementInfo(connection: IAbapConnection, structureName: string, options?: {
|
|
27
|
+
accept?: string;
|
|
28
|
+
}): Promise<IAdtWireResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* A service definition's element info —
|
|
31
|
+
* `GET /sap/bc/adt/ddic/srvd/elementinfo?path=<name>`.
|
|
32
|
+
*
|
|
33
|
+
* One element per exposed entity, with the entity's name as its DDL source
|
|
34
|
+
* writes it, the DDL source URI and an `alias` entry when the `expose` has
|
|
35
|
+
* an `as` (none without); not in source order. Entities exposed by an
|
|
36
|
+
* extension are listed too, and the extension is linked
|
|
37
|
+
* (`rel=…/ddic/srvd/extention`, SAP's spelling).
|
|
38
|
+
*/
|
|
39
|
+
export declare function getServiceDefinitionElementInfo(connection: IAbapConnection, serviceDefinitionName: string, options?: {
|
|
40
|
+
accept?: string;
|
|
41
|
+
}): Promise<IAdtWireResponse>;
|
|
42
|
+
//# sourceMappingURL=elementInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elementInfo.d.ts","sourceRoot":"","sources":["../../../src/core/shared/elementInfo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EACjB,MAAM,yCAAyC,CAAC;AAGjD,6DAA6D;AAC7D,eAAO,MAAM,mBAAmB,4CAA4C,CAAC;AAE7E;;;;;;;;;GASG;AACH,wBAAsB,uBAAuB,CAC3C,UAAU,EAAE,eAAe,EAC3B,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC5B,OAAO,CAAC,gBAAgB,CAAC,CAO3B;AAED;;;;;;;;;GASG;AACH,wBAAsB,+BAA+B,CACnD,UAAU,EAAE,eAAe,EAC3B,qBAAqB,EAAE,MAAM,EAC7B,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC5B,OAAO,CAAC,gBAAgB,CAAC,CAO3B"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Element info of a structure and of a service definition — what Eclipse
|
|
4
|
+
* shows on a hover over a name in DDIC source.
|
|
5
|
+
*
|
|
6
|
+
* Measured on premise and on ABAP cloud (2026-11-05), the same answers byte
|
|
7
|
+
* for byte where both systems hold the object: one `abapsource:elementInfo`
|
|
8
|
+
* for the object (`adtcore:uri`, `adtcore:type`, `adtcore:name`, its short
|
|
9
|
+
* text) with one nested `abapsource:elementInfo` per component and, last, its
|
|
10
|
+
* package (`DEVC/K`). Both endpoints answer `406` to any Accept but
|
|
11
|
+
* `application/vnd.sap.adt.elementinfo+xml`, and `200` with an element info
|
|
12
|
+
* that names no object for a name that does not exist.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ACCEPT_ELEMENT_INFO = void 0;
|
|
16
|
+
exports.getStructureElementInfo = getStructureElementInfo;
|
|
17
|
+
exports.getServiceDefinitionElementInfo = getServiceDefinitionElementInfo;
|
|
18
|
+
const objects_1 = require("../../endpoints/objects");
|
|
19
|
+
/** The one media type both element-info endpoints answer. */
|
|
20
|
+
exports.ACCEPT_ELEMENT_INFO = 'application/vnd.sap.adt.elementinfo+xml';
|
|
21
|
+
/**
|
|
22
|
+
* A structure's element info — `GET /sap/bc/adt/ddic/elementinfo?path=<name>`.
|
|
23
|
+
*
|
|
24
|
+
* Every component in order, flat: an include or an append is a `TABL/DS`
|
|
25
|
+
* element named `.include` or `.append` with `ddicIncludeName` and the
|
|
26
|
+
* included structure's source URI, and each field inside it carries
|
|
27
|
+
* `ddicIsPartOfInclude` and `ddicIncludeHierarchyLevel`; nested includes
|
|
28
|
+
* follow the same rule one level down. A named include (`_x : include s`)
|
|
29
|
+
* is an `.include` too: the group name is not stated.
|
|
30
|
+
*/
|
|
31
|
+
async function getStructureElementInfo(connection, structureName, options) {
|
|
32
|
+
return connection.makeAdtRequest({
|
|
33
|
+
url: objects_1.STRUCTURE.elementInfo(structureName),
|
|
34
|
+
method: 'GET',
|
|
35
|
+
timeout: 0,
|
|
36
|
+
headers: { Accept: options?.accept ?? exports.ACCEPT_ELEMENT_INFO },
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A service definition's element info —
|
|
41
|
+
* `GET /sap/bc/adt/ddic/srvd/elementinfo?path=<name>`.
|
|
42
|
+
*
|
|
43
|
+
* One element per exposed entity, with the entity's name as its DDL source
|
|
44
|
+
* writes it, the DDL source URI and an `alias` entry when the `expose` has
|
|
45
|
+
* an `as` (none without); not in source order. Entities exposed by an
|
|
46
|
+
* extension are listed too, and the extension is linked
|
|
47
|
+
* (`rel=…/ddic/srvd/extention`, SAP's spelling).
|
|
48
|
+
*/
|
|
49
|
+
async function getServiceDefinitionElementInfo(connection, serviceDefinitionName, options) {
|
|
50
|
+
return connection.makeAdtRequest({
|
|
51
|
+
url: objects_1.SERVICE_DEFINITION.elementInfo(serviceDefinitionName),
|
|
52
|
+
method: 'GET',
|
|
53
|
+
timeout: 0,
|
|
54
|
+
headers: { Accept: options?.accept ?? exports.ACCEPT_ELEMENT_INFO },
|
|
55
|
+
});
|
|
56
|
+
}
|
|
@@ -103,6 +103,9 @@ export declare const STRUCTURE: {
|
|
|
103
103
|
readonly collection: "/sap/bc/adt/ddic/structures";
|
|
104
104
|
readonly validation: "/sap/bc/adt/ddic/structures/validation";
|
|
105
105
|
readonly uri: (name: string) => string;
|
|
106
|
+
/** The DDIC element info: every component, includes and appends marked. */
|
|
107
|
+
readonly elementInfoCollection: "/sap/bc/adt/ddic/elementinfo";
|
|
108
|
+
readonly elementInfo: (name: string) => string;
|
|
106
109
|
};
|
|
107
110
|
export declare const DOMAIN: {
|
|
108
111
|
readonly collection: "/sap/bc/adt/ddic/domains";
|
|
@@ -128,6 +131,9 @@ export declare const SERVICE_DEFINITION: {
|
|
|
128
131
|
readonly collection: "/sap/bc/adt/ddic/srvd/sources";
|
|
129
132
|
readonly validation: "/sap/bc/adt/ddic/srvd/sources/validation";
|
|
130
133
|
readonly uri: (name: string) => string;
|
|
134
|
+
/** The service definition's element info: its exposed entities. */
|
|
135
|
+
readonly elementInfoCollection: "/sap/bc/adt/ddic/srvd/elementinfo";
|
|
136
|
+
readonly elementInfo: (name: string) => string;
|
|
131
137
|
};
|
|
132
138
|
export declare const SERVICE_BINDING: {
|
|
133
139
|
/**
|
|
@@ -289,6 +295,9 @@ export declare const RECORDS: {
|
|
|
289
295
|
readonly collection: "/sap/bc/adt/ddic/structures";
|
|
290
296
|
readonly validation: "/sap/bc/adt/ddic/structures/validation";
|
|
291
297
|
readonly uri: (name: string) => string;
|
|
298
|
+
/** The DDIC element info: every component, includes and appends marked. */
|
|
299
|
+
readonly elementInfoCollection: "/sap/bc/adt/ddic/elementinfo";
|
|
300
|
+
readonly elementInfo: (name: string) => string;
|
|
292
301
|
};
|
|
293
302
|
readonly DOMAIN: {
|
|
294
303
|
readonly collection: "/sap/bc/adt/ddic/domains";
|
|
@@ -314,6 +323,9 @@ export declare const RECORDS: {
|
|
|
314
323
|
readonly collection: "/sap/bc/adt/ddic/srvd/sources";
|
|
315
324
|
readonly validation: "/sap/bc/adt/ddic/srvd/sources/validation";
|
|
316
325
|
readonly uri: (name: string) => string;
|
|
326
|
+
/** The service definition's element info: its exposed entities. */
|
|
327
|
+
readonly elementInfoCollection: "/sap/bc/adt/ddic/srvd/elementinfo";
|
|
328
|
+
readonly elementInfo: (name: string) => string;
|
|
317
329
|
};
|
|
318
330
|
readonly SERVICE_BINDING: {
|
|
319
331
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objects.d.ts","sourceRoot":"","sources":["../../src/endpoints/objects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;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AM;QAEhC,0DAA0D;uCACpC,MAAM;;CAmCpB,CAAC;AAEX,eAAO,MAAM,QAAQ,yBAAyB,CAAC;AAC/C,eAAO,MAAM,KAAK;;;CAGR,CAAC"}
|
|
@@ -109,6 +109,9 @@ exports.STRUCTURE = {
|
|
|
109
109
|
collection: '/sap/bc/adt/ddic/structures',
|
|
110
110
|
validation: '/sap/bc/adt/ddic/structures/validation',
|
|
111
111
|
uri: (name) => `/sap/bc/adt/ddic/structures/${seg(name)}`,
|
|
112
|
+
/** The DDIC element info: every component, includes and appends marked. */
|
|
113
|
+
elementInfoCollection: '/sap/bc/adt/ddic/elementinfo',
|
|
114
|
+
elementInfo: (name) => `${exports.STRUCTURE.elementInfoCollection}?path=${seg(name)}`,
|
|
112
115
|
};
|
|
113
116
|
exports.DOMAIN = {
|
|
114
117
|
collection: '/sap/bc/adt/ddic/domains',
|
|
@@ -134,6 +137,9 @@ exports.SERVICE_DEFINITION = {
|
|
|
134
137
|
collection: '/sap/bc/adt/ddic/srvd/sources',
|
|
135
138
|
validation: '/sap/bc/adt/ddic/srvd/sources/validation',
|
|
136
139
|
uri: (name) => `/sap/bc/adt/ddic/srvd/sources/${seg(name)}`,
|
|
140
|
+
/** The service definition's element info: its exposed entities. */
|
|
141
|
+
elementInfoCollection: '/sap/bc/adt/ddic/srvd/elementinfo',
|
|
142
|
+
elementInfo: (name) => `${exports.SERVICE_DEFINITION.elementInfoCollection}?path=${seg(name)}`,
|
|
137
143
|
};
|
|
138
144
|
exports.SERVICE_BINDING = {
|
|
139
145
|
/**
|
|
@@ -1886,6 +1886,48 @@ if (answer.ok) {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
```
|
|
1888
1888
|
|
|
1889
|
+
### AdtUtils (Element info)
|
|
1890
|
+
|
|
1891
|
+
Two members, one GET each, both with `Accept:
|
|
1892
|
+
application/vnd.sap.adt.elementinfo+xml` — the only one SAP answers (`406` to
|
|
1893
|
+
`application/xml`, `application/json` and any other; measured on premise and on
|
|
1894
|
+
ABAP cloud, 2026-11-05). `options.accept` replaces it.
|
|
1895
|
+
|
|
1896
|
+
- `getStructureElementInfo(structureName, options?)` —
|
|
1897
|
+
`GET /sap/bc/adt/ddic/elementinfo?path=<structure>`: every component of the
|
|
1898
|
+
structure in order, flat. An include or an append is an element named
|
|
1899
|
+
`.include` / `.append` with `ddicIncludeName` (the included structure) and
|
|
1900
|
+
that structure's source URI; each field inside one carries
|
|
1901
|
+
`ddicIsPartOfInclude` and `ddicIncludeHierarchyLevel`, a nested include too.
|
|
1902
|
+
A named include (`_x : include s`) is an `.include` as well — its group name
|
|
1903
|
+
is not stated. An append made by `extend type` is listed as `.append`, with
|
|
1904
|
+
its fields.
|
|
1905
|
+
- `getServiceDefinitionElementInfo(serviceDefinitionName, options?)` —
|
|
1906
|
+
`GET /sap/bc/adt/ddic/srvd/elementinfo?path=<service definition>`: one
|
|
1907
|
+
element per exposed entity, with the entity's name as its DDL source writes
|
|
1908
|
+
it, its DDL source URI and an `alias` entry when the `expose` has an `as`
|
|
1909
|
+
(none without); not in source order. An extension's entities are listed too,
|
|
1910
|
+
and the extension is linked.
|
|
1911
|
+
|
|
1912
|
+
A name that does not exist answers `200` with an element info that names
|
|
1913
|
+
nothing. Both answer the document as it came (`IUtilResults` has no slot for
|
|
1914
|
+
them); `readStructureElementInfo` / `structureElementInfo` and
|
|
1915
|
+
`readServiceDefinitionElementInfo` / `serviceDefinitionElementInfo` of
|
|
1916
|
+
`@mcp-abap-adt/adt-strategies` read it.
|
|
1917
|
+
|
|
1918
|
+
```typescript
|
|
1919
|
+
import { readStructureElementInfo } from '@mcp-abap-adt/adt-strategies';
|
|
1920
|
+
|
|
1921
|
+
const answer = await client.getUtils().getStructureElementInfo('/DMO/S_TRAVELX');
|
|
1922
|
+
if (answer.ok) {
|
|
1923
|
+
const { includes } = readStructureElementInfo(answer.getResult().value);
|
|
1924
|
+
includes.map((c) => [c.name, c.includeName, c.partOfInclude]);
|
|
1925
|
+
}
|
|
1926
|
+
```
|
|
1927
|
+
|
|
1928
|
+
On a legacy system (`AdtClientLegacy`) both are refused without a request: the
|
|
1929
|
+
7.40 discovery lists neither endpoint.
|
|
1930
|
+
|
|
1889
1931
|
### AdtUtils (Where-used)
|
|
1890
1932
|
|
|
1891
1933
|
Where-used is two requests, and both are yours:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/adt-clients",
|
|
3
|
-
"version": "43.0
|
|
3
|
+
"version": "43.1.0",
|
|
4
4
|
"description": "ADT clients for SAP ABAP systems - AdtClient and AdtRuntimeClient",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
128
|
"@biomejs/biome": "^2.4.4",
|
|
129
|
-
"@mcp-abap-adt/adt-strategies": "^0.
|
|
129
|
+
"@mcp-abap-adt/adt-strategies": "^0.20.0",
|
|
130
130
|
"@mcp-abap-adt/auth-providers": "^6.0.2",
|
|
131
131
|
"@mcp-abap-adt/connection": "^19.0.0",
|
|
132
132
|
"@mcp-abap-adt/interfaces-auth": "^7.5.0",
|