@babamba2/abap-mcp-adt-powerup 4.8.13 → 4.8.14
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/CHANGELOG.md +8 -0
- package/dist/handlers/gui_status/high/handleGetGuiStatus.d.ts +14 -2
- package/dist/handlers/gui_status/high/handleGetGuiStatus.d.ts.map +1 -1
- package/dist/handlers/gui_status/high/handleGetGuiStatus.js +24 -11
- package/dist/handlers/gui_status/high/handleGetGuiStatus.js.map +1 -1
- package/dist/lib/cuaFilter.d.ts +38 -0
- package/dist/lib/cuaFilter.d.ts.map +1 -0
- package/dist/lib/cuaFilter.js +132 -0
- package/dist/lib/cuaFilter.js.map +1 -0
- package/docs/user-guide/AVAILABLE_TOOLS.md +5 -3
- package/docs/user-guide/AVAILABLE_TOOLS_COMPACT.md +1 -1
- package/docs/user-guide/AVAILABLE_TOOLS_HIGH.md +5 -3
- package/docs/user-guide/AVAILABLE_TOOLS_LEGACY.md +5 -3
- package/docs/user-guide/AVAILABLE_TOOLS_LOW.md +1 -1
- package/docs/user-guide/AVAILABLE_TOOLS_READONLY.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [4.8.14] - 2026-10-28
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- **`GetGuiStatus`** answers with only what was asked for. `status_name` used to narrow the status list alone, so a large program interface still came back whole (15K+ tokens). It now narrows every table to that status: its SET functions, FUN texts, PFK keys, BUT toolbar and ACT / MEN / MTX menus; TIT / DOC / BIV are left out.
|
|
11
|
+
- New `function_codes`: keep only these function codes (narrows FUN / SET / PFK / BUT).
|
|
12
|
+
- New `format: "compact"`: `{ statuses: [{ code, type, functions: [{ code, text, icon?, fkey?, toolbar? }] }] }` — one line per function. `full` (default) keeps the CUA tables.
|
|
13
|
+
- A status still lists the empty-text ALV standard functions it copies; pass `function_codes` when you need a few captions.
|
|
14
|
+
|
|
7
15
|
## [4.8.13] - 2026-10-20
|
|
8
16
|
|
|
9
17
|
### Added
|
|
@@ -8,7 +8,7 @@ import type { HandlerContext } from '../../../lib/handlers/interfaces';
|
|
|
8
8
|
export declare const TOOL_DEFINITION: {
|
|
9
9
|
readonly name: "GetGuiStatus";
|
|
10
10
|
readonly available_in: readonly ["onprem", "legacy"];
|
|
11
|
-
readonly description: "Get ABAP GUI Status definition including statuses, function codes, menus, toolbars, and titles.";
|
|
11
|
+
readonly description: "Get ABAP GUI Status definition including statuses, function codes, menus, toolbars, and titles. A large program interface is big: pass status_name and/or function_codes to narrow every table, and format=\"compact\" for one line per function (code, text, icon, function key, toolbar).";
|
|
12
12
|
readonly inputSchema: {
|
|
13
13
|
readonly type: "object";
|
|
14
14
|
readonly properties: {
|
|
@@ -18,7 +18,19 @@ export declare const TOOL_DEFINITION: {
|
|
|
18
18
|
};
|
|
19
19
|
readonly status_name: {
|
|
20
20
|
readonly type: "string";
|
|
21
|
-
readonly description: "Optional:
|
|
21
|
+
readonly description: "Optional: one GUI Status name. Narrows every table to that status (its SET functions, FUN texts, PFK keys, BUT toolbar, ACT / MEN / MTX menus); TIT / DOC / BIV are left out. If omitted, returns all statuses.";
|
|
22
|
+
};
|
|
23
|
+
readonly function_codes: {
|
|
24
|
+
readonly type: "array";
|
|
25
|
+
readonly items: {
|
|
26
|
+
readonly type: "string";
|
|
27
|
+
};
|
|
28
|
+
readonly description: "Optional: function codes to keep (e.g. [\"SAVE\", \"CRPO\"]). Narrows FUN / SET / PFK / BUT to them.";
|
|
29
|
+
};
|
|
30
|
+
readonly format: {
|
|
31
|
+
readonly type: "string";
|
|
32
|
+
readonly enum: readonly ["full", "compact"];
|
|
33
|
+
readonly description: "full (default) = CUA tables; compact = { statuses: [{ code, type, functions: [{ code, text, icon?, fkey?, toolbar? }] }] }.";
|
|
22
34
|
};
|
|
23
35
|
};
|
|
24
36
|
readonly required: readonly ["program_name"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleGetGuiStatus.d.ts","sourceRoot":"","sources":["../../../../src/handlers/gui_status/high/handleGetGuiStatus.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"handleGetGuiStatus.d.ts","sourceRoot":"","sources":["../../../../src/handlers/gui_status/high/handleGetGuiStatus.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AASvE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgClB,CAAC;AAEX,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG;;;;;;GAuE5E"}
|
|
@@ -8,12 +8,13 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.TOOL_DEFINITION = void 0;
|
|
10
10
|
exports.handleGetGuiStatus = handleGetGuiStatus;
|
|
11
|
+
const cuaFilter_1 = require("../../../lib/cuaFilter");
|
|
11
12
|
const rfcBackend_1 = require("../../../lib/rfcBackend");
|
|
12
13
|
const utils_1 = require("../../../lib/utils");
|
|
13
14
|
exports.TOOL_DEFINITION = {
|
|
14
15
|
name: 'GetGuiStatus',
|
|
15
16
|
available_in: ['onprem', 'legacy'],
|
|
16
|
-
description: 'Get ABAP GUI Status definition including statuses, function codes, menus, toolbars, and titles.',
|
|
17
|
+
description: 'Get ABAP GUI Status definition including statuses, function codes, menus, toolbars, and titles. A large program interface is big: pass status_name and/or function_codes to narrow every table, and format="compact" for one line per function (code, text, icon, function key, toolbar).',
|
|
17
18
|
inputSchema: {
|
|
18
19
|
type: 'object',
|
|
19
20
|
properties: {
|
|
@@ -23,7 +24,17 @@ exports.TOOL_DEFINITION = {
|
|
|
23
24
|
},
|
|
24
25
|
status_name: {
|
|
25
26
|
type: 'string',
|
|
26
|
-
description: 'Optional:
|
|
27
|
+
description: 'Optional: one GUI Status name. Narrows every table to that status (its SET functions, FUN texts, PFK keys, BUT toolbar, ACT / MEN / MTX menus); TIT / DOC / BIV are left out. If omitted, returns all statuses.',
|
|
28
|
+
},
|
|
29
|
+
function_codes: {
|
|
30
|
+
type: 'array',
|
|
31
|
+
items: { type: 'string' },
|
|
32
|
+
description: 'Optional: function codes to keep (e.g. ["SAVE", "CRPO"]). Narrows FUN / SET / PFK / BUT to them.',
|
|
33
|
+
},
|
|
34
|
+
format: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
enum: ['full', 'compact'],
|
|
37
|
+
description: 'full (default) = CUA tables; compact = { statuses: [{ code, type, functions: [{ code, text, icon?, fkey?, toolbar? }] }] }.',
|
|
27
38
|
},
|
|
28
39
|
},
|
|
29
40
|
required: ['program_name'],
|
|
@@ -40,29 +51,31 @@ async function handleGetGuiStatus(context, params) {
|
|
|
40
51
|
}
|
|
41
52
|
const programName = args.program_name.toUpperCase();
|
|
42
53
|
const statusName = args.status_name?.toUpperCase();
|
|
54
|
+
const functionCodes = (Array.isArray(args.function_codes)
|
|
55
|
+
? args.function_codes
|
|
56
|
+
: String(args.function_codes ?? '').split(/[\s,]+/)).filter(Boolean);
|
|
57
|
+
const compact = args.format === 'compact';
|
|
43
58
|
logger?.info(`Getting GUI status: ${programName}${statusName ? ` / ${statusName}` : ''}`);
|
|
44
59
|
try {
|
|
45
60
|
const { result } = await (0, rfcBackend_1.callDispatch)(connection, 'CUA_FETCH', {
|
|
46
61
|
program: programName,
|
|
47
62
|
});
|
|
48
|
-
//
|
|
63
|
+
// Narrow every table to the requested status / function codes.
|
|
49
64
|
// /ui2/cl_json=>serialize default keeps ABAP field names UPPERCASE.
|
|
50
|
-
|
|
51
|
-
const
|
|
52
|
-
if (statusName && Array.isArray(staArr)) {
|
|
53
|
-
const filteredSta = staArr.filter((s) => s.CODE === statusName || s.code === statusName);
|
|
54
|
-
filteredResult = { ...result, STA: filteredSta };
|
|
55
|
-
}
|
|
65
|
+
const filteredResult = (0, cuaFilter_1.filterCua)(result, { statusName, functionCodes });
|
|
66
|
+
const definition = compact ? (0, cuaFilter_1.compactCua)(filteredResult) : filteredResult;
|
|
56
67
|
logger?.info(`✅ GetGuiStatus completed: ${programName}`);
|
|
57
68
|
return (0, utils_1.return_response)({
|
|
58
69
|
data: JSON.stringify({
|
|
59
70
|
success: true,
|
|
60
71
|
program_name: programName,
|
|
61
72
|
status_name: statusName || null,
|
|
73
|
+
...(functionCodes.length ? { function_codes: functionCodes } : {}),
|
|
62
74
|
type: 'CUAD',
|
|
63
|
-
|
|
75
|
+
format: compact ? 'compact' : 'full',
|
|
76
|
+
definition,
|
|
64
77
|
steps_completed: ['get_definition'],
|
|
65
|
-
}, null,
|
|
78
|
+
}, null, compact ? undefined : 1),
|
|
66
79
|
status: 200,
|
|
67
80
|
statusText: 'OK',
|
|
68
81
|
headers: {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleGetGuiStatus.js","sourceRoot":"","sources":["../../../../src/handlers/gui_status/high/handleGetGuiStatus.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"handleGetGuiStatus.js","sourceRoot":"","sources":["../../../../src/handlers/gui_status/high/handleGetGuiStatus.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AA8CH,gDAuEC;AAnHD,sDAA+D;AAE/D,wDAAuD;AACvD,8CAK4B;AAEf,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,cAAc;IACpB,YAAY,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAU;IAC3C,WAAW,EACT,2RAA2R;IAC7R,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uCAAuC;aACrD;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,iNAA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AAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5E,MAAM,EAAE,KAAK,CAAC,6BAA6B,YAAY,EAAE,CAAC,CAAC;QAC3D,OAAO,IAAA,oBAAY,EAAC,IAAI,KAAK,CAAC,6BAA6B,YAAY,EAAE,CAAC,CAAC,CAAC;IAC9E,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Narrowing of a fetched CUA definition (RS_CUA_INTERNAL_FETCH result) for
|
|
3
|
+
* GetGuiStatus, so a caller who asks for one status or a few function codes
|
|
4
|
+
* does not receive the whole program interface.
|
|
5
|
+
*
|
|
6
|
+
* Links between the tables (field names as serialized by /ui2/cl_json):
|
|
7
|
+
* STA.CODE ──SET.STATUS──▶ SET.FUNCTION ──▶ FUN.CODE (functions of a status)
|
|
8
|
+
* STA.PFKCODE ─▶ PFK.CODE (function keys: PFNO → FUNCODE)
|
|
9
|
+
* STA.PFKCODE ─▶ BUT.PFK_CODE, STA.BUTCODE ─▶ BUT.CODE (application toolbar: PFNO)
|
|
10
|
+
* STA.ACTCODE ─▶ ACT.CODE (menu bar) ─▶ MEN / MTX by the menu codes it names
|
|
11
|
+
*/
|
|
12
|
+
type Cua = Record<string, unknown>;
|
|
13
|
+
export interface CuaFilter {
|
|
14
|
+
statusName?: string;
|
|
15
|
+
functionCodes?: string[];
|
|
16
|
+
}
|
|
17
|
+
/** The CUA reduced to the given status (and its functions, keys, toolbar,
|
|
18
|
+
* menus) and / or the given function codes. ADM is kept; TIT, DOC and BIV are
|
|
19
|
+
* dropped when a status is given (they do not belong to a status). */
|
|
20
|
+
export declare function filterCua(cua: Cua, { statusName, functionCodes }: CuaFilter): Cua;
|
|
21
|
+
export interface CompactFunction {
|
|
22
|
+
code: string;
|
|
23
|
+
text: string;
|
|
24
|
+
icon?: string;
|
|
25
|
+
fkey?: string;
|
|
26
|
+
toolbar?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface CompactStatus {
|
|
29
|
+
code: string;
|
|
30
|
+
type: string;
|
|
31
|
+
functions: CompactFunction[];
|
|
32
|
+
}
|
|
33
|
+
/** One line per function of each status: code, text, icon, function key, on the toolbar. */
|
|
34
|
+
export declare function compactCua(cua: Cua): {
|
|
35
|
+
statuses: CompactStatus[];
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=cuaFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cuaFilter.d.ts","sourceRoot":"","sources":["../../src/lib/cuaFilter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,KAAK,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAWnC,MAAM,WAAW,SAAS;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED;;uEAEuE;AACvE,wBAAgB,SAAS,CACvB,GAAG,EAAE,GAAG,EACR,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,SAAS,GACvC,GAAG,CAoEL;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AACD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,eAAe,EAAE,CAAC;CAC9B;AAED,4FAA4F;AAC5F,wBAAgB,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG;IAAE,QAAQ,EAAE,aAAa,EAAE,CAAA;CAAE,CA4ClE"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Narrowing of a fetched CUA definition (RS_CUA_INTERNAL_FETCH result) for
|
|
4
|
+
* GetGuiStatus, so a caller who asks for one status or a few function codes
|
|
5
|
+
* does not receive the whole program interface.
|
|
6
|
+
*
|
|
7
|
+
* Links between the tables (field names as serialized by /ui2/cl_json):
|
|
8
|
+
* STA.CODE ──SET.STATUS──▶ SET.FUNCTION ──▶ FUN.CODE (functions of a status)
|
|
9
|
+
* STA.PFKCODE ─▶ PFK.CODE (function keys: PFNO → FUNCODE)
|
|
10
|
+
* STA.PFKCODE ─▶ BUT.PFK_CODE, STA.BUTCODE ─▶ BUT.CODE (application toolbar: PFNO)
|
|
11
|
+
* STA.ACTCODE ─▶ ACT.CODE (menu bar) ─▶ MEN / MTX by the menu codes it names
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.filterCua = filterCua;
|
|
15
|
+
exports.compactCua = compactCua;
|
|
16
|
+
const rows = (cua, table) => {
|
|
17
|
+
const v = cua?.[table] ?? cua?.[table.toLowerCase()];
|
|
18
|
+
return Array.isArray(v) ? v : [];
|
|
19
|
+
};
|
|
20
|
+
const str = (r, field) => String(r?.[field] ?? r?.[field.toLowerCase()] ?? '')
|
|
21
|
+
.trim()
|
|
22
|
+
.toUpperCase();
|
|
23
|
+
/** The CUA reduced to the given status (and its functions, keys, toolbar,
|
|
24
|
+
* menus) and / or the given function codes. ADM is kept; TIT, DOC and BIV are
|
|
25
|
+
* dropped when a status is given (they do not belong to a status). */
|
|
26
|
+
function filterCua(cua, { statusName, functionCodes }) {
|
|
27
|
+
if (!cua || (!statusName && !functionCodes?.length))
|
|
28
|
+
return cua;
|
|
29
|
+
const out = { ...cua };
|
|
30
|
+
const fcodes = functionCodes?.length
|
|
31
|
+
? new Set(functionCodes.map((c) => c.trim().toUpperCase()))
|
|
32
|
+
: null;
|
|
33
|
+
if (statusName) {
|
|
34
|
+
const st = statusName.toUpperCase();
|
|
35
|
+
const sta = rows(cua, 'STA').filter((r) => str(r, 'CODE') === st);
|
|
36
|
+
const pfk = new Set(sta.map((r) => str(r, 'PFKCODE')).filter(Boolean));
|
|
37
|
+
const but = new Set(sta.map((r) => str(r, 'BUTCODE')).filter(Boolean));
|
|
38
|
+
const act = new Set(sta.map((r) => str(r, 'ACTCODE')).filter(Boolean));
|
|
39
|
+
const set = rows(cua, 'SET').filter((r) => str(r, 'STATUS') === st);
|
|
40
|
+
const inStatus = new Set(set.map((r) => str(r, 'FUNCTION')));
|
|
41
|
+
const actRows = rows(cua, 'ACT').filter((r) => act.has(str(r, 'CODE')));
|
|
42
|
+
// menus named by the menu bar, and their sub-menus (one level per pass)
|
|
43
|
+
const menus = new Set();
|
|
44
|
+
const collect = (rs) => {
|
|
45
|
+
for (const r of rs)
|
|
46
|
+
for (const v of Object.values(r))
|
|
47
|
+
if (typeof v === 'string' && v.trim())
|
|
48
|
+
menus.add(v.trim().toUpperCase());
|
|
49
|
+
};
|
|
50
|
+
collect(actRows);
|
|
51
|
+
let menRows = [];
|
|
52
|
+
for (let i = 0; i < 4; i++) {
|
|
53
|
+
menRows = rows(cua, 'MEN').filter((r) => menus.has(str(r, 'CODE')));
|
|
54
|
+
const before = menus.size;
|
|
55
|
+
collect(menRows);
|
|
56
|
+
if (menus.size === before)
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
Object.assign(out, {
|
|
60
|
+
STA: sta,
|
|
61
|
+
SET: set,
|
|
62
|
+
FUN: rows(cua, 'FUN').filter((r) => inStatus.has(str(r, 'CODE'))),
|
|
63
|
+
PFK: rows(cua, 'PFK').filter((r) => pfk.has(str(r, 'CODE'))),
|
|
64
|
+
BUT: rows(cua, 'BUT').filter((r) => pfk.has(str(r, 'PFK_CODE')) && (!but.size || but.has(str(r, 'CODE')))),
|
|
65
|
+
ACT: actRows,
|
|
66
|
+
MEN: menRows,
|
|
67
|
+
MTX: rows(cua, 'MTX').filter((r) => menus.has(str(r, 'CODE'))),
|
|
68
|
+
});
|
|
69
|
+
for (const t of ['TIT', 'DOC', 'BIV', 'tit', 'doc', 'biv'])
|
|
70
|
+
delete out[t];
|
|
71
|
+
for (const t of ['sta', 'set', 'fun', 'pfk', 'but', 'act', 'men', 'mtx'])
|
|
72
|
+
delete out[t];
|
|
73
|
+
}
|
|
74
|
+
if (fcodes) {
|
|
75
|
+
const pfkRows = rows(out, 'PFK').filter((r) => fcodes.has(str(r, 'FUNCODE')));
|
|
76
|
+
const pfnos = new Set(pfkRows.map((r) => `${str(r, 'CODE')}/${str(r, 'PFNO')}`));
|
|
77
|
+
Object.assign(out, {
|
|
78
|
+
FUN: rows(out, 'FUN').filter((r) => fcodes.has(str(r, 'CODE'))),
|
|
79
|
+
SET: rows(out, 'SET').filter((r) => fcodes.has(str(r, 'FUNCTION'))),
|
|
80
|
+
PFK: pfkRows,
|
|
81
|
+
BUT: rows(out, 'BUT').filter((r) => pfnos.has(`${str(r, 'PFK_CODE')}/${str(r, 'PFNO')}`)),
|
|
82
|
+
});
|
|
83
|
+
for (const t of ['fun', 'set', 'pfk', 'but'])
|
|
84
|
+
delete out[t];
|
|
85
|
+
}
|
|
86
|
+
return out;
|
|
87
|
+
}
|
|
88
|
+
/** One line per function of each status: code, text, icon, function key, on the toolbar. */
|
|
89
|
+
function compactCua(cua) {
|
|
90
|
+
const fun = new Map();
|
|
91
|
+
for (const r of rows(cua, 'FUN')) {
|
|
92
|
+
const c = str(r, 'CODE');
|
|
93
|
+
if (!fun.has(c) || (!fun.get(c)?.FUN_TEXT && r.FUN_TEXT))
|
|
94
|
+
fun.set(c, r);
|
|
95
|
+
}
|
|
96
|
+
const statuses = rows(cua, 'STA').map((s) => {
|
|
97
|
+
const code = str(s, 'CODE');
|
|
98
|
+
const pfk = str(s, 'PFKCODE');
|
|
99
|
+
const butCode = str(s, 'BUTCODE');
|
|
100
|
+
const keys = new Map();
|
|
101
|
+
for (const k of rows(cua, 'PFK').filter((r) => str(r, 'CODE') === pfk))
|
|
102
|
+
if (!keys.has(str(k, 'FUNCODE')))
|
|
103
|
+
keys.set(str(k, 'FUNCODE'), str(k, 'PFNO'));
|
|
104
|
+
const onBar = new Set(rows(cua, 'BUT')
|
|
105
|
+
.filter((r) => str(r, 'PFK_CODE') === pfk &&
|
|
106
|
+
(!butCode || str(r, 'CODE') === butCode))
|
|
107
|
+
.map((r) => str(r, 'PFNO')));
|
|
108
|
+
const codes = rows(cua, 'SET')
|
|
109
|
+
.filter((r) => str(r, 'STATUS') === code)
|
|
110
|
+
.map((r) => str(r, 'FUNCTION'));
|
|
111
|
+
const functions = [...new Set(codes)].map((c) => {
|
|
112
|
+
const f = fun.get(c) ?? {};
|
|
113
|
+
const fn = {
|
|
114
|
+
code: c,
|
|
115
|
+
text: String(f.FUN_TEXT || f.TEXT_NAME || '').trim(),
|
|
116
|
+
};
|
|
117
|
+
const icon = String(f.ICON_ID || '').trim();
|
|
118
|
+
if (icon)
|
|
119
|
+
fn.icon = icon;
|
|
120
|
+
const pfno = keys.get(c);
|
|
121
|
+
if (pfno) {
|
|
122
|
+
fn.fkey = pfno;
|
|
123
|
+
if (onBar.has(pfno))
|
|
124
|
+
fn.toolbar = true;
|
|
125
|
+
}
|
|
126
|
+
return fn;
|
|
127
|
+
});
|
|
128
|
+
return { code, type: str(s, 'MODAL'), functions };
|
|
129
|
+
});
|
|
130
|
+
return { statuses };
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=cuaFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cuaFilter.js","sourceRoot":"","sources":["../../src/lib/cuaFilter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;AAsBH,8BAuEC;AAgBD,gCA4CC;AApJD,MAAM,IAAI,GAAG,CAAC,GAAQ,EAAE,KAAa,EAAS,EAAE;IAC9C,MAAM,CAAC,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,KAAK,CAAC,WAAW,EAA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QAClC,MAAM,SAAS,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YAC9C,MAAM,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YAC3B,MAAM,EAAE,GAAoB;gBAC1B,IAAI,EAAE,CAAC;gBACP,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE;aACrD,CAAC;YACF,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;YAC5C,IAAI,IAAI;gBAAE,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;YACzB,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACzB,IAAI,IAAI,EAAE,CAAC;gBACT,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;gBACf,IAAI,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;oBAAE,EAAE,CAAC,OAAO,GAAG,IAAI,CAAC;YACzC,CAAC;YACD,OAAO,EAAE,CAAC;QACZ,CAAC,CAAC,CAAC;QACH,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC;IACpD,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,QAAQ,EAAE,CAAC;AACtB,CAAC"}
|
|
@@ -2511,13 +2511,15 @@ Note: All provided parameters completely replace existing values. Use GetDomain
|
|
|
2511
2511
|
|
|
2512
2512
|
<a id="getguistatus-high-level-gui-status"></a>
|
|
2513
2513
|
#### GetGuiStatus (High-Level / Gui Status)
|
|
2514
|
-
**Description:** Get ABAP GUI Status definition including statuses, function codes, menus, toolbars, and titles.
|
|
2514
|
+
**Description:** Get ABAP GUI Status definition including statuses, function codes, menus, toolbars, and titles. A large program interface is big: pass status_name and/or function_codes to narrow every table, and format="compact" for one line per function (code, text, icon, function key, toolbar).
|
|
2515
2515
|
|
|
2516
2516
|
**Source:** `src/handlers/gui_status/high/handleGetGuiStatus.ts`
|
|
2517
2517
|
|
|
2518
2518
|
**Parameters:**
|
|
2519
|
+
- `format` (string, optional) - full (default) = CUA tables; compact = { statuses: [{ code, type, functions: [{ code, text, icon?, fkey?, toolbar? }] }] }.
|
|
2520
|
+
- `function_codes` (array, optional) - Optional: function codes to keep (e.g. ["SAVE", "CRPO"]). Narrows FUN / SET / PFK / BUT to them.
|
|
2519
2521
|
- `program_name` (string, required) - Parent program name (e.g., SAPMV45A).
|
|
2520
|
-
- `status_name` (string, optional) - Optional:
|
|
2522
|
+
- `status_name` (string, optional) - Optional: one GUI Status name. Narrows every table to that status (its SET functions, FUN texts, PFK keys, BUT toolbar, ACT / MEN / MTX menus); TIT / DOC / BIV are left out. If omitted, returns all statuses.
|
|
2521
2523
|
|
|
2522
2524
|
---
|
|
2523
2525
|
|
|
@@ -5478,4 +5480,4 @@ Note: All provided parameters completely replace existing values. Use GetDomain
|
|
|
5478
5480
|
|
|
5479
5481
|
---
|
|
5480
5482
|
|
|
5481
|
-
*Last updated: 2026-10-
|
|
5483
|
+
*Last updated: 2026-10-28*
|
|
@@ -1289,13 +1289,15 @@ Note: All provided parameters completely replace existing values. Use GetDomain
|
|
|
1289
1289
|
|
|
1290
1290
|
<a id="getguistatus-high-level-gui-status"></a>
|
|
1291
1291
|
#### GetGuiStatus (High-Level / Gui Status)
|
|
1292
|
-
**Description:** Get ABAP GUI Status definition including statuses, function codes, menus, toolbars, and titles.
|
|
1292
|
+
**Description:** Get ABAP GUI Status definition including statuses, function codes, menus, toolbars, and titles. A large program interface is big: pass status_name and/or function_codes to narrow every table, and format="compact" for one line per function (code, text, icon, function key, toolbar).
|
|
1293
1293
|
|
|
1294
1294
|
**Source:** `src/handlers/gui_status/high/handleGetGuiStatus.ts`
|
|
1295
1295
|
|
|
1296
1296
|
**Parameters:**
|
|
1297
|
+
- `format` (string, optional) - full (default) = CUA tables; compact = { statuses: [{ code, type, functions: [{ code, text, icon?, fkey?, toolbar? }] }] }.
|
|
1298
|
+
- `function_codes` (array, optional) - Optional: function codes to keep (e.g. ["SAVE", "CRPO"]). Narrows FUN / SET / PFK / BUT to them.
|
|
1297
1299
|
- `program_name` (string, required) - Parent program name (e.g., SAPMV45A).
|
|
1298
|
-
- `status_name` (string, optional) - Optional:
|
|
1300
|
+
- `status_name` (string, optional) - Optional: one GUI Status name. Narrows every table to that status (its SET functions, FUN texts, PFK keys, BUT toolbar, ACT / MEN / MTX menus); TIT / DOC / BIV are left out. If omitted, returns all statuses.
|
|
1299
1301
|
|
|
1300
1302
|
---
|
|
1301
1303
|
|
|
@@ -2252,4 +2254,4 @@ Note: All provided parameters completely replace existing values. Use GetDomain
|
|
|
2252
2254
|
|
|
2253
2255
|
---
|
|
2254
2256
|
|
|
2255
|
-
*Last updated: 2026-10-
|
|
2257
|
+
*Last updated: 2026-10-28*
|
|
@@ -1072,15 +1072,17 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1072
1072
|
|
|
1073
1073
|
<a id="getguistatus-high-level-gui-status"></a>
|
|
1074
1074
|
#### GetGuiStatus (High-Level / Gui Status)
|
|
1075
|
-
**Description:** Get ABAP GUI Status definition including statuses, function codes, menus, toolbars, and titles.
|
|
1075
|
+
**Description:** Get ABAP GUI Status definition including statuses, function codes, menus, toolbars, and titles. A large program interface is big: pass status_name and/or function_codes to narrow every table, and format="compact" for one line per function (code, text, icon, function key, toolbar).
|
|
1076
1076
|
|
|
1077
1077
|
**Source:** `src/handlers/gui_status/high/handleGetGuiStatus.ts`
|
|
1078
1078
|
|
|
1079
1079
|
**Available in:** `onprem`, `legacy`
|
|
1080
1080
|
|
|
1081
1081
|
**Parameters:**
|
|
1082
|
+
- `format` (string, optional) - full (default) = CUA tables; compact = { statuses: [{ code, type, functions: [{ code, text, icon?, fkey?, toolbar? }] }] }.
|
|
1083
|
+
- `function_codes` (array, optional) - Optional: function codes to keep (e.g. ["SAVE", "CRPO"]). Narrows FUN / SET / PFK / BUT to them.
|
|
1082
1084
|
- `program_name` (string, required) - Parent program name (e.g., SAPMV45A).
|
|
1083
|
-
- `status_name` (string, optional) - Optional:
|
|
1085
|
+
- `status_name` (string, optional) - Optional: one GUI Status name. Narrows every table to that status (its SET functions, FUN texts, PFK keys, BUT toolbar, ACT / MEN / MTX menus); TIT / DOC / BIV are left out. If omitted, returns all statuses.
|
|
1084
1086
|
|
|
1085
1087
|
---
|
|
1086
1088
|
|
|
@@ -3006,4 +3008,4 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
3006
3008
|
|
|
3007
3009
|
---
|
|
3008
3010
|
|
|
3009
|
-
*Last updated: 2026-10-
|
|
3011
|
+
*Last updated: 2026-10-28*
|