@babamba2/abap-mcp-adt-powerup 4.8.12 → 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 +30 -1
- 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/handlers/smartform/high/handleCreateSmartForm.d.ts +71 -0
- package/dist/handlers/smartform/high/handleCreateSmartForm.d.ts.map +1 -0
- package/dist/handlers/smartform/high/handleCreateSmartForm.js +163 -0
- package/dist/handlers/smartform/high/handleCreateSmartForm.js.map +1 -0
- package/dist/handlers/smartform/high/handleDeleteSmartForm.d.ts +41 -0
- package/dist/handlers/smartform/high/handleDeleteSmartForm.d.ts.map +1 -0
- package/dist/handlers/smartform/high/handleDeleteSmartForm.js +76 -0
- package/dist/handlers/smartform/high/handleDeleteSmartForm.js.map +1 -0
- package/dist/handlers/system/readonly/handleGetSmartFormContent.d.ts +77 -0
- package/dist/handlers/system/readonly/handleGetSmartFormContent.d.ts.map +1 -0
- package/dist/handlers/system/readonly/handleGetSmartFormContent.js +98 -0
- package/dist/handlers/system/readonly/handleGetSmartFormContent.js.map +1 -0
- package/dist/handlers/system/readonly/handleGetSmartFormLayout.d.ts +47 -0
- package/dist/handlers/system/readonly/handleGetSmartFormLayout.d.ts.map +1 -0
- package/dist/handlers/system/readonly/handleGetSmartFormLayout.js +70 -0
- package/dist/handlers/system/readonly/handleGetSmartFormLayout.js.map +1 -0
- package/dist/handlers/system/readonly/handleRenderSmartForm.d.ts +65 -0
- package/dist/handlers/system/readonly/handleRenderSmartForm.d.ts.map +1 -0
- package/dist/handlers/system/readonly/handleRenderSmartForm.js +111 -0
- package/dist/handlers/system/readonly/handleRenderSmartForm.js.map +1 -0
- package/dist/handlers/system/readonly/runtimeFeedsHelper.d.ts +1 -1
- package/dist/handlers/system/readonly/runtimeFeedsHelper.d.ts.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/dist/lib/handlers/groups/HighLevelHandlersGroup.d.ts.map +1 -1
- package/dist/lib/handlers/groups/HighLevelHandlersGroup.js +11 -0
- package/dist/lib/handlers/groups/HighLevelHandlersGroup.js.map +1 -1
- package/dist/lib/handlers/groups/ReadOnlyHandlersGroup.d.ts.map +1 -1
- package/dist/lib/handlers/groups/ReadOnlyHandlersGroup.js +15 -0
- package/dist/lib/handlers/groups/ReadOnlyHandlersGroup.js.map +1 -1
- package/dist/lib/legacyTableRead.d.ts.map +1 -1
- package/dist/lib/legacyTableRead.js +19 -9
- package/dist/lib/legacyTableRead.js.map +1 -1
- package/dist/lib/smartFormContent.d.ts +277 -0
- package/dist/lib/smartFormContent.d.ts.map +1 -0
- package/dist/lib/smartFormContent.js +1130 -0
- package/dist/lib/smartFormContent.js.map +1 -0
- package/dist/lib/smartFormLayout.d.ts +83 -0
- package/dist/lib/smartFormLayout.d.ts.map +1 -0
- package/dist/lib/smartFormLayout.js +236 -0
- package/dist/lib/smartFormLayout.js.map +1 -0
- package/dist/lib/smartFormRender.d.ts +17 -0
- package/dist/lib/smartFormRender.d.ts.map +1 -0
- package/dist/lib/smartFormRender.js +112 -0
- package/dist/lib/smartFormRender.js.map +1 -0
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/docs/user-guide/AVAILABLE_TOOLS.md +1041 -204
- package/docs/user-guide/AVAILABLE_TOOLS_COMPACT.md +2 -1
- package/docs/user-guide/AVAILABLE_TOOLS_HIGH.md +472 -85
- package/docs/user-guide/AVAILABLE_TOOLS_LEGACY.md +957 -78
- package/docs/user-guide/AVAILABLE_TOOLS_LOW.md +271 -60
- package/docs/user-guide/AVAILABLE_TOOLS_READONLY.md +299 -60
- package/package.json +19 -19
|
@@ -5,20 +5,25 @@ Generated from code in `src/handlers/**` (not from docs).
|
|
|
5
5
|
Tools available on legacy SAP systems (BASIS < 7.50) connected via RFC.
|
|
6
6
|
Legacy systems support a subset of tools — primarily Class, Interface, View, Program, Function Group/Module, Package (read/update/delete), Include, Unit Test, and common utilities.
|
|
7
7
|
|
|
8
|
-
- Total tools:
|
|
9
|
-
- Read-Only:
|
|
10
|
-
- High-Level:
|
|
11
|
-
- Low-Level:
|
|
8
|
+
- Total tools: 168
|
|
9
|
+
- Read-Only: 25
|
|
10
|
+
- High-Level: 71
|
|
11
|
+
- Low-Level: 72
|
|
12
12
|
|
|
13
13
|
## Navigation
|
|
14
14
|
|
|
15
15
|
- [Read-Only Group](#read-only-group)
|
|
16
16
|
- [Class](#read-only-class)
|
|
17
17
|
- [ReadClass](#readclass-read-only-class)
|
|
18
|
+
- [Enhancement](#read-only-enhancement)
|
|
19
|
+
- [GetBadiImplementations](#getbadiimplementations-read-only-enhancement)
|
|
18
20
|
- [Function Group](#read-only-function-group)
|
|
19
21
|
- [ReadFunctionGroup](#readfunctiongroup-read-only-function-group)
|
|
20
22
|
- [Function Module](#read-only-function-module)
|
|
21
23
|
- [ReadFunctionModule](#readfunctionmodule-read-only-function-module)
|
|
24
|
+
- [Gui Status](#read-only-gui-status)
|
|
25
|
+
- [GetGuiStatusList](#getguistatuslist-read-only-gui-status)
|
|
26
|
+
- [ReadGuiStatus](#readguistatus-read-only-gui-status)
|
|
22
27
|
- [Include](#read-only-include)
|
|
23
28
|
- [GetInclude](#getinclude-read-only-include)
|
|
24
29
|
- [GetIncludesList](#getincludeslist-read-only-include)
|
|
@@ -30,6 +35,19 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
30
35
|
- [Program](#read-only-program)
|
|
31
36
|
- [GetProgFullCode](#getprogfullcode-read-only-program)
|
|
32
37
|
- [ReadProgram](#readprogram-read-only-program)
|
|
38
|
+
- [Screen](#read-only-screen)
|
|
39
|
+
- [GetScreensList](#getscreenslist-read-only-screen)
|
|
40
|
+
- [ReadScreen](#readscreen-read-only-screen)
|
|
41
|
+
- [System](#read-only-system)
|
|
42
|
+
- [GetInactiveObjects](#getinactiveobjects-read-only-system)
|
|
43
|
+
- [GetJobUsage](#getjobusage-read-only-system)
|
|
44
|
+
- [GetSmartFormContent](#getsmartformcontent-read-only-system)
|
|
45
|
+
- [GetSmartFormLayout](#getsmartformlayout-read-only-system)
|
|
46
|
+
- [GetTcodeUsage](#gettcodeusage-read-only-system)
|
|
47
|
+
- [GetUsageSnippets](#getusagesnippets-read-only-system)
|
|
48
|
+
- [GetWhereUsed](#getwhereused-read-only-system)
|
|
49
|
+
- [ReloadProfile](#reloadprofile-read-only-system)
|
|
50
|
+
- [RenderSmartForm](#rendersmartform-read-only-system)
|
|
33
51
|
- [View](#read-only-view)
|
|
34
52
|
- [ReadView](#readview-read-only-view)
|
|
35
53
|
- [High-Level Group](#high-level-group)
|
|
@@ -50,6 +68,8 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
50
68
|
- [UpdateLocalMacros](#updatelocalmacros-high-level-class)
|
|
51
69
|
- [UpdateLocalTestClass](#updatelocaltestclass-high-level-class)
|
|
52
70
|
- [UpdateLocalTypes](#updatelocaltypes-high-level-class)
|
|
71
|
+
- [Common](#high-level-common)
|
|
72
|
+
- [ActivateObjects](#activateobjects-high-level-common)
|
|
53
73
|
- [Function](#high-level-function)
|
|
54
74
|
- [CreateFunctionGroup](#createfunctiongroup-high-level-function)
|
|
55
75
|
- [CreateFunctionModule](#createfunctionmodule-high-level-function)
|
|
@@ -61,6 +81,16 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
61
81
|
- [Function Module](#high-level-function-module)
|
|
62
82
|
- [DeleteFunctionModule](#deletefunctionmodule-high-level-function-module)
|
|
63
83
|
- [GetFunctionModule](#getfunctionmodule-high-level-function-module)
|
|
84
|
+
- [Gui Status](#high-level-gui-status)
|
|
85
|
+
- [CreateGuiStatus](#createguistatus-high-level-gui-status)
|
|
86
|
+
- [DeleteGuiStatus](#deleteguistatus-high-level-gui-status)
|
|
87
|
+
- [GetGuiStatus](#getguistatus-high-level-gui-status)
|
|
88
|
+
- [PatchGuiStatus](#patchguistatus-high-level-gui-status)
|
|
89
|
+
- [UpdateGuiStatus](#updateguistatus-high-level-gui-status)
|
|
90
|
+
- [Include](#high-level-include)
|
|
91
|
+
- [CreateInclude](#createinclude-high-level-include)
|
|
92
|
+
- [DeleteInclude](#deleteinclude-high-level-include)
|
|
93
|
+
- [UpdateInclude](#updateinclude-high-level-include)
|
|
64
94
|
- [Interface](#high-level-interface)
|
|
65
95
|
- [CreateInterface](#createinterface-high-level-interface)
|
|
66
96
|
- [DeleteInterface](#deleteinterface-high-level-interface)
|
|
@@ -73,6 +103,21 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
73
103
|
- [DeleteProgram](#deleteprogram-high-level-program)
|
|
74
104
|
- [GetProgram](#getprogram-high-level-program)
|
|
75
105
|
- [UpdateProgram](#updateprogram-high-level-program)
|
|
106
|
+
- [Screen](#high-level-screen)
|
|
107
|
+
- [CreateScreen](#createscreen-high-level-screen)
|
|
108
|
+
- [DeleteScreen](#deletescreen-high-level-screen)
|
|
109
|
+
- [GetScreen](#getscreen-high-level-screen)
|
|
110
|
+
- [UpdateScreen](#updatescreen-high-level-screen)
|
|
111
|
+
- [Smartform](#high-level-smartform)
|
|
112
|
+
- [CreateSmartForm](#createsmartform-high-level-smartform)
|
|
113
|
+
- [DeleteSmartForm](#deletesmartform-high-level-smartform)
|
|
114
|
+
- [Text Element](#high-level-text-element)
|
|
115
|
+
- [CreateTextElement](#createtextelement-high-level-text-element)
|
|
116
|
+
- [DeleteTextElement](#deletetextelement-high-level-text-element)
|
|
117
|
+
- [GetTextElement](#gettextelement-high-level-text-element)
|
|
118
|
+
- [ReadTextElementsBulk](#readtextelementsbulk-high-level-text-element)
|
|
119
|
+
- [UpdateTextElement](#updatetextelement-high-level-text-element)
|
|
120
|
+
- [WriteTextElementsBulk](#writetextelementsbulk-high-level-text-element)
|
|
76
121
|
- [Unit Test](#high-level-unit-test)
|
|
77
122
|
- [CreateCdsUnitTest](#createcdsunittest-high-level-unit-test)
|
|
78
123
|
- [CreateUnitTest](#createunittest-high-level-unit-test)
|
|
@@ -127,6 +172,13 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
127
172
|
- [UpdateFunctionModuleLow](#updatefunctionmodulelow-low-level-function)
|
|
128
173
|
- [ValidateFunctionGroupLow](#validatefunctiongrouplow-low-level-function)
|
|
129
174
|
- [ValidateFunctionModuleLow](#validatefunctionmodulelow-low-level-function)
|
|
175
|
+
- [Gui Status](#low-level-gui-status)
|
|
176
|
+
- [ActivateGuiStatusLow](#activateguistatuslow-low-level-gui-status)
|
|
177
|
+
- [CreateGuiStatusLow](#createguistatuslow-low-level-gui-status)
|
|
178
|
+
- [DeleteGuiStatusLow](#deleteguistatuslow-low-level-gui-status)
|
|
179
|
+
- [LockGuiStatusLow](#lockguistatuslow-low-level-gui-status)
|
|
180
|
+
- [UnlockGuiStatusLow](#unlockguistatuslow-low-level-gui-status)
|
|
181
|
+
- [UpdateGuiStatusLow](#updateguistatuslow-low-level-gui-status)
|
|
130
182
|
- [Interface](#low-level-interface)
|
|
131
183
|
- [ActivateInterfaceLow](#activateinterfacelow-low-level-interface)
|
|
132
184
|
- [CheckInterfaceLow](#checkinterfacelow-low-level-interface)
|
|
@@ -151,6 +203,13 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
151
203
|
- [UnlockProgramLow](#unlockprogramlow-low-level-program)
|
|
152
204
|
- [UpdateProgramLow](#updateprogramlow-low-level-program)
|
|
153
205
|
- [ValidateProgramLow](#validateprogramlow-low-level-program)
|
|
206
|
+
- [Screen](#low-level-screen)
|
|
207
|
+
- [ActivateScreenLow](#activatescreenlow-low-level-screen)
|
|
208
|
+
- [CreateScreenLow](#createscreenlow-low-level-screen)
|
|
209
|
+
- [DeleteScreenLow](#deletescreenlow-low-level-screen)
|
|
210
|
+
- [LockScreenLow](#lockscreenlow-low-level-screen)
|
|
211
|
+
- [UnlockScreenLow](#unlockscreenlow-low-level-screen)
|
|
212
|
+
- [UpdateScreenLow](#updatescreenlow-low-level-screen)
|
|
154
213
|
- [View](#low-level-view)
|
|
155
214
|
- [ActivateViewLow](#activateviewlow-low-level-view)
|
|
156
215
|
- [CheckViewLow](#checkviewlow-low-level-view)
|
|
@@ -179,7 +238,26 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
179
238
|
|
|
180
239
|
**Parameters:**
|
|
181
240
|
- `class_name` (string, required) - Class name (e.g., ZCL_MY_CLASS).
|
|
182
|
-
- `version` (string, optional (default: active)) - Version to read:
|
|
241
|
+
- `version` (string, optional (default: active)) - Version to read: "active" (default) or "inactive".
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
<a id="read-only-enhancement"></a>
|
|
246
|
+
### Read-Only / Enhancement
|
|
247
|
+
|
|
248
|
+
<a id="getbadiimplementations-read-only-enhancement"></a>
|
|
249
|
+
#### GetBadiImplementations (Read-Only / Enhancement)
|
|
250
|
+
**Description:** [read-only] Find implementations of a (classic) BAdI definition. Use during symptom analysis when a standard SAP BAdI is implicated — answers 'which Z class extends this standard BAdI?'. Example flow: PO BAPI error → ME_PROCESS_PO_CUST → list Z impls → read the impl class source via GetClass to find the bug. Currently ECC-only (routes through the ZMCP_ADT_DDIC_BADI bridge FM). Classic BAdI only; kernel BAdI returns kind='unknown'.
|
|
251
|
+
|
|
252
|
+
**Source:** `src/handlers/enhancement/readonly/handleGetBadiImplementations.ts`
|
|
253
|
+
|
|
254
|
+
**Available in:** `onprem`, `legacy`
|
|
255
|
+
|
|
256
|
+
**Parameters:**
|
|
257
|
+
- `active_only` (boolean, optional (default: true)) - Restrict to active implementations only. Default: true.
|
|
258
|
+
- `badi_definition` (string, required) - BAdI definition name (e.g., ME_PROCESS_PO_CUST). Will be uppercased.
|
|
259
|
+
- `customer_only` (boolean, optional (default: true)) - Restrict to Z*/Y* implementations. Default: true. Set false to include SAP-shipped implementations.
|
|
260
|
+
- `include_methods` (boolean, optional (default: true)) - Include the list of redefined method names per implementation (from SXC_EXIT). Default: true.
|
|
183
261
|
|
|
184
262
|
---
|
|
185
263
|
|
|
@@ -196,7 +274,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
196
274
|
|
|
197
275
|
**Parameters:**
|
|
198
276
|
- `function_group_name` (string, required) - Function group name (e.g., Z_MY_FG).
|
|
199
|
-
- `version` (string, optional (default: active)) - Version to read:
|
|
277
|
+
- `version` (string, optional (default: active)) - Version to read: "active" (default) or "inactive".
|
|
200
278
|
|
|
201
279
|
---
|
|
202
280
|
|
|
@@ -214,7 +292,36 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
214
292
|
**Parameters:**
|
|
215
293
|
- `function_group_name` (string, required) - Function group name containing the function module (e.g., Z_MY_FG).
|
|
216
294
|
- `function_module_name` (string, required) - Function module name (e.g., Z_MY_FM).
|
|
217
|
-
- `version` (string, optional (default: active)) - Version to read:
|
|
295
|
+
- `version` (string, optional (default: active)) - Version to read: "active" (default) or "inactive".
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
<a id="read-only-gui-status"></a>
|
|
300
|
+
### Read-Only / Gui Status
|
|
301
|
+
|
|
302
|
+
<a id="getguistatuslist-read-only-gui-status"></a>
|
|
303
|
+
#### GetGuiStatusList (Read-Only / Gui Status)
|
|
304
|
+
**Description:** [read-only] List all GUI statuses belonging to an ABAP program.
|
|
305
|
+
|
|
306
|
+
**Source:** `src/handlers/gui_status/readonly/handleGetGuiStatusList.ts`
|
|
307
|
+
|
|
308
|
+
**Available in:** `onprem`, `legacy`
|
|
309
|
+
|
|
310
|
+
**Parameters:**
|
|
311
|
+
- `program_name` (string, required) - Program name (e.g., SAPMV45A).
|
|
312
|
+
|
|
313
|
+
---
|
|
314
|
+
|
|
315
|
+
<a id="readguistatus-read-only-gui-status"></a>
|
|
316
|
+
#### ReadGuiStatus (Read-Only / Gui Status)
|
|
317
|
+
**Description:** [read-only] Read ABAP GUI Status definition (statuses, function codes, menus, toolbars, titles) for a program.
|
|
318
|
+
|
|
319
|
+
**Source:** `src/handlers/gui_status/readonly/handleReadGuiStatus.ts`
|
|
320
|
+
|
|
321
|
+
**Available in:** `onprem`, `legacy`
|
|
322
|
+
|
|
323
|
+
**Parameters:**
|
|
324
|
+
- `program_name` (string, required) - Parent program name (e.g., SAPMV45A).
|
|
218
325
|
|
|
219
326
|
---
|
|
220
327
|
|
|
@@ -243,10 +350,10 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
243
350
|
**Available in:** `onprem`, `cloud`, `legacy`
|
|
244
351
|
|
|
245
352
|
**Parameters:**
|
|
246
|
-
- `detailed` (boolean, optional (default: false)) -
|
|
353
|
+
- `detailed` (boolean, optional (default: false)) - If true, returns structured JSON with metadata and raw XML.
|
|
247
354
|
- `object_name` (string, required) - Name of the ABAP program or include
|
|
248
|
-
- `object_type` (string, required) -
|
|
249
|
-
- `timeout` (number, optional) -
|
|
355
|
+
- `object_type` (string, required) - ADT object type (e.g. PROG/P, PROG/I, FUGR, CLAS/OC)
|
|
356
|
+
- `timeout` (number, optional) - Timeout in ms for each ADT request.
|
|
250
357
|
|
|
251
358
|
---
|
|
252
359
|
|
|
@@ -263,7 +370,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
263
370
|
|
|
264
371
|
**Parameters:**
|
|
265
372
|
- `interface_name` (string, required) - Interface name (e.g., ZIF_MY_INTERFACE).
|
|
266
|
-
- `version` (string, optional (default: active)) - Version to read:
|
|
373
|
+
- `version` (string, optional (default: active)) - Version to read: "active" (default) or "inactive".
|
|
267
374
|
|
|
268
375
|
---
|
|
269
376
|
|
|
@@ -293,7 +400,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
293
400
|
|
|
294
401
|
**Parameters:**
|
|
295
402
|
- `package_name` (string, required) - Package name (e.g., Z_MY_PACKAGE).
|
|
296
|
-
- `version` (string, optional (default: active)) - Version to read:
|
|
403
|
+
- `version` (string, optional (default: active)) - Version to read: "active" (default) or "inactive".
|
|
297
404
|
|
|
298
405
|
---
|
|
299
406
|
|
|
@@ -302,15 +409,16 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
302
409
|
|
|
303
410
|
<a id="getprogfullcode-read-only-program"></a>
|
|
304
411
|
#### GetProgFullCode (Read-Only / Program)
|
|
305
|
-
**Description:** [read-only] Returns the full code for a program or function group, including all includes, in tree traversal order.
|
|
412
|
+
**Description:** [read-only] Returns the full code for a program or function group, including all includes, in tree traversal order. Use output="file" to get paths + outlines instead of the code.
|
|
306
413
|
|
|
307
414
|
**Source:** `src/handlers/program/readonly/handleGetProgFullCode.ts`
|
|
308
415
|
|
|
309
416
|
**Available in:** `onprem`, `legacy`
|
|
310
417
|
|
|
311
418
|
**Parameters:**
|
|
312
|
-
- `name` (string, required) -
|
|
313
|
-
- `
|
|
419
|
+
- `name` (string, required) - Technical name of the program or function group (e.g., '/CBY/MM_INVENTORY')
|
|
420
|
+
- `output` (string, optional (default: inline)) -
|
|
421
|
+
- `type` (string, required) - 'PROG/P' for program or 'FUGR' for function group
|
|
314
422
|
|
|
315
423
|
---
|
|
316
424
|
|
|
@@ -324,7 +432,186 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
324
432
|
|
|
325
433
|
**Parameters:**
|
|
326
434
|
- `program_name` (string, required) - Program name (e.g., Z_MY_PROGRAM).
|
|
327
|
-
- `version` (string, optional (default: active)) - Version to read:
|
|
435
|
+
- `version` (string, optional (default: active)) - Version to read: "active" (default) or "inactive".
|
|
436
|
+
|
|
437
|
+
---
|
|
438
|
+
|
|
439
|
+
<a id="read-only-screen"></a>
|
|
440
|
+
### Read-Only / Screen
|
|
441
|
+
|
|
442
|
+
<a id="getscreenslist-read-only-screen"></a>
|
|
443
|
+
#### GetScreensList (Read-Only / Screen)
|
|
444
|
+
**Description:** [read-only] List all screens (dynpros) belonging to an ABAP program.
|
|
445
|
+
|
|
446
|
+
**Source:** `src/handlers/screen/readonly/handleGetScreensList.ts`
|
|
447
|
+
|
|
448
|
+
**Available in:** `onprem`, `legacy`
|
|
449
|
+
|
|
450
|
+
**Parameters:**
|
|
451
|
+
- `program_name` (string, required) - Program name (e.g., SAPMV45A).
|
|
452
|
+
|
|
453
|
+
---
|
|
454
|
+
|
|
455
|
+
<a id="readscreen-read-only-screen"></a>
|
|
456
|
+
#### ReadScreen (Read-Only / Screen)
|
|
457
|
+
**Description:** [read-only] Read ABAP Screen (Dynpro) flow logic source code, fields, and metadata.
|
|
458
|
+
|
|
459
|
+
**Source:** `src/handlers/screen/readonly/handleReadScreen.ts`
|
|
460
|
+
|
|
461
|
+
**Available in:** `onprem`, `legacy`
|
|
462
|
+
|
|
463
|
+
**Parameters:**
|
|
464
|
+
- `program_name` (string, required) - Parent program name (e.g., SAPMV45A).
|
|
465
|
+
- `screen_number` (string, required) - Screen number (e.g., 0100).
|
|
466
|
+
|
|
467
|
+
---
|
|
468
|
+
|
|
469
|
+
<a id="read-only-system"></a>
|
|
470
|
+
### Read-Only / System
|
|
471
|
+
|
|
472
|
+
<a id="getinactiveobjects-read-only-system"></a>
|
|
473
|
+
#### GetInactiveObjects (Read-Only / System)
|
|
474
|
+
**Description:** [read-only] Get a list of inactive ABAP objects — modified but not yet activated, pending activation. Shows classes, tables, CDS views, and other objects awaiting activation.
|
|
475
|
+
|
|
476
|
+
**Source:** `src/handlers/system/readonly/handleGetInactiveObjects.ts`
|
|
477
|
+
|
|
478
|
+
**Available in:** `onprem`, `cloud`, `legacy`
|
|
479
|
+
|
|
480
|
+
**Parameters:**
|
|
481
|
+
- None
|
|
482
|
+
|
|
483
|
+
---
|
|
484
|
+
|
|
485
|
+
<a id="getjobusage-read-only-system"></a>
|
|
486
|
+
#### GetJobUsage (Read-Only / System)
|
|
487
|
+
**Description:** [read-only] Check whether programs are used as background job steps (SM37 jobs, TBTCO/TBTCP): true when the program is a step of a job that is scheduled now (released/ready/active, incl. periodic) or that finished/was cancelled in the last N months. SE38/SA38 dialog runs do not count. `oldest` = start date of the oldest finished job still kept; job reorganization deletes older ones, so when `complete` is false a false means "no job since <oldest>". No user names are returned. ECC-only (ZMCP_WL_JOB_USAGE bridge FM).
|
|
488
|
+
|
|
489
|
+
**Source:** `src/handlers/system/readonly/handleGetJobUsage.ts`
|
|
490
|
+
|
|
491
|
+
**Available in:** `onprem`, `legacy`
|
|
492
|
+
|
|
493
|
+
**Parameters:**
|
|
494
|
+
- `months` (number, optional (default: 12)) - Months back including the current one (1-36). Default: 12.
|
|
495
|
+
- `programs` (array, required) - ABAP program names to check (e.g. ["ZMY_REPORT"]).
|
|
496
|
+
|
|
497
|
+
---
|
|
498
|
+
|
|
499
|
+
<a id="getsmartformcontent-read-only-system"></a>
|
|
500
|
+
#### GetSmartFormContent (Read-Only / System)
|
|
501
|
+
**Description:** [read-only] Read what a SmartForm prints, for a preview: per page and window (position in mm) the content tree — text nodes with their lines (paragraph format + text with inline tags and &symbols&), include texts, tables / templates / loops with line types and cells, graphics, addresses, conditions; code nodes appear only as markers (no program lines). Also fetches the SmartStyles as CSS, the SE78 graphics with a fixed key as BMP files (with printed size) and the include texts with a fixed key. Graphics / texts whose key holds a &symbol& are listed under dynamicReferences. Active version, texts in the logon language. Files go under the MCP output directory (smartforms/<form>/), including <form>.content.json with the full result; summary=true answers with an overview (windows, data declarations, &symbols&, files) instead of the content tree. Needs the ZMCP_SSF_CONTENT FM and the SSF_CONTENT dispatcher action.
|
|
502
|
+
|
|
503
|
+
**Source:** `src/handlers/system/readonly/handleGetSmartFormContent.ts`
|
|
504
|
+
|
|
505
|
+
**Available in:** `onprem`, `legacy`
|
|
506
|
+
|
|
507
|
+
**Parameters:**
|
|
508
|
+
- `device` (string, optional) - Output device whose printer fonts the preview should assume. Default: a device whose type has fonts for most of the families of the form.
|
|
509
|
+
- `form_name` (string, required) - SmartForm name (e.g. "ZMY_FORM").
|
|
510
|
+
- `include_graphics` (boolean, optional) - Fetch SE78 graphics with a fixed key as BMP files. Default true.
|
|
511
|
+
- `include_styles` (boolean, optional) - Fetch the SmartStyles (form default + text node styles) as CSS. Default true.
|
|
512
|
+
- `include_texts` (boolean, optional) - Fetch include texts (SO10) with a fixed key. Default true.
|
|
513
|
+
- `summary` (boolean, optional) - Answer with an overview (windows, data declarations, &symbols&, graphics, files) instead of the full content tree; the full result is always written to files.content. Default false.
|
|
514
|
+
- `text_language` (string, optional) - Language for include texts whose key has no language: 1-char SAP key (e.g. "3") or 2-letter ISO code (e.g. "KO"). Default: the form language.
|
|
515
|
+
- `values` (object, optional) - Sample values for &symbols& in graphic keys (e.g. {"IM_SIGN": "ZSIGN"}): graphics named by a variable are then fetched too.
|
|
516
|
+
|
|
517
|
+
---
|
|
518
|
+
|
|
519
|
+
<a id="getsmartformlayout-read-only-system"></a>
|
|
520
|
+
#### GetSmartFormLayout (Read-Only / System)
|
|
521
|
+
**Description:** [read-only] Read the page and window layout of a SmartForm (active version; a never-activated form is read from its saved version, then `active` is false): per page the format, orientation, next page, CPI / LPI and style, and per window its type (MAIN / SECONDARY / ...), position and size as stored (value + unit) and converted to millimetres. Layout only: no texts, code or form interface. Needs the ZMCP_SSF_LAYOUT FM and the SSF_LAYOUT dispatcher action.
|
|
522
|
+
|
|
523
|
+
**Source:** `src/handlers/system/readonly/handleGetSmartFormLayout.ts`
|
|
524
|
+
|
|
525
|
+
**Available in:** `onprem`, `legacy`
|
|
526
|
+
|
|
527
|
+
**Parameters:**
|
|
528
|
+
- `form_name` (string, required) - SmartForm name (e.g. "ZMY_FORM").
|
|
529
|
+
- `language` (string, optional) - Form language: 1-char SAP key (e.g. "E", "3") or 2-letter ISO code (e.g. "EN", "KO"). Default: the master language of the form.
|
|
530
|
+
|
|
531
|
+
---
|
|
532
|
+
|
|
533
|
+
<a id="gettcodeusage-read-only-system"></a>
|
|
534
|
+
#### GetTcodeUsage (Read-Only / System)
|
|
535
|
+
**Description:** [read-only] Check whether transactions were used in the last N months, from the ST03N workload monthly aggregates. Returns one boolean per transaction plus `coverage` = months that actually hold workload data; when coverage < months, false means "not used in the last <coverage> months". No user names are returned. ECC-only (ZMCP_WL_TCODE_USAGE bridge FM).
|
|
536
|
+
|
|
537
|
+
**Source:** `src/handlers/system/readonly/handleGetTcodeUsage.ts`
|
|
538
|
+
|
|
539
|
+
**Available in:** `onprem`, `legacy`
|
|
540
|
+
|
|
541
|
+
**Parameters:**
|
|
542
|
+
- `destination` (string, optional) - SM59 RFC destination (on the connected system) of the system to measure, e.g. the QA or PRD system. Omitted → SAP_USAGE_RFCDEST from the profile sap.env, else the connected system. "" or "LOCAL" → the connected system.
|
|
543
|
+
- `months` (number, optional (default: 12)) - Months back including the current one (1-36). Default: 12.
|
|
544
|
+
- `tcodes` (array, required) - Transaction codes to check (e.g. ["VA01","ZMY_TCODE"]).
|
|
545
|
+
|
|
546
|
+
---
|
|
547
|
+
|
|
548
|
+
<a id="getusagesnippets-read-only-system"></a>
|
|
549
|
+
#### GetUsageSnippets (Read-Only / System)
|
|
550
|
+
**Description:** [read-only] Line-level where-used hits: for each referencing object, the source lines that use the searched object, with uri ".../source/main#start=<line>,<col>", line, column and the source line. Pass object_identifiers from GetWhereUsed references[].object_identifier, or object_name + object_type to run the where-used search first (customer_only / package filters apply to that search). Works on ECC 7.40 and S/4HANA.
|
|
551
|
+
|
|
552
|
+
**Source:** `src/handlers/system/readonly/handleGetUsageSnippets.ts`
|
|
553
|
+
|
|
554
|
+
**Available in:** `onprem`, `cloud`, `legacy`
|
|
555
|
+
|
|
556
|
+
**Parameters:**
|
|
557
|
+
- `customer_only` (boolean, optional (default: false)) - With object_name: only customer referencing objects (Z / Y name, or package Z* / Y* / $*). Default: false.
|
|
558
|
+
- `include_context` (boolean, optional (default: false)) - Include the multi-line context SAP returns per hit (description). Default: false.
|
|
559
|
+
- `max_objects` (number, optional) - Cap on referencing objects whose snippets are fetched. Default: ${DEFAULT_MAX_OBJECTS}. truncated=true when more were available.
|
|
560
|
+
- `object_identifiers` (array, optional) - object_identifier values from GetWhereUsed references[]. Takes precedence over object_name / object_type.
|
|
561
|
+
- `object_name` (string, optional) - Object to search (used when object_identifiers is not given).
|
|
562
|
+
- `object_type` (string, optional) - Object type for object_name: ${SUPPORTED_WHERE_USED_TYPES}
|
|
563
|
+
- `package` (string, optional) - With object_name: package filter on the referencing objects (exact, or prefix with trailing *).
|
|
564
|
+
- `timeout_ms` (number, optional) - Optional request timeout in ms per SAP request (the where-used search and each snippet batch).
|
|
565
|
+
|
|
566
|
+
---
|
|
567
|
+
|
|
568
|
+
<a id="getwhereused-read-only-system"></a>
|
|
569
|
+
#### GetWhereUsed (Read-Only / System)
|
|
570
|
+
**Description:** [read-only] Find where-used references (cross-references, usages, dependencies) for ABAP objects — classes, interfaces, tables, data elements, programs, function modules, etc. Returns list of all referencing objects with their types and packages. On ECC a function module may be given by plain name (no GROUP|FM needed). Widely used SAP standard tables (e.g. VBAK) can take about 60 s and return thousands of references — use customer_only / package / max_results to shrink the answer (filtering happens after the SAP search, so it does not shorten the search time). Pass references[].object_identifier to GetUsageSnippets for line-level hits.
|
|
571
|
+
|
|
572
|
+
**Source:** `src/handlers/system/readonly/handleGetWhereUsed.ts`
|
|
573
|
+
|
|
574
|
+
**Available in:** `onprem`, `cloud`, `legacy`
|
|
575
|
+
|
|
576
|
+
**Parameters:**
|
|
577
|
+
- `customer_only` (boolean, optional (default: false)) - Optional. Keep only customer objects: name starting with Z / Y, or package Z* / Y* / $*. Objects in /namespace/ (SAP industry solutions, partners, generated /1.../) are dropped; for a registered customer namespace use package: "/ACME/*" instead. Default: false.
|
|
578
|
+
- `enable_all_types` (boolean, optional (default: false)) - If true, searches in all available object types (Eclipse 'select all' behavior). Default: false (uses SAP default scope). Ignored on ECC (no scope resource).
|
|
579
|
+
- `max_results` (number, optional) - Optional cap on references[] after filtering. Omit or 0 = no cap. truncated=true when more were found.
|
|
580
|
+
- `object_name` (string, required) - Name of the ABAP object
|
|
581
|
+
- `object_type` (string, required) - Type of the ABAP object: ${SUPPORTED_WHERE_USED_TYPES}
|
|
582
|
+
- `package` (string, optional) - Optional package filter on references[].package_name: exact name, or prefix with a trailing * (e.g. ZSD*).
|
|
583
|
+
- `timeout_ms` (number, optional) - Optional request timeout in ms for the SAP search. Default: SAP_TIMEOUT_LONG (120 s) on ECC, SAP_TIMEOUT_DEFAULT (45 s) otherwise.
|
|
584
|
+
|
|
585
|
+
---
|
|
586
|
+
|
|
587
|
+
<a id="reloadprofile-read-only-system"></a>
|
|
588
|
+
#### ReloadProfile (Read-Only / System)
|
|
589
|
+
**Description:** [system] Reload the active SAP profile from .sc4sap/active-profile.txt and reset the cached connection. Called by the sc4sap plugin after switching profiles. Returns the newly active alias, host, tier, and readonly status.
|
|
590
|
+
|
|
591
|
+
**Source:** `src/handlers/system/readonly/handleReloadProfile.ts`
|
|
592
|
+
|
|
593
|
+
**Available in:** `onprem`, `cloud`, `legacy`
|
|
594
|
+
|
|
595
|
+
**Parameters:**
|
|
596
|
+
- None
|
|
597
|
+
|
|
598
|
+
---
|
|
599
|
+
|
|
600
|
+
<a id="rendersmartform-read-only-system"></a>
|
|
601
|
+
#### RenderSmartForm (Read-Only / System)
|
|
602
|
+
**Description:** [runs the form, no output] The output of a SmartForm as SAP prints it, for given interface values: calls the generated function module with GETOTF (no dialog, no print, no spool) and writes the OTF (text: positions, fonts, strings) and the PDF under the MCP output directory (smartforms/<form>/<form>.sap.otf.txt / .sap.pdf). The form's own program lines run as in a real print and may read the database — pass invented sample values only. Needs the ZMCP_SSF_RENDER FM and the SSF_RENDER dispatcher action.
|
|
603
|
+
|
|
604
|
+
**Source:** `src/handlers/system/readonly/handleRenderSmartForm.ts`
|
|
605
|
+
|
|
606
|
+
**Available in:** `onprem`, `legacy`
|
|
607
|
+
|
|
608
|
+
**Parameters:**
|
|
609
|
+
- `device` (string, optional) - Output device whose device type sets fonts and character widths (e.g. the printer the form goes to). Default: the user default device, else a SAPWIN / PDF device.
|
|
610
|
+
- `families` (array, optional) - Font families the form uses (from GetSmartFormContent styles). Without `device`, a device whose type has printer fonts for most of them is used, so the output shows the fonts the form was made for.
|
|
611
|
+
- `form_name` (string, required) - SmartForm name (e.g. "ZMY_FORM").
|
|
612
|
+
- `language` (string, optional) - Output language: 1-char SAP key or 2-letter ISO code. Default: logon language.
|
|
613
|
+
- `values` (object, optional) - Interface parameter → value, in internal format: structures as objects with the ABAP component names, TABLES parameters / table types as arrays, dates "2026-10-16", times "14:00:00", amounts and quantities as numbers. Parameters left out are passed initial.
|
|
614
|
+
- `values_file` (string, optional) - Path of a JSON file with the same object as `values` (for large interfaces). Ignored when `values` is given.
|
|
328
615
|
|
|
329
616
|
---
|
|
330
617
|
|
|
@@ -340,7 +627,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
340
627
|
**Available in:** `onprem`, `cloud`, `legacy`
|
|
341
628
|
|
|
342
629
|
**Parameters:**
|
|
343
|
-
- `version` (string, optional (default: active)) - Version to read:
|
|
630
|
+
- `version` (string, optional (default: active)) - Version to read: "active" (default) or "inactive".
|
|
344
631
|
- `view_name` (string, required) - View name (e.g., Z_MY_VIEW).
|
|
345
632
|
|
|
346
633
|
---
|
|
@@ -367,7 +654,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
367
654
|
- `final` (boolean, optional) - Mark class as final. Default: false
|
|
368
655
|
- `package_name` (string, required) - Package name (e.g., ZOK_LAB, $TMP).
|
|
369
656
|
- `superclass` (string, optional) - Optional superclass name.
|
|
370
|
-
- `transport_request` (string, optional) - Transport request
|
|
657
|
+
- `transport_request` (string, optional) - Transport request. Required for transportable packages.
|
|
371
658
|
|
|
372
659
|
---
|
|
373
660
|
|
|
@@ -381,7 +668,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
381
668
|
|
|
382
669
|
**Parameters:**
|
|
383
670
|
- `class_name` (string, required) - Class name (e.g., ZCL_MY_CLASS).
|
|
384
|
-
- `transport_request` (string, optional) - Transport request
|
|
671
|
+
- `transport_request` (string, optional) - Transport request. Required unless the object is local ($TMP).
|
|
385
672
|
|
|
386
673
|
---
|
|
387
674
|
|
|
@@ -455,7 +742,8 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
455
742
|
|
|
456
743
|
**Parameters:**
|
|
457
744
|
- `class_name` (string, required) - Class name (e.g., ZCL_MY_CLASS).
|
|
458
|
-
- `
|
|
745
|
+
- `output` (string, optional (default: inline)) -
|
|
746
|
+
- `version` (string, optional (default: active)) - "active" (default) or "inactive" (saved, not yet activated).
|
|
459
747
|
|
|
460
748
|
---
|
|
461
749
|
|
|
@@ -469,7 +757,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
469
757
|
|
|
470
758
|
**Parameters:**
|
|
471
759
|
- `class_name` (string, required) - Parent class name (e.g., ZCL_MY_CLASS).
|
|
472
|
-
- `version` (string, optional (default: active)) -
|
|
760
|
+
- `version` (string, optional (default: active)) - "active" (default) or "inactive" (saved, not yet activated).
|
|
473
761
|
|
|
474
762
|
---
|
|
475
763
|
|
|
@@ -483,7 +771,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
483
771
|
|
|
484
772
|
**Parameters:**
|
|
485
773
|
- `class_name` (string, required) - Parent class name (e.g., ZCL_MY_CLASS).
|
|
486
|
-
- `version` (string, optional (default: active)) -
|
|
774
|
+
- `version` (string, optional (default: active)) - "active" (default) or "inactive" (saved, not yet activated).
|
|
487
775
|
|
|
488
776
|
---
|
|
489
777
|
|
|
@@ -497,7 +785,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
497
785
|
|
|
498
786
|
**Parameters:**
|
|
499
787
|
- `class_name` (string, required) - Parent class name (e.g., ZCL_MY_CLASS).
|
|
500
|
-
- `version` (string, optional (default: active)) -
|
|
788
|
+
- `version` (string, optional (default: active)) - "active" (default) or "inactive" (saved, not yet activated).
|
|
501
789
|
|
|
502
790
|
---
|
|
503
791
|
|
|
@@ -511,7 +799,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
511
799
|
|
|
512
800
|
**Parameters:**
|
|
513
801
|
- `class_name` (string, required) - Parent class name (e.g., ZCL_MY_CLASS).
|
|
514
|
-
- `version` (string, optional (default: active)) -
|
|
802
|
+
- `version` (string, optional (default: active)) - "active" (default) or "inactive" (saved, not yet activated).
|
|
515
803
|
|
|
516
804
|
---
|
|
517
805
|
|
|
@@ -527,7 +815,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
527
815
|
- `activate` (boolean, optional) - Activate after update. Default: false.
|
|
528
816
|
- `class_name` (string, required) - Class name (e.g., ZCL_TEST_CLASS_001).
|
|
529
817
|
- `source_code` (string, required) - Complete ABAP class source code.
|
|
530
|
-
- `transport_request` (string, optional) - Transport request
|
|
818
|
+
- `transport_request` (string, optional) - Transport request. Required for transportable packages.
|
|
531
819
|
|
|
532
820
|
---
|
|
533
821
|
|
|
@@ -595,6 +883,24 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
595
883
|
|
|
596
884
|
---
|
|
597
885
|
|
|
886
|
+
<a id="high-level-common"></a>
|
|
887
|
+
### High-Level / Common
|
|
888
|
+
|
|
889
|
+
<a id="activateobjects-high-level-common"></a>
|
|
890
|
+
#### ActivateObjects (High-Level / Common)
|
|
891
|
+
**Description:** [high-level] Activate a set of ABAP objects in a single call. Uses the ADT mass-activation endpoint (/sap/bc/adt/activation/runs) so cyclic references between siblings (e.g. main program + multiple cross-referencing includes) resolve in one compilation scope. Returns per-object status, errors, warnings. Falls back to /sap/bc/adt/activation on legacy systems.
|
|
892
|
+
|
|
893
|
+
**Source:** `src/handlers/common/high/handleActivateObjects.ts`
|
|
894
|
+
|
|
895
|
+
**Available in:** `onprem`, `cloud`, `legacy`
|
|
896
|
+
|
|
897
|
+
**Parameters:**
|
|
898
|
+
- `objects` (array, required) - Objects to activate in one batch. Supply either explicit uri, or name+type (and parent_name for FUGR/FF, FUGR/I).
|
|
899
|
+
- `preaudit` (boolean, optional) - Request pre-audit before activation. Default true.
|
|
900
|
+
- `run_timeout_ms` (number, optional) - Max time to wait for the activation run to finish (runs endpoint only). Default 120000.
|
|
901
|
+
|
|
902
|
+
---
|
|
903
|
+
|
|
598
904
|
<a id="high-level-function"></a>
|
|
599
905
|
### High-Level / Function
|
|
600
906
|
|
|
@@ -611,7 +917,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
611
917
|
- `description` (string, optional) - Function group description. If not provided, function_group_name will be used.
|
|
612
918
|
- `function_group_name` (string, required) - Function group name (e.g., ZTEST_FG_001). Must follow SAP naming conventions (start with Z or Y, max 26 chars).
|
|
613
919
|
- `package_name` (string, required) - Package name (e.g., ZOK_LAB, $TMP for local objects)
|
|
614
|
-
- `transport_request` (string, optional) - Transport request
|
|
920
|
+
- `transport_request` (string, optional) - Transport request. Required for transportable packages.
|
|
615
921
|
|
|
616
922
|
---
|
|
617
923
|
|
|
@@ -627,13 +933,13 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
627
933
|
- `description` (string, optional) - Optional description for the function module
|
|
628
934
|
- `function_group_name` (string, required) - Parent function group name (e.g., ZTEST_FG_001)
|
|
629
935
|
- `function_module_name` (string, required) - Function module name (e.g., Z_TEST_FUNCTION_001). Must follow SAP naming conventions (start with Z or Y, max 30 chars).
|
|
630
|
-
- `transport_request` (string, optional) - Transport request
|
|
936
|
+
- `transport_request` (string, optional) - Transport request. Required for transportable packages.
|
|
631
937
|
|
|
632
938
|
---
|
|
633
939
|
|
|
634
940
|
<a id="updatefunctiongroup-high-level-function"></a>
|
|
635
941
|
#### UpdateFunctionGroup (High-Level / Function)
|
|
636
|
-
**Description:** Update metadata (description) of an existing ABAP function group. Function groups are containers for function modules and don
|
|
942
|
+
**Description:** Update metadata (description) of an existing ABAP function group. Function groups are containers for function modules and don't have source code to update directly. Uses stateful session with proper lock/unlock mechanism.
|
|
637
943
|
|
|
638
944
|
**Source:** `src/handlers/function/high/handleUpdateFunctionGroup.ts`
|
|
639
945
|
|
|
@@ -642,7 +948,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
642
948
|
**Parameters:**
|
|
643
949
|
- `description` (string, required) - New description for the function group.
|
|
644
950
|
- `function_group_name` (string, required) - Function group name (e.g., ZTEST_FG_001). Must exist in the system.
|
|
645
|
-
- `transport_request` (string, optional) - Transport request
|
|
951
|
+
- `transport_request` (string, optional) - Transport request. Optional if the object is local or already in one.
|
|
646
952
|
|
|
647
953
|
---
|
|
648
954
|
|
|
@@ -658,8 +964,8 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
658
964
|
- `activate` (boolean, optional) - Activate function module after source update. Default: false. Set to true to activate immediately.
|
|
659
965
|
- `function_group_name` (string, required) - Function group name containing the function module (e.g., ZOK_FG_MCP01).
|
|
660
966
|
- `function_module_name` (string, required) - Function module name (e.g., Z_TEST_FM_MCP01). Function module must already exist.
|
|
661
|
-
- `source_code` (string, required) - Complete ABAP function module source code. Must include FUNCTION statement with parameters and ENDFUNCTION. Example
|
|
662
|
-
- `transport_request` (string, optional) - Transport request number (e.g., E19K905635). Required for transportable function modules.
|
|
967
|
+
- `source_code` (string, required) - Complete ABAP function module source code. Must include FUNCTION statement with parameters and ENDFUNCTION. Example: FUNCTION Z_TEST_FM IMPORTING VALUE(iv_input) TYPE string EXPORTING VALUE(ev_output) TYPE string. ev_output = iv_input. ENDFUNCTION.
|
|
968
|
+
- `transport_request` (string, optional) - Transport request number (e.g., E19K905635). Required for transportable function modules. For local objects ($TMP package) this can be omitted — the handler defaults to "local".
|
|
663
969
|
|
|
664
970
|
---
|
|
665
971
|
|
|
@@ -676,7 +982,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
676
982
|
|
|
677
983
|
**Parameters:**
|
|
678
984
|
- `function_group_name` (string, required) - FunctionGroup name (e.g., Z_MY_FUNCTIONGROUP).
|
|
679
|
-
- `transport_request` (string, optional) - Transport request
|
|
985
|
+
- `transport_request` (string, optional) - Transport request. Required unless the object is local ($TMP).
|
|
680
986
|
|
|
681
987
|
---
|
|
682
988
|
|
|
@@ -690,7 +996,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
690
996
|
|
|
691
997
|
**Parameters:**
|
|
692
998
|
- `function_group_name` (string, required) - FunctionGroup name (e.g., Z_MY_FUNCTIONGROUP).
|
|
693
|
-
- `version` (string, optional (default: active)) -
|
|
999
|
+
- `version` (string, optional (default: active)) - "active" (default) or "inactive" (saved, not yet activated).
|
|
694
1000
|
|
|
695
1001
|
---
|
|
696
1002
|
|
|
@@ -708,7 +1014,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
708
1014
|
**Parameters:**
|
|
709
1015
|
- `function_group_name` (string, required) - FunctionGroup name containing the function module (e.g., Z_MY_FUNCTIONGROUP).
|
|
710
1016
|
- `function_module_name` (string, required) - FunctionModule name (e.g., Z_MY_FUNCTIONMODULE).
|
|
711
|
-
- `transport_request` (string, optional) - Transport request
|
|
1017
|
+
- `transport_request` (string, optional) - Transport request. Required unless the object is local ($TMP).
|
|
712
1018
|
|
|
713
1019
|
---
|
|
714
1020
|
|
|
@@ -723,7 +1029,151 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
723
1029
|
**Parameters:**
|
|
724
1030
|
- `function_group_name` (string, required) - FunctionGroup name containing the function module (e.g., Z_MY_FUNCTIONGROUP).
|
|
725
1031
|
- `function_module_name` (string, required) - FunctionModule name (e.g., Z_MY_FUNCTIONMODULE).
|
|
726
|
-
- `
|
|
1032
|
+
- `output` (string, optional (default: inline)) -
|
|
1033
|
+
- `version` (string, optional (default: active)) - "active" (default) or "inactive" (saved, not yet activated).
|
|
1034
|
+
|
|
1035
|
+
---
|
|
1036
|
+
|
|
1037
|
+
<a id="high-level-gui-status"></a>
|
|
1038
|
+
### High-Level / Gui Status
|
|
1039
|
+
|
|
1040
|
+
<a id="createguistatus-high-level-gui-status"></a>
|
|
1041
|
+
#### CreateGuiStatus (High-Level / Gui Status)
|
|
1042
|
+
**Description:** Create a new ABAP GUI Status on an existing program. Optionally activates after creation.
|
|
1043
|
+
|
|
1044
|
+
**Source:** `src/handlers/gui_status/high/handleCreateGuiStatus.ts`
|
|
1045
|
+
|
|
1046
|
+
**Available in:** `onprem`, `legacy`
|
|
1047
|
+
|
|
1048
|
+
**Parameters:**
|
|
1049
|
+
- `activate` (boolean, optional) - Activate after creation. Default: false.
|
|
1050
|
+
- `description` (string, optional) - GUI Status description.
|
|
1051
|
+
- `program_name` (string, required) - Parent program name (e.g., Z_MY_PROGRAM).
|
|
1052
|
+
- `status_name` (string, required) - GUI Status name to create (e.g., MAIN_STATUS).
|
|
1053
|
+
- `status_type` (string, optional) - Status type: "N" (normal screen/list status, stored as MODAL D), "P" (dialog box/popup, MODAL P), "C" (context menu, MODAL C). Default: "N".
|
|
1054
|
+
- `transport_request` (string, optional) - Transport request number.
|
|
1055
|
+
|
|
1056
|
+
---
|
|
1057
|
+
|
|
1058
|
+
<a id="deleteguistatus-high-level-gui-status"></a>
|
|
1059
|
+
#### DeleteGuiStatus (High-Level / Gui Status)
|
|
1060
|
+
**Description:** Delete an ABAP GUI Status from a program. Handles lock/unlock automatically.
|
|
1061
|
+
|
|
1062
|
+
**Source:** `src/handlers/gui_status/high/handleDeleteGuiStatus.ts`
|
|
1063
|
+
|
|
1064
|
+
**Available in:** `onprem`, `legacy`
|
|
1065
|
+
|
|
1066
|
+
**Parameters:**
|
|
1067
|
+
- `program_name` (string, required) - Parent program name.
|
|
1068
|
+
- `status_name` (string, required) - GUI Status name to delete.
|
|
1069
|
+
- `transport_request` (string, optional) - Transport request number.
|
|
1070
|
+
|
|
1071
|
+
---
|
|
1072
|
+
|
|
1073
|
+
<a id="getguistatus-high-level-gui-status"></a>
|
|
1074
|
+
#### GetGuiStatus (High-Level / Gui Status)
|
|
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
|
+
|
|
1077
|
+
**Source:** `src/handlers/gui_status/high/handleGetGuiStatus.ts`
|
|
1078
|
+
|
|
1079
|
+
**Available in:** `onprem`, `legacy`
|
|
1080
|
+
|
|
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.
|
|
1084
|
+
- `program_name` (string, required) - Parent program name (e.g., SAPMV45A).
|
|
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.
|
|
1086
|
+
|
|
1087
|
+
---
|
|
1088
|
+
|
|
1089
|
+
<a id="patchguistatus-high-level-gui-status"></a>
|
|
1090
|
+
#### PatchGuiStatus (High-Level / Gui Status)
|
|
1091
|
+
**Description:** Row-level merge into an existing ABAP GUI Status definition. Fetches current CUA → merges the caller-supplied changes (by natural key) → writes merged result back. Rows / fields you omit are preserved. Safer default for targeted edits; use UpdateGuiStatus only when you truly want to replace the whole CUA. Merge keys per table: STA=CODE, FUN=CODE, PFK=CODE+PFNO, BUT=PFK_CODE+CODE+NO, TIT=CODE, MEN=CODE+NO, MTX=CODE, ACT=CODE+NO, SET=STATUS+FUNCTION, DOC=OBJ_TYPE+OBJ_CODE, BIV=CODE+POS.
|
|
1092
|
+
|
|
1093
|
+
**Source:** `src/handlers/gui_status/high/handlePatchGuiStatus.ts`
|
|
1094
|
+
|
|
1095
|
+
**Available in:** `onprem`, `legacy`
|
|
1096
|
+
|
|
1097
|
+
**Parameters:**
|
|
1098
|
+
- `activate` (boolean, optional) - Activate after patch. Default: false.
|
|
1099
|
+
- `changes` (string, required) - Partial CUA data to merge into the current definition. Same shape as cua_data (ADM / STA / FUN / MEN / MTX / ACT / BUT / PFK / SET / DOC / TIT / BIV). Accepts JSON string or object. Rows matched by natural key are field-merged (changes win). New rows are appended. Omitted tables are left untouched.
|
|
1100
|
+
- `program_name` (string, required) - Parent program name.
|
|
1101
|
+
- `skip_validation` (boolean, optional) - Skip client-side validation of the merged result. Default: false.
|
|
1102
|
+
- `transport_request` (string, optional) - Transport request number.
|
|
1103
|
+
|
|
1104
|
+
---
|
|
1105
|
+
|
|
1106
|
+
<a id="updateguistatus-high-level-gui-status"></a>
|
|
1107
|
+
#### UpdateGuiStatus (High-Level / Gui Status)
|
|
1108
|
+
**Description:** ⚠️ FULL REPLACE — overwrites the entire GUI Status definition (all 12 CUA tables) for the program. Any row or field you omit is DROPPED. Always Read (ReadGuiStatus) → modify → Update, or use PatchGuiStatus for row-level merges. cua_data must include complete STA / FUN / PFK / BUT / TIT rows with all required fields (CODE, PFNO, FUNCODE, ...). Handles lock/unlock automatically.
|
|
1109
|
+
|
|
1110
|
+
**Source:** `src/handlers/gui_status/high/handleUpdateGuiStatus.ts`
|
|
1111
|
+
|
|
1112
|
+
**Available in:** `onprem`, `legacy`
|
|
1113
|
+
|
|
1114
|
+
**Parameters:**
|
|
1115
|
+
- `activate` (boolean, optional) - Activate after update. Default: false.
|
|
1116
|
+
- `cua_data` (string, required) - Complete CUA data — accepts either a JSON string or a structured object with ADM / STA / FUN / MEN / MTX / ACT / BUT / PFK / SET / DOC / TIT / BIV. Required row fields: STA.CODE, FUN.CODE, PFK.{CODE,PFNO,FUNCODE}, BUT.{PFK_CODE,CODE,NO,PFNO}, TIT.CODE. Missing rows are dropped — this is full-replace semantics.
|
|
1117
|
+
- `program_name` (string, required) - Parent program name.
|
|
1118
|
+
- `skip_validation` (boolean, optional) - Skip client-side schema validation. Default: false. Only set true if you know the CUA payload is intentionally partial and SAP will accept it.
|
|
1119
|
+
- `transport_request` (string, optional) - Transport request number.
|
|
1120
|
+
|
|
1121
|
+
---
|
|
1122
|
+
|
|
1123
|
+
<a id="high-level-include"></a>
|
|
1124
|
+
### High-Level / Include
|
|
1125
|
+
|
|
1126
|
+
<a id="createinclude-high-level-include"></a>
|
|
1127
|
+
#### CreateInclude (High-Level / Include)
|
|
1128
|
+
**Description:** Create a new ABAP Include program (Type I, PROG/I) in SAP system. Creates the include object and registers it under the main program in D010INC. By default also auto-inserts an `INCLUDE <name>.` statement into the main program source so the include is actually used. Use UpdateInclude to set source code afterwards. Unlike CreateProgram with program_type=include (which creates PROG/P), this creates a proper PROG/I include. For mass-activation scenarios (many cross-referencing includes) pass source_code inline, set activate_main_program=false and skip_program_tree_check=true, then call ActivateObjects once with the full set.
|
|
1129
|
+
|
|
1130
|
+
**Source:** `src/handlers/include/high/handleCreateInclude.ts`
|
|
1131
|
+
|
|
1132
|
+
**Available in:** `onprem`, `legacy`
|
|
1133
|
+
|
|
1134
|
+
**Parameters:**
|
|
1135
|
+
- `activate_main_program` (boolean, optional) - When inserting INCLUDE statement into the main program, also activate the main program afterwards. Default: true (existing behavior). Set false when batching many includes so that activation is deferred to a single ActivateObjects call.
|
|
1136
|
+
- `description` (string, optional) - Include description (max 60 chars). If not provided, include_name will be used.
|
|
1137
|
+
- `include_name` (string, required) - Include program name (e.g., ZPAEK_TEST_INC01). Must follow SAP naming conventions (start with Z or Y).
|
|
1138
|
+
- `insert_into_main` (boolean, optional) - Auto-insert `INCLUDE <name>.` statement into the main program source. Default: true. Set false to skip main-program modification.
|
|
1139
|
+
- `main_program` (string, required) - Name of the main/master program that will contain this include (e.g., ZPAEK_TEST003). Required for proper include registration and activation.
|
|
1140
|
+
- `package_name` (string, required) - Package name (e.g., ZOK_LAB, $TMP for local objects).
|
|
1141
|
+
- `skip_program_tree_check` (boolean, optional) - Skip the post-create program-tree syntax check. Default: false (existing behavior). Set true when batching many cross-referencing includes — an intermediate include in a cycle will necessarily fail the tree check while its siblings are still missing.
|
|
1142
|
+
- `source_code` (string, optional) - Optional include body. When provided, the handler also locks, writes the source, and unlocks the new include in a single call. Never activates — caller must run a separate activation (ActivateObjects for batch scenarios).
|
|
1143
|
+
- `transport_request` (string, optional) - Transport request number (e.g., S4HK904224). Required for transportable packages. Optional for local ($TMP) objects.
|
|
1144
|
+
|
|
1145
|
+
---
|
|
1146
|
+
|
|
1147
|
+
<a id="deleteinclude-high-level-include"></a>
|
|
1148
|
+
#### DeleteInclude (High-Level / Include)
|
|
1149
|
+
**Description:** Delete an existing ABAP Include program (Type I) from the SAP system via ADT API. If the include is referenced by a main program, provide main_program so the handler can first remove the `INCLUDE <name>.` line from the main program source before deleting.
|
|
1150
|
+
|
|
1151
|
+
**Source:** `src/handlers/include/high/handleDeleteInclude.ts`
|
|
1152
|
+
|
|
1153
|
+
**Available in:** `onprem`, `legacy`
|
|
1154
|
+
|
|
1155
|
+
**Parameters:**
|
|
1156
|
+
- `include_name` (string, required) - Include program name to delete.
|
|
1157
|
+
- `main_program` (string, optional) - Optional. Name of the main program referencing this include. If provided, the `INCLUDE <name>.` line is removed from the main program source first (so the include is no longer referenced and delete succeeds).
|
|
1158
|
+
- `remove_from_main` (boolean, optional) - Auto-remove `INCLUDE <name>.` line from main program source. Default: true when main_program is provided. Set false to skip the main-program modification.
|
|
1159
|
+
- `transport_request` (string, optional) - Transport request number. Required for transportable packages. Optional for local ($TMP) objects. Also used for updating the main program if main_program is provided.
|
|
1160
|
+
|
|
1161
|
+
---
|
|
1162
|
+
|
|
1163
|
+
<a id="updateinclude-high-level-include"></a>
|
|
1164
|
+
#### UpdateInclude (High-Level / Include)
|
|
1165
|
+
**Description:** Update source code of an existing ABAP Include program (Type I). Locks the include, uploads new source code, and unlocks. Optionally activates after update. Use this instead of UpdateProgram for Type I include programs.
|
|
1166
|
+
|
|
1167
|
+
**Source:** `src/handlers/include/high/handleUpdateInclude.ts`
|
|
1168
|
+
|
|
1169
|
+
**Available in:** `onprem`, `legacy`
|
|
1170
|
+
|
|
1171
|
+
**Parameters:**
|
|
1172
|
+
- `activate` (boolean, optional) - Activate include after source update. Default: false. Set to true to activate immediately.
|
|
1173
|
+
- `include_name` (string, required) - Include program name. Must already exist as Type I include in SAP.
|
|
1174
|
+
- `main_program` (string, optional) - Name of the parent/master program that contains this include. When provided, a program-wide syntax check is run after the source is uploaded to catch ABAP errors in the new include code. Highly recommended.
|
|
1175
|
+
- `source_code` (string, required) - Complete ABAP include source code. Do NOT include a REPORT statement — include programs start directly with code or comments.
|
|
1176
|
+
- `transport_request` (string, optional) - Transport request number. Required for transportable packages.
|
|
727
1177
|
|
|
728
1178
|
---
|
|
729
1179
|
|
|
@@ -742,7 +1192,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
742
1192
|
- `description` (string, optional) - Interface description. If not provided, interface_name will be used.
|
|
743
1193
|
- `interface_name` (string, required) - Interface name (e.g., ZIF_TEST_INTERFACE_001). Must follow SAP naming conventions (start with Z or Y).
|
|
744
1194
|
- `package_name` (string, required) - Package name (e.g., ZOK_LAB, $TMP for local objects)
|
|
745
|
-
- `transport_request` (string, optional) - Transport request
|
|
1195
|
+
- `transport_request` (string, optional) - Transport request. Required for transportable packages.
|
|
746
1196
|
|
|
747
1197
|
---
|
|
748
1198
|
|
|
@@ -756,7 +1206,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
756
1206
|
|
|
757
1207
|
**Parameters:**
|
|
758
1208
|
- `interface_name` (string, required) - Interface name (e.g., Z_MY_INTERFACE).
|
|
759
|
-
- `transport_request` (string, optional) - Transport request
|
|
1209
|
+
- `transport_request` (string, optional) - Transport request. Required unless the object is local ($TMP).
|
|
760
1210
|
|
|
761
1211
|
---
|
|
762
1212
|
|
|
@@ -770,7 +1220,8 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
770
1220
|
|
|
771
1221
|
**Parameters:**
|
|
772
1222
|
- `interface_name` (string, required) - Interface name (e.g., Z_MY_INTERFACE).
|
|
773
|
-
- `
|
|
1223
|
+
- `output` (string, optional (default: inline)) -
|
|
1224
|
+
- `version` (string, optional (default: active)) - "active" (default) or "inactive" (saved, not yet activated).
|
|
774
1225
|
|
|
775
1226
|
---
|
|
776
1227
|
|
|
@@ -786,7 +1237,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
786
1237
|
- `activate` (boolean, optional) - Activate interface after update. Default: true.
|
|
787
1238
|
- `interface_name` (string, required) - Interface name (e.g., ZIF_MY_INTERFACE). Must exist in the system.
|
|
788
1239
|
- `source_code` (string, required) - Complete ABAP interface source code with INTERFACE...ENDINTERFACE section.
|
|
789
|
-
- `transport_request` (string, optional) - Transport request
|
|
1240
|
+
- `transport_request` (string, optional) - Transport request. Optional if the object is local or already in one.
|
|
790
1241
|
|
|
791
1242
|
---
|
|
792
1243
|
|
|
@@ -803,7 +1254,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
803
1254
|
|
|
804
1255
|
**Parameters:**
|
|
805
1256
|
- `package_name` (string, required) - Package name (e.g., Z_MY_PACKAGE).
|
|
806
|
-
- `version` (string, optional (default: active)) -
|
|
1257
|
+
- `version` (string, optional (default: active)) - "active" (default) or "inactive" (saved, not yet activated).
|
|
807
1258
|
|
|
808
1259
|
---
|
|
809
1260
|
|
|
@@ -819,12 +1270,12 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
819
1270
|
**Available in:** `onprem`, `legacy`
|
|
820
1271
|
|
|
821
1272
|
**Parameters:**
|
|
822
|
-
- `application` (string, optional) - Application area (e.g.,
|
|
1273
|
+
- `application` (string, optional) - Application area (e.g., 'S' for System, 'M' for Materials Management). Default: '*'
|
|
823
1274
|
- `description` (string, optional) - Program description. If not provided, program_name will be used.
|
|
824
1275
|
- `package_name` (string, required) - Package name (e.g., ZOK_LAB, $TMP for local objects)
|
|
825
1276
|
- `program_name` (string, required) - Program name (e.g., Z_TEST_PROGRAM_001). Must follow SAP naming conventions (start with Z or Y).
|
|
826
|
-
- `program_type` (string, optional) - Program type:
|
|
827
|
-
- `transport_request` (string, optional) - Transport request
|
|
1277
|
+
- `program_type` (string, optional) - Program type: 'executable' (Report), 'include', 'module_pool', 'function_group', 'class_pool', 'interface_pool'. Default: 'executable'
|
|
1278
|
+
- `transport_request` (string, optional) - Transport request. Required for transportable packages.
|
|
828
1279
|
|
|
829
1280
|
---
|
|
830
1281
|
|
|
@@ -838,7 +1289,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
838
1289
|
|
|
839
1290
|
**Parameters:**
|
|
840
1291
|
- `program_name` (string, required) - Program name (e.g., Z_MY_PROGRAM).
|
|
841
|
-
- `transport_request` (string, optional) - Transport request
|
|
1292
|
+
- `transport_request` (string, optional) - Transport request. Required unless the object is local ($TMP).
|
|
842
1293
|
|
|
843
1294
|
---
|
|
844
1295
|
|
|
@@ -851,8 +1302,9 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
851
1302
|
**Available in:** `onprem`, `legacy`
|
|
852
1303
|
|
|
853
1304
|
**Parameters:**
|
|
1305
|
+
- `output` (string, optional (default: inline)) -
|
|
854
1306
|
- `program_name` (string, required) - Program name (e.g., Z_MY_PROGRAM).
|
|
855
|
-
- `version` (string, optional (default: active)) -
|
|
1307
|
+
- `version` (string, optional (default: active)) - "active" (default) or "inactive" (saved, not yet activated).
|
|
856
1308
|
|
|
857
1309
|
---
|
|
858
1310
|
|
|
@@ -868,7 +1320,216 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
868
1320
|
- `activate` (boolean, optional) - Activate program after source update. Default: false. Set to true to activate immediately, or use ActivateObject for batch activation.
|
|
869
1321
|
- `program_name` (string, required) - Program name (e.g., Z_TEST_PROGRAM_001). Program must already exist.
|
|
870
1322
|
- `source_code` (string, required) - Complete ABAP program source code.
|
|
871
|
-
- `transport_request` (string, optional) - Transport request
|
|
1323
|
+
- `transport_request` (string, optional) - Transport request. Required for transportable packages.
|
|
1324
|
+
|
|
1325
|
+
---
|
|
1326
|
+
|
|
1327
|
+
<a id="high-level-screen"></a>
|
|
1328
|
+
### High-Level / Screen
|
|
1329
|
+
|
|
1330
|
+
<a id="createscreen-high-level-screen"></a>
|
|
1331
|
+
#### CreateScreen (High-Level / Screen)
|
|
1332
|
+
**Description:** Create a new ABAP Screen (Dynpro) on an existing program. Optionally activates.
|
|
1333
|
+
|
|
1334
|
+
**Source:** `src/handlers/screen/high/handleCreateScreen.ts`
|
|
1335
|
+
|
|
1336
|
+
**Available in:** `onprem`, `legacy`
|
|
1337
|
+
|
|
1338
|
+
**Parameters:**
|
|
1339
|
+
- `activate` (boolean, optional) - Activate after creation. Default: false.
|
|
1340
|
+
- `description` (string, optional) - Screen description.
|
|
1341
|
+
- `dynpro_data` (string, optional) - Full screen definition as JSON. If omitted, creates minimal screen.
|
|
1342
|
+
- `program_name` (string, required) - Parent program name.
|
|
1343
|
+
- `screen_number` (string, required) - Screen number to create (e.g., 0100).
|
|
1344
|
+
- `transport_request` (string, optional) - Transport request number.
|
|
1345
|
+
|
|
1346
|
+
---
|
|
1347
|
+
|
|
1348
|
+
<a id="deletescreen-high-level-screen"></a>
|
|
1349
|
+
#### DeleteScreen (High-Level / Screen)
|
|
1350
|
+
**Description:** Delete an ABAP Screen (Dynpro) from a program. Handles lock/unlock automatically.
|
|
1351
|
+
|
|
1352
|
+
**Source:** `src/handlers/screen/high/handleDeleteScreen.ts`
|
|
1353
|
+
|
|
1354
|
+
**Available in:** `onprem`, `legacy`
|
|
1355
|
+
|
|
1356
|
+
**Parameters:**
|
|
1357
|
+
- `program_name` (string, required) - Parent program name.
|
|
1358
|
+
- `screen_number` (string, required) - Screen number to delete.
|
|
1359
|
+
- `transport_request` (string, optional) - Transport request number.
|
|
1360
|
+
|
|
1361
|
+
---
|
|
1362
|
+
|
|
1363
|
+
<a id="getscreen-high-level-screen"></a>
|
|
1364
|
+
#### GetScreen (High-Level / Screen)
|
|
1365
|
+
**Description:** Get ABAP Screen (Dynpro) definition including metadata, fields, and flow logic source code.
|
|
1366
|
+
|
|
1367
|
+
**Source:** `src/handlers/screen/high/handleGetScreen.ts`
|
|
1368
|
+
|
|
1369
|
+
**Available in:** `onprem`, `legacy`
|
|
1370
|
+
|
|
1371
|
+
**Parameters:**
|
|
1372
|
+
- `program_name` (string, required) - Parent program name (e.g., SAPMV45A).
|
|
1373
|
+
- `screen_number` (string, required) - Screen number (e.g., 0100).
|
|
1374
|
+
|
|
1375
|
+
---
|
|
1376
|
+
|
|
1377
|
+
<a id="updatescreen-high-level-screen"></a>
|
|
1378
|
+
#### UpdateScreen (High-Level / Screen)
|
|
1379
|
+
**Description:** Update an ABAP Screen (Dynpro) definition. Provide full screen data as JSON. Handles lock/unlock automatically.
|
|
1380
|
+
|
|
1381
|
+
**Source:** `src/handlers/screen/high/handleUpdateScreen.ts`
|
|
1382
|
+
|
|
1383
|
+
**Available in:** `onprem`, `legacy`
|
|
1384
|
+
|
|
1385
|
+
**Parameters:**
|
|
1386
|
+
- `activate` (boolean, optional) - Activate after update. Default: false.
|
|
1387
|
+
- `dynpro_data` (string, required) - Complete screen definition as JSON (from GetScreen/ReadScreen).
|
|
1388
|
+
- `program_name` (string, required) - Parent program name.
|
|
1389
|
+
- `screen_number` (string, required) - Screen number (e.g., 0100).
|
|
1390
|
+
- `transport_request` (string, optional) - Transport request number.
|
|
1391
|
+
|
|
1392
|
+
---
|
|
1393
|
+
|
|
1394
|
+
<a id="high-level-smartform"></a>
|
|
1395
|
+
### High-Level / Smartform
|
|
1396
|
+
|
|
1397
|
+
<a id="createsmartform-high-level-smartform"></a>
|
|
1398
|
+
#### CreateSmartForm (High-Level / Smartform)
|
|
1399
|
+
**Description:** [writes] Create (or, with overwrite, replace) a Z/Y SmartForm from Form Builder XML — the format of SMARTFORMS > Utilities > Download. The form is checked and stored active (function module generated) when the check finds no error; otherwise it is stored inactive and the check errors are returned. SmartStyles and SE78 graphics the XML names must already exist. Needs the ZMCP_SSF_UPLOAD FM and the SSF_UPLOAD_XML dispatcher action.
|
|
1400
|
+
|
|
1401
|
+
**Source:** `src/handlers/smartform/high/handleCreateSmartForm.ts`
|
|
1402
|
+
|
|
1403
|
+
**Available in:** `onprem`, `legacy`
|
|
1404
|
+
|
|
1405
|
+
**Parameters:**
|
|
1406
|
+
- `activate` (boolean, optional) - Check and store active. Default true; false stores the form inactive without a check.
|
|
1407
|
+
- `form_name` (string, required) - Target SmartForm name, Z* or Y* (e.g. "ZMY_FORM").
|
|
1408
|
+
- `overwrite` (boolean, optional) - Replace the form when it exists. Default false (an existing form is refused).
|
|
1409
|
+
- `package_name` (string, optional) - Package. Default $TMP; any other package needs transport_request.
|
|
1410
|
+
- `transport_request` (string, optional) - Transport request the form is recorded in.
|
|
1411
|
+
- `xml_file` (string, required) - Path of the Form Builder XML file (UTF-8).
|
|
1412
|
+
|
|
1413
|
+
---
|
|
1414
|
+
|
|
1415
|
+
<a id="deletesmartform-high-level-smartform"></a>
|
|
1416
|
+
#### DeleteSmartForm (High-Level / Smartform)
|
|
1417
|
+
**Description:** [writes, destructive] Delete a Z/Y SmartForm of a local package ($TMP, $…) with its generated function module. Without confirm: true only reports what would be deleted (dry run). Transportable forms are refused. Needs the ZMCP_SSF_DELETE FM and the SSF_DELETE_FORM dispatcher action.
|
|
1418
|
+
|
|
1419
|
+
**Source:** `src/handlers/smartform/high/handleDeleteSmartForm.ts`
|
|
1420
|
+
|
|
1421
|
+
**Available in:** `onprem`, `legacy`
|
|
1422
|
+
|
|
1423
|
+
**Parameters:**
|
|
1424
|
+
- `confirm` (boolean, optional) - true = really delete. Default false (dry run).
|
|
1425
|
+
- `form_name` (string, required) - SmartForm name, Z* or Y*.
|
|
1426
|
+
|
|
1427
|
+
---
|
|
1428
|
+
|
|
1429
|
+
<a id="high-level-text-element"></a>
|
|
1430
|
+
### High-Level / Text Element
|
|
1431
|
+
|
|
1432
|
+
<a id="createtextelement-high-level-text-element"></a>
|
|
1433
|
+
#### CreateTextElement (High-Level / Text Element)
|
|
1434
|
+
**Description:** Add a text element (text symbol, selection text, program title, or list heading) to an ABAP program. Optionally activates after write.
|
|
1435
|
+
|
|
1436
|
+
**Source:** `src/handlers/text_element/high/handleCreateTextElement.ts`
|
|
1437
|
+
|
|
1438
|
+
**Available in:** `onprem`, `legacy`
|
|
1439
|
+
|
|
1440
|
+
**Parameters:**
|
|
1441
|
+
- `activate` (boolean, optional) - Activate the parent program after write. Default: false.
|
|
1442
|
+
- `key` (string, optional) - Row key. For "I" use 3-char code (e.g., "001"). For "S" use the parameter/select-option name. For "R" the key is ignored (single row).
|
|
1443
|
+
- `language` (string, optional) - Language key (1-char). Defaults to SAP logon language.
|
|
1444
|
+
- `program_name` (string, required) - Parent program name (e.g., Z_MY_PROGRAM).
|
|
1445
|
+
- `text` (string, required) - Text content (max ${MAX_ENTRY_LEN} characters).
|
|
1446
|
+
- `text_type` (string, required) - "I"=text symbol (TEXT-xxx), "S"=selection text, "R"=program title, "H"=list heading.
|
|
1447
|
+
- `transport_request` (string, optional) - Transport request number.
|
|
1448
|
+
|
|
1449
|
+
---
|
|
1450
|
+
|
|
1451
|
+
<a id="deletetextelement-high-level-text-element"></a>
|
|
1452
|
+
#### DeleteTextElement (High-Level / Text Element)
|
|
1453
|
+
**Description:** Delete a text element from an ABAP program text pool. key="*" wipes all rows of the given text_type; text_type="*" wipes the whole pool.
|
|
1454
|
+
|
|
1455
|
+
**Source:** `src/handlers/text_element/high/handleDeleteTextElement.ts`
|
|
1456
|
+
|
|
1457
|
+
**Available in:** `onprem`, `legacy`
|
|
1458
|
+
|
|
1459
|
+
**Parameters:**
|
|
1460
|
+
- `activate` (boolean, optional) - Activate the parent program after write. Default: false.
|
|
1461
|
+
- `key` (string, optional) - Row key, or "*" to delete every row of the given text_type.
|
|
1462
|
+
- `language` (string, optional) - Language key. Defaults to SAP logon language.
|
|
1463
|
+
- `program_name` (string, required) - Parent program name.
|
|
1464
|
+
- `text_type` (string, required) - "I"|"S"|"R"|"H", or "*" to wipe every row in the language.
|
|
1465
|
+
- `transport_request` (string, optional) - Transport request number.
|
|
1466
|
+
|
|
1467
|
+
---
|
|
1468
|
+
|
|
1469
|
+
<a id="gettextelement-high-level-text-element"></a>
|
|
1470
|
+
#### GetTextElement (High-Level / Text Element)
|
|
1471
|
+
**Description:** Read ABAP program text pool (text symbols, selection texts, title, headings). Optionally filter by text_type / key.
|
|
1472
|
+
|
|
1473
|
+
**Source:** `src/handlers/text_element/high/handleGetTextElement.ts`
|
|
1474
|
+
|
|
1475
|
+
**Available in:** `onprem`, `legacy`
|
|
1476
|
+
|
|
1477
|
+
**Parameters:**
|
|
1478
|
+
- `key` (string, optional) - Optional: filter by row key (e.g., "001" for text symbol TEXT-001, or a parameter name for selection text).
|
|
1479
|
+
- `language` (string, optional) - Language key (1-char, e.g., "E", "D", "K"). Defaults to the SAP logon language.
|
|
1480
|
+
- `program_name` (string, required) - Program name (e.g., Z_MY_PROGRAM).
|
|
1481
|
+
- `text_type` (string, optional) - Filter by ID: "I"=text symbol, "S"=selection text, "R"=program title, "H"=list heading.
|
|
1482
|
+
|
|
1483
|
+
---
|
|
1484
|
+
|
|
1485
|
+
<a id="readtextelementsbulk-high-level-text-element"></a>
|
|
1486
|
+
#### ReadTextElementsBulk (High-Level / Text Element)
|
|
1487
|
+
**Description:** Read every text element (R/I/S/H) of a program in ONE call via the TPOOL RFC. Partitions rows by type and returns structured arrays. Use this instead of calling GetTextElement per row.
|
|
1488
|
+
|
|
1489
|
+
**Source:** `src/handlers/text_element/high/handleReadTextElementsBulk.ts`
|
|
1490
|
+
|
|
1491
|
+
**Available in:** `onprem`, `legacy`
|
|
1492
|
+
|
|
1493
|
+
**Parameters:**
|
|
1494
|
+
- `language` (string, optional) - 1-char language. Defaults to SAP logon language.
|
|
1495
|
+
- `program_name` (string, required) - Program name.
|
|
1496
|
+
|
|
1497
|
+
---
|
|
1498
|
+
|
|
1499
|
+
<a id="updatetextelement-high-level-text-element"></a>
|
|
1500
|
+
#### UpdateTextElement (High-Level / Text Element)
|
|
1501
|
+
**Description:** Update an existing text element in an ABAP program text pool. Handles lock/unlock automatically.
|
|
1502
|
+
|
|
1503
|
+
**Source:** `src/handlers/text_element/high/handleUpdateTextElement.ts`
|
|
1504
|
+
|
|
1505
|
+
**Available in:** `onprem`, `legacy`
|
|
1506
|
+
|
|
1507
|
+
**Parameters:**
|
|
1508
|
+
- `activate` (boolean, optional) - Activate the parent program after write. Default: false.
|
|
1509
|
+
- `key` (string, optional) - Row key. Required except for "R" (single program title).
|
|
1510
|
+
- `language` (string, optional) - Language key. Defaults to SAP logon language.
|
|
1511
|
+
- `program_name` (string, required) - Parent program name.
|
|
1512
|
+
- `text` (string, required) - New text content (max ${MAX_ENTRY_LEN} characters).
|
|
1513
|
+
- `text_type` (string, required) - "I"|"S"|"R"|"H" — see GetTextElement.
|
|
1514
|
+
- `transport_request` (string, optional) - Transport request number.
|
|
1515
|
+
|
|
1516
|
+
---
|
|
1517
|
+
|
|
1518
|
+
<a id="writetextelementsbulk-high-level-text-element"></a>
|
|
1519
|
+
#### WriteTextElementsBulk (High-Level / Text Element)
|
|
1520
|
+
**Description:** Register many ABAP text elements (R/I/S/H) in ONE tool call via a single TPOOL RFC write. Use instead of calling CreateTextElement N times. With activate=false (default) the pool is staged INACTIVE — the parent program's next activation promotes every entry atomically, which is the correct flow for "register 40 now, activate program later". With activate=true the pool is written ACTIVE immediately. Set replace_existing=false to merge into the current pool instead of replacing it.
|
|
1521
|
+
|
|
1522
|
+
**Source:** `src/handlers/text_element/high/handleWriteTextElementsBulk.ts`
|
|
1523
|
+
|
|
1524
|
+
**Available in:** `onprem`, `legacy`
|
|
1525
|
+
|
|
1526
|
+
**Parameters:**
|
|
1527
|
+
- `activate` (boolean, optional) - false (default) — stage as INACTIVE (program activation promotes). true — write ACTIVE immediately.
|
|
1528
|
+
- `language` (string, optional) - 1-char language key (e.g. "K" for Korean). Defaults to SAP logon language.
|
|
1529
|
+
- `program_name` (string, required) - Parent program name.
|
|
1530
|
+
- `replace_existing` (boolean, optional) - If true (default), the TPOOL is replaced with the provided entries only. If false, existing rows are preserved and provided rows merge by (type, key).
|
|
1531
|
+
- `text_elements` (array, required) - Array of entries. Each: { type: "R"|"I"|"S"|"H", key?: string, text: string }. R ignores key (single-row program title — key defaults to program name). I requires a 3-char key. S requires a parameter / select-option name (max 8 chars). H requires one of "listHeader" or "columnHeader_N".
|
|
1532
|
+
- `transport_request` (string, optional) - Transport request number (informational).
|
|
872
1533
|
|
|
873
1534
|
---
|
|
874
1535
|
|
|
@@ -888,7 +1549,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
888
1549
|
- `class_name` (string, required) - Global test class name (e.g., ZCL_CDS_TEST).
|
|
889
1550
|
- `description` (string, optional) - Optional description for the global test class.
|
|
890
1551
|
- `package_name` (string, required) - Package name (e.g., ZOK_TEST_PKG_01, $TMP).
|
|
891
|
-
- `transport_request` (string, optional) - Transport request
|
|
1552
|
+
- `transport_request` (string, optional) - Transport request. Required for transportable packages.
|
|
892
1553
|
|
|
893
1554
|
---
|
|
894
1555
|
|
|
@@ -920,7 +1581,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
920
1581
|
|
|
921
1582
|
**Parameters:**
|
|
922
1583
|
- `class_name` (string, required) - Global test class name (e.g., ZCL_CDS_TEST).
|
|
923
|
-
- `transport_request` (string, optional) - Transport request
|
|
1584
|
+
- `transport_request` (string, optional) - Transport request. Required for transportable packages.
|
|
924
1585
|
|
|
925
1586
|
---
|
|
926
1587
|
|
|
@@ -1023,7 +1684,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1023
1684
|
|
|
1024
1685
|
<a id="rununittest-high-level-unit-test"></a>
|
|
1025
1686
|
#### RunUnitTest (High-Level / Unit Test)
|
|
1026
|
-
**Description:** Start an ABAP Unit test run for provided
|
|
1687
|
+
**Description:** Start an ABAP Unit test run for provided test definitions. Returns run_id for status/result queries.
|
|
1027
1688
|
|
|
1028
1689
|
**Source:** `src/handlers/unit_test/high/handleRunUnitTest.ts`
|
|
1029
1690
|
|
|
@@ -1050,7 +1711,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1050
1711
|
**Parameters:**
|
|
1051
1712
|
- `class_name` (string, required) - Global test class name (e.g., ZCL_CDS_TEST).
|
|
1052
1713
|
- `test_class_source` (string, required) - Updated local test class ABAP source code.
|
|
1053
|
-
- `transport_request` (string, optional) - Transport request
|
|
1714
|
+
- `transport_request` (string, optional) - Transport request. Required for transportable packages.
|
|
1054
1715
|
|
|
1055
1716
|
---
|
|
1056
1717
|
|
|
@@ -1081,7 +1742,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1081
1742
|
**Parameters:**
|
|
1082
1743
|
- `description` (string, optional) - Optional description (defaults to view_name).
|
|
1083
1744
|
- `package_name` (string, required) - Package name (e.g., ZOK_LAB, $TMP for local objects)
|
|
1084
|
-
- `transport_request` (string, optional) - Transport request
|
|
1745
|
+
- `transport_request` (string, optional) - Transport request. Required for transportable packages.
|
|
1085
1746
|
- `view_name` (string, required) - View name (e.g., ZOK_R_TEST_0002, Z_I_MY_VIEW).
|
|
1086
1747
|
|
|
1087
1748
|
---
|
|
@@ -1095,7 +1756,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1095
1756
|
**Available in:** `onprem`, `cloud`, `legacy`
|
|
1096
1757
|
|
|
1097
1758
|
**Parameters:**
|
|
1098
|
-
- `transport_request` (string, optional) - Transport request
|
|
1759
|
+
- `transport_request` (string, optional) - Transport request. Required unless the object is local ($TMP).
|
|
1099
1760
|
- `view_name` (string, required) - View name (e.g., Z_MY_VIEW).
|
|
1100
1761
|
|
|
1101
1762
|
---
|
|
@@ -1109,7 +1770,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1109
1770
|
**Available in:** `onprem`, `cloud`, `legacy`
|
|
1110
1771
|
|
|
1111
1772
|
**Parameters:**
|
|
1112
|
-
- `version` (string, optional (default: active)) -
|
|
1773
|
+
- `version` (string, optional (default: active)) - "active" (default) or "inactive" (saved, not yet activated).
|
|
1113
1774
|
- `view_name` (string, required) - View name (e.g., Z_MY_VIEW).
|
|
1114
1775
|
|
|
1115
1776
|
---
|
|
@@ -1125,7 +1786,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1125
1786
|
**Parameters:**
|
|
1126
1787
|
- `activate` (boolean, optional) - Activate after update. Default: false.
|
|
1127
1788
|
- `ddl_source` (string, required) - Complete DDL source code.
|
|
1128
|
-
- `transport_request` (string, optional) - Transport request
|
|
1789
|
+
- `transport_request` (string, optional) - Transport request. Required for transportable packages.
|
|
1129
1790
|
- `view_name` (string, required) - View name (e.g., ZOK_R_TEST_0002).
|
|
1130
1791
|
|
|
1131
1792
|
---
|
|
@@ -1180,7 +1841,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1180
1841
|
- `session_id` (string, optional) - Session ID from GetSession. If not provided, a new session will be created.
|
|
1181
1842
|
- `session_state` (object, optional) - Session state from GetSession (cookies, csrf_token, cookie_store). Required if session_id is provided.
|
|
1182
1843
|
- `source_code` (string, optional) - Optional: source code to validate. If provided, validates hypothetical code without creating object. Must include complete CLASS DEFINITION and IMPLEMENTATION sections.
|
|
1183
|
-
- `version` (string, optional) - Version to check:
|
|
1844
|
+
- `version` (string, optional) - Version to check: 'active' (last activated) or 'inactive' (current unsaved). Default: active
|
|
1184
1845
|
|
|
1185
1846
|
---
|
|
1186
1847
|
|
|
@@ -1201,8 +1862,9 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1201
1862
|
- `package_name` (string, required) - Package name (e.g., ZOK_LOCAL, $TMP for local objects).
|
|
1202
1863
|
- `session_id` (string, optional) - Session ID from GetSession. If not provided, a new session will be created.
|
|
1203
1864
|
- `session_state` (object, optional) - Session state from GetSession (cookies, csrf_token, cookie_store). Required if session_id is provided.
|
|
1865
|
+
- `skip_check` (boolean, optional) - Skip post-create syntax check. Default: false. When false, runs a syntax check on the newly created class shell and surfaces any errors with line numbers.
|
|
1204
1866
|
- `superclass` (string, optional) - Superclass name (optional).
|
|
1205
|
-
- `transport_request` (string, optional) - Transport request
|
|
1867
|
+
- `transport_request` (string, optional) - Transport request. Required for transportable packages.
|
|
1206
1868
|
|
|
1207
1869
|
---
|
|
1208
1870
|
|
|
@@ -1216,7 +1878,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1216
1878
|
|
|
1217
1879
|
**Parameters:**
|
|
1218
1880
|
- `class_name` (string, required) - Class name (e.g., ZCL_MY_CLASS).
|
|
1219
|
-
- `transport_request` (string, optional) - Transport request
|
|
1881
|
+
- `transport_request` (string, optional) - Transport request. Required unless the object is local ($TMP).
|
|
1220
1882
|
|
|
1221
1883
|
---
|
|
1222
1884
|
|
|
@@ -1229,7 +1891,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1229
1891
|
**Available in:** `onprem`, `cloud`, `legacy`
|
|
1230
1892
|
|
|
1231
1893
|
**Parameters:**
|
|
1232
|
-
- `format` (string, optional) - Preferred response format. Defaults to
|
|
1894
|
+
- `format` (string, optional) - Preferred response format. Defaults to 'abapunit'.
|
|
1233
1895
|
- `run_id` (string, required) - Run identifier returned by RunClassUnitTestsLow.
|
|
1234
1896
|
- `session_id` (string, optional) - Session ID from GetSession. If not provided, a new session will be created.
|
|
1235
1897
|
- `session_state` (object, optional) - Session state from GetSession (cookies, csrf_token, cookie_store). Required if session_id is provided.
|
|
@@ -1342,6 +2004,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1342
2004
|
**Parameters:**
|
|
1343
2005
|
- `class_name` (string, required) - Class name (e.g., ZCL_TEST_CLASS_001). Class must already exist.
|
|
1344
2006
|
- `lock_handle` (string, required) - Lock handle from LockClass operation. Required for update operation.
|
|
2007
|
+
- `skip_check` (boolean, optional) - Skip pre-write syntax check on source_code. Default: false. When false, runs a syntax check on the proposed code BEFORE uploading it and surfaces any errors with line numbers — the broken source never lands on SAP.
|
|
1345
2008
|
- `source_code` (string, required) - Complete ABAP class source code including CLASS DEFINITION and IMPLEMENTATION sections.
|
|
1346
2009
|
|
|
1347
2010
|
---
|
|
@@ -1359,6 +2022,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1359
2022
|
- `lock_handle` (string, required) - Test classes lock handle from LockClassTestClassesLow.
|
|
1360
2023
|
- `session_id` (string, optional) - Session ID from GetSession. If not provided, a new session will be created.
|
|
1361
2024
|
- `session_state` (object, optional) - Session state from GetSession (cookies, csrf_token, cookie_store). Required if session_id is provided.
|
|
2025
|
+
- `skip_check` (boolean, optional) - Skip post-write syntax check. Default: false. When false, runs a syntax check on the parent class after updating the test-classes include and surfaces any errors with line numbers.
|
|
1362
2026
|
- `test_class_source` (string, required) - Complete ABAP Unit test class source code.
|
|
1363
2027
|
|
|
1364
2028
|
---
|
|
@@ -1393,7 +2057,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1393
2057
|
**Available in:** `onprem`, `cloud`, `legacy`
|
|
1394
2058
|
|
|
1395
2059
|
**Parameters:**
|
|
1396
|
-
- `objects` (array, required) - Array of objects to activate. Each object must have
|
|
2060
|
+
- `objects` (array, required) - Array of objects to activate. Each object must have 'name' and 'type'. URI is optional.
|
|
1397
2061
|
- `preaudit` (boolean, optional) - Request pre-audit before activation. Default: true
|
|
1398
2062
|
|
|
1399
2063
|
---
|
|
@@ -1460,7 +2124,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1460
2124
|
- `function_module_name` (string, required) - Function module name (e.g., Z_TEST_FM)
|
|
1461
2125
|
- `session_id` (string, optional) - Session ID from GetSession. If not provided, a new session will be created.
|
|
1462
2126
|
- `session_state` (object, optional) - Session state from GetSession (cookies, csrf_token, cookie_store). Required if session_id is provided.
|
|
1463
|
-
- `version` (string, optional) - Version to check:
|
|
2127
|
+
- `version` (string, optional) - Version to check: 'active' (last activated) or 'inactive' (current unsaved). Default: active
|
|
1464
2128
|
|
|
1465
2129
|
---
|
|
1466
2130
|
|
|
@@ -1478,7 +2142,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1478
2142
|
- `package_name` (string, required) - Package name (e.g., ZOK_LOCAL, $TMP for local objects).
|
|
1479
2143
|
- `session_id` (string, optional) - Session ID from GetSession. If not provided, a new session will be created.
|
|
1480
2144
|
- `session_state` (object, optional) - Session state from GetSession (cookies, csrf_token, cookie_store). Required if session_id is provided.
|
|
1481
|
-
- `transport_request` (string, optional) - Transport request
|
|
2145
|
+
- `transport_request` (string, optional) - Transport request. Required for transportable packages.
|
|
1482
2146
|
|
|
1483
2147
|
---
|
|
1484
2148
|
|
|
@@ -1497,7 +2161,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1497
2161
|
- `package_name` (string, required) - Package name (e.g., ZOK_LOCAL, $TMP for local objects).
|
|
1498
2162
|
- `session_id` (string, optional) - Session ID from GetSession. If not provided, a new session will be created.
|
|
1499
2163
|
- `session_state` (object, optional) - Session state from GetSession (cookies, csrf_token, cookie_store). Required if session_id is provided.
|
|
1500
|
-
- `transport_request` (string, optional) - Transport request
|
|
2164
|
+
- `transport_request` (string, optional) - Transport request. Required for transportable packages.
|
|
1501
2165
|
|
|
1502
2166
|
---
|
|
1503
2167
|
|
|
@@ -1511,7 +2175,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1511
2175
|
|
|
1512
2176
|
**Parameters:**
|
|
1513
2177
|
- `function_group_name` (string, required) - FunctionGroup name (e.g., Z_MY_PROGRAM).
|
|
1514
|
-
- `transport_request` (string, optional) - Transport request
|
|
2178
|
+
- `transport_request` (string, optional) - Transport request. Required unless the object is local ($TMP).
|
|
1515
2179
|
|
|
1516
2180
|
---
|
|
1517
2181
|
|
|
@@ -1526,7 +2190,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1526
2190
|
**Parameters:**
|
|
1527
2191
|
- `function_group_name` (string, required) - Function group name (e.g., ZFG_MY_GROUP).
|
|
1528
2192
|
- `function_module_name` (string, required) - Function module name (e.g., Z_MY_FUNCTION).
|
|
1529
|
-
- `transport_request` (string, optional) - Transport request
|
|
2193
|
+
- `transport_request` (string, optional) - Transport request. Required unless the object is local ($TMP).
|
|
1530
2194
|
|
|
1531
2195
|
---
|
|
1532
2196
|
|
|
@@ -1608,6 +2272,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1608
2272
|
- `lock_handle` (string, required) - Lock handle from LockFunctionModule. Required for update operation.
|
|
1609
2273
|
- `session_id` (string, optional) - Session ID from GetSession. If not provided, a new session will be created.
|
|
1610
2274
|
- `session_state` (object, optional) - Session state from GetSession (cookies, csrf_token, cookie_store). Required if session_id is provided.
|
|
2275
|
+
- `skip_check` (boolean, optional) - Skip post-write syntax check. Default: false. When false, runs a syntax check on the staged inactive version after update and surfaces any errors with line numbers.
|
|
1611
2276
|
- `source_code` (string, required) - Complete ABAP function module source code.
|
|
1612
2277
|
- `transport_request` (string, optional) - Transport request number (e.g., E19K905635). Required for transportable objects locked in a request.
|
|
1613
2278
|
|
|
@@ -1647,6 +2312,111 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1647
2312
|
|
|
1648
2313
|
---
|
|
1649
2314
|
|
|
2315
|
+
<a id="low-level-gui-status"></a>
|
|
2316
|
+
### Low-Level / Gui Status
|
|
2317
|
+
|
|
2318
|
+
<a id="activateguistatuslow-low-level-gui-status"></a>
|
|
2319
|
+
#### ActivateGuiStatusLow (Low-Level / Gui Status)
|
|
2320
|
+
**Description:** [low-level] Activate an ABAP program to make GUI Status changes active.
|
|
2321
|
+
|
|
2322
|
+
**Source:** `src/handlers/gui_status/low/handleActivateGuiStatus.ts`
|
|
2323
|
+
|
|
2324
|
+
**Available in:** `onprem`, `legacy`
|
|
2325
|
+
|
|
2326
|
+
**Parameters:**
|
|
2327
|
+
- `program_name` (string, required) - Parent program name.
|
|
2328
|
+
- `session_id` (string, optional) - Session ID from GetSession.
|
|
2329
|
+
- `session_state` (object, optional) - Session state from GetSession.
|
|
2330
|
+
|
|
2331
|
+
---
|
|
2332
|
+
|
|
2333
|
+
<a id="createguistatuslow-low-level-gui-status"></a>
|
|
2334
|
+
#### CreateGuiStatusLow (Low-Level / Gui Status)
|
|
2335
|
+
**Description:** [low-level] Create a new ABAP GUI Status on an existing program.
|
|
2336
|
+
|
|
2337
|
+
**Source:** `src/handlers/gui_status/low/handleCreateGuiStatus.ts`
|
|
2338
|
+
|
|
2339
|
+
**Available in:** `onprem`, `legacy`
|
|
2340
|
+
|
|
2341
|
+
**Parameters:**
|
|
2342
|
+
- `description` (string, optional) - GUI Status description.
|
|
2343
|
+
- `program_name` (string, required) - Parent program name (e.g., Z_MY_PROGRAM).
|
|
2344
|
+
- `session_id` (string, optional) - Session ID from GetSession.
|
|
2345
|
+
- `session_state` (object, optional) - Session state from GetSession.
|
|
2346
|
+
- `status_name` (string, required) - GUI Status name to create (e.g., MAIN_STATUS).
|
|
2347
|
+
- `status_type` (string, optional) - Status type: "N" (normal screen/list status, stored as MODAL D), "P" (dialog box/popup, MODAL P), "C" (context menu, MODAL C). Default: "N".
|
|
2348
|
+
- `transport_request` (string, optional) - Transport request number.
|
|
2349
|
+
|
|
2350
|
+
---
|
|
2351
|
+
|
|
2352
|
+
<a id="deleteguistatuslow-low-level-gui-status"></a>
|
|
2353
|
+
#### DeleteGuiStatusLow (Low-Level / Gui Status)
|
|
2354
|
+
**Description:** [low-level] Delete an ABAP GUI Status from a program.
|
|
2355
|
+
|
|
2356
|
+
**Source:** `src/handlers/gui_status/low/handleDeleteGuiStatus.ts`
|
|
2357
|
+
|
|
2358
|
+
**Available in:** `onprem`, `legacy`
|
|
2359
|
+
|
|
2360
|
+
**Parameters:**
|
|
2361
|
+
- `lock_handle` (string, required) - Lock handle from LockGuiStatusLow.
|
|
2362
|
+
- `program_name` (string, required) - Parent program name.
|
|
2363
|
+
- `session_id` (string, optional) - Session ID from GetSession.
|
|
2364
|
+
- `session_state` (object, optional) - Session state from GetSession.
|
|
2365
|
+
- `status_name` (string, required) - GUI Status name to delete. Use "*" to delete all.
|
|
2366
|
+
- `transport_request` (string, optional) - Transport request number.
|
|
2367
|
+
|
|
2368
|
+
---
|
|
2369
|
+
|
|
2370
|
+
<a id="lockguistatuslow-low-level-gui-status"></a>
|
|
2371
|
+
#### LockGuiStatusLow (Low-Level / Gui Status)
|
|
2372
|
+
**Description:** [low-level] Lock a program for GUI Status modification. Returns lock handle for subsequent update/unlock operations.
|
|
2373
|
+
|
|
2374
|
+
**Source:** `src/handlers/gui_status/low/handleLockGuiStatus.ts`
|
|
2375
|
+
|
|
2376
|
+
**Available in:** `onprem`, `legacy`
|
|
2377
|
+
|
|
2378
|
+
**Parameters:**
|
|
2379
|
+
- `program_name` (string, required) - Parent program name (e.g., SAPMV45A).
|
|
2380
|
+
- `session_id` (string, optional) - Session ID from GetSession.
|
|
2381
|
+
- `session_state` (object, optional) - Session state from GetSession.
|
|
2382
|
+
- `status_name` (string, optional) - GUI Status name (for reference only).
|
|
2383
|
+
|
|
2384
|
+
---
|
|
2385
|
+
|
|
2386
|
+
<a id="unlockguistatuslow-low-level-gui-status"></a>
|
|
2387
|
+
#### UnlockGuiStatusLow (Low-Level / Gui Status)
|
|
2388
|
+
**Description:** [low-level] Unlock a program after GUI Status modification. Requires lock handle from LockGuiStatusLow.
|
|
2389
|
+
|
|
2390
|
+
**Source:** `src/handlers/gui_status/low/handleUnlockGuiStatus.ts`
|
|
2391
|
+
|
|
2392
|
+
**Available in:** `onprem`, `legacy`
|
|
2393
|
+
|
|
2394
|
+
**Parameters:**
|
|
2395
|
+
- `lock_handle` (string, required) - Lock handle from LockGuiStatusLow.
|
|
2396
|
+
- `program_name` (string, required) - Parent program name.
|
|
2397
|
+
- `session_id` (string, optional) - Session ID from GetSession.
|
|
2398
|
+
- `session_state` (object, optional) - Session state from GetSession.
|
|
2399
|
+
|
|
2400
|
+
---
|
|
2401
|
+
|
|
2402
|
+
<a id="updateguistatuslow-low-level-gui-status"></a>
|
|
2403
|
+
#### UpdateGuiStatusLow (Low-Level / Gui Status)
|
|
2404
|
+
**Description:** [low-level] Update an ABAP GUI Status definition. Provide full CUA data (from ReadGuiStatus) with modifications.
|
|
2405
|
+
|
|
2406
|
+
**Source:** `src/handlers/gui_status/low/handleUpdateGuiStatus.ts`
|
|
2407
|
+
|
|
2408
|
+
**Available in:** `onprem`, `legacy`
|
|
2409
|
+
|
|
2410
|
+
**Parameters:**
|
|
2411
|
+
- `cua_data` (string, required) - Complete CUA data as JSON string (from ReadGuiStatus/GetGuiStatus). Modify and pass back.
|
|
2412
|
+
- `lock_handle` (string, required) - Lock handle from LockGuiStatusLow.
|
|
2413
|
+
- `program_name` (string, required) - Parent program name.
|
|
2414
|
+
- `session_id` (string, optional) - Session ID from GetSession.
|
|
2415
|
+
- `session_state` (object, optional) - Session state from GetSession.
|
|
2416
|
+
- `transport_request` (string, optional) - Transport request number.
|
|
2417
|
+
|
|
2418
|
+
---
|
|
2419
|
+
|
|
1650
2420
|
<a id="low-level-interface"></a>
|
|
1651
2421
|
### Low-Level / Interface
|
|
1652
2422
|
|
|
@@ -1694,7 +2464,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1694
2464
|
- `package_name` (string, required) - Package name (e.g., ZOK_LOCAL, $TMP for local objects).
|
|
1695
2465
|
- `session_id` (string, optional) - Session ID from GetSession. If not provided, a new session will be created.
|
|
1696
2466
|
- `session_state` (object, optional) - Session state from GetSession (cookies, csrf_token, cookie_store). Required if session_id is provided.
|
|
1697
|
-
- `transport_request` (string, optional) - Transport request
|
|
2467
|
+
- `transport_request` (string, optional) - Transport request. Required for transportable packages.
|
|
1698
2468
|
|
|
1699
2469
|
---
|
|
1700
2470
|
|
|
@@ -1708,7 +2478,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1708
2478
|
|
|
1709
2479
|
**Parameters:**
|
|
1710
2480
|
- `interface_name` (string, required) - Interface name (e.g., Z_MY_PROGRAM).
|
|
1711
|
-
- `transport_request` (string, optional) - Transport request
|
|
2481
|
+
- `transport_request` (string, optional) - Transport request. Required unless the object is local ($TMP).
|
|
1712
2482
|
|
|
1713
2483
|
---
|
|
1714
2484
|
|
|
@@ -1808,7 +2578,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1808
2578
|
- `connection_config` (object, optional) - Optional SAP connection config to create a fresh connection for deletion. Useful when the existing connection config is unavailable.
|
|
1809
2579
|
- `force_new_connection` (boolean, optional) - Force creation of a new connection (bypass cache). Useful when package was locked/unlocked and needs to be deleted in a fresh session. Default: false.
|
|
1810
2580
|
- `package_name` (string, required) - Package name (e.g., Z_MY_PROGRAM).
|
|
1811
|
-
- `transport_request` (string, optional) - Transport request
|
|
2581
|
+
- `transport_request` (string, optional) - Transport request. Required unless the object is local ($TMP).
|
|
1812
2582
|
|
|
1813
2583
|
---
|
|
1814
2584
|
|
|
@@ -1905,14 +2675,15 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1905
2675
|
**Available in:** `onprem`, `legacy`
|
|
1906
2676
|
|
|
1907
2677
|
**Parameters:**
|
|
1908
|
-
- `application` (string, optional (default: *').)) - Application area (optional, default:
|
|
2678
|
+
- `application` (string, optional (default: *').)) - Application area (optional, default: '*').
|
|
1909
2679
|
- `description` (string, required) - Program description.
|
|
1910
2680
|
- `package_name` (string, required) - Package name (e.g., ZOK_LOCAL, $TMP for local objects).
|
|
1911
2681
|
- `program_name` (string, required) - Program name (e.g., Z_TEST_PROGRAM). Must follow SAP naming conventions.
|
|
1912
|
-
- `program_type` (string, optional) - Program type:
|
|
2682
|
+
- `program_type` (string, optional) - Program type: 'executable', 'include', 'module_pool', 'function_group', 'class_pool', 'interface_pool' (optional).
|
|
1913
2683
|
- `session_id` (string, optional) - Session ID from GetSession. If not provided, a new session will be created.
|
|
1914
2684
|
- `session_state` (object, optional) - Session state from GetSession (cookies, csrf_token, cookie_store). Required if session_id is provided.
|
|
1915
|
-
- `
|
|
2685
|
+
- `skip_check` (boolean, optional) - Skip the post-create syntax check on the newly created program shell. Default: false. Set to true when chaining multiple low-level calls where the caller will run CheckProgramLow explicitly later.
|
|
2686
|
+
- `transport_request` (string, optional) - Transport request. Required for transportable packages.
|
|
1916
2687
|
|
|
1917
2688
|
---
|
|
1918
2689
|
|
|
@@ -1926,7 +2697,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1926
2697
|
|
|
1927
2698
|
**Parameters:**
|
|
1928
2699
|
- `program_name` (string, required) - Program name (e.g., Z_MY_PROGRAM).
|
|
1929
|
-
- `transport_request` (string, optional) - Transport request
|
|
2700
|
+
- `transport_request` (string, optional) - Transport request. Required unless the object is local ($TMP).
|
|
1930
2701
|
|
|
1931
2702
|
---
|
|
1932
2703
|
|
|
@@ -1974,6 +2745,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1974
2745
|
- `program_name` (string, required) - Program name (e.g., Z_TEST_PROGRAM). Program must already exist.
|
|
1975
2746
|
- `session_id` (string, optional) - Session ID from GetSession. If not provided, a new session will be created.
|
|
1976
2747
|
- `session_state` (object, optional) - Session state from GetSession (cookies, csrf_token, cookie_store). Required if session_id is provided.
|
|
2748
|
+
- `skip_check` (boolean, optional) - Skip the pre-write syntax check of the new source. Default: false. Set to true when chaining multiple low-level calls where the caller will run CheckProgramLow explicitly before this update.
|
|
1977
2749
|
- `source_code` (string, required) - Complete ABAP program source code.
|
|
1978
2750
|
|
|
1979
2751
|
---
|
|
@@ -1995,6 +2767,111 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
1995
2767
|
|
|
1996
2768
|
---
|
|
1997
2769
|
|
|
2770
|
+
<a id="low-level-screen"></a>
|
|
2771
|
+
### Low-Level / Screen
|
|
2772
|
+
|
|
2773
|
+
<a id="activatescreenlow-low-level-screen"></a>
|
|
2774
|
+
#### ActivateScreenLow (Low-Level / Screen)
|
|
2775
|
+
**Description:** [low-level] Activate an ABAP program to make Screen changes active.
|
|
2776
|
+
|
|
2777
|
+
**Source:** `src/handlers/screen/low/handleActivateScreen.ts`
|
|
2778
|
+
|
|
2779
|
+
**Available in:** `onprem`, `legacy`
|
|
2780
|
+
|
|
2781
|
+
**Parameters:**
|
|
2782
|
+
- `program_name` (string, required) - Parent program name.
|
|
2783
|
+
- `session_id` (string, optional) - Session ID from GetSession.
|
|
2784
|
+
- `session_state` (object, optional) - Session state from GetSession.
|
|
2785
|
+
|
|
2786
|
+
---
|
|
2787
|
+
|
|
2788
|
+
<a id="createscreenlow-low-level-screen"></a>
|
|
2789
|
+
#### CreateScreenLow (Low-Level / Screen)
|
|
2790
|
+
**Description:** [low-level] Create a new ABAP Screen (Dynpro) on an existing program.
|
|
2791
|
+
|
|
2792
|
+
**Source:** `src/handlers/screen/low/handleCreateScreen.ts`
|
|
2793
|
+
|
|
2794
|
+
**Available in:** `onprem`, `legacy`
|
|
2795
|
+
|
|
2796
|
+
**Parameters:**
|
|
2797
|
+
- `description` (string, optional) - Screen description.
|
|
2798
|
+
- `dynpro_data` (string, optional) - Full screen definition as JSON (header, containers, fields_to_containers, flow_logic). If omitted, creates a minimal empty screen.
|
|
2799
|
+
- `program_name` (string, required) - Parent program name.
|
|
2800
|
+
- `screen_number` (string, required) - Screen number to create (e.g., 0100).
|
|
2801
|
+
- `session_id` (string, optional) - Session ID from GetSession.
|
|
2802
|
+
- `session_state` (object, optional) - Session state from GetSession.
|
|
2803
|
+
- `skip_check` (boolean, optional) - Skip post-write syntax check. Default: false. When false, runs a program-tree syntax check on the parent program after DYNPRO_INSERT and surfaces any flow-logic errors with line numbers.
|
|
2804
|
+
|
|
2805
|
+
---
|
|
2806
|
+
|
|
2807
|
+
<a id="deletescreenlow-low-level-screen"></a>
|
|
2808
|
+
#### DeleteScreenLow (Low-Level / Screen)
|
|
2809
|
+
**Description:** [low-level] Delete an ABAP Screen (Dynpro) from a program.
|
|
2810
|
+
|
|
2811
|
+
**Source:** `src/handlers/screen/low/handleDeleteScreen.ts`
|
|
2812
|
+
|
|
2813
|
+
**Available in:** `onprem`, `legacy`
|
|
2814
|
+
|
|
2815
|
+
**Parameters:**
|
|
2816
|
+
- `lock_handle` (string, required) - Lock handle from LockScreenLow.
|
|
2817
|
+
- `program_name` (string, required) - Parent program name.
|
|
2818
|
+
- `screen_number` (string, required) - Screen number (e.g., 0100).
|
|
2819
|
+
- `session_id` (string, optional) - Session ID from GetSession.
|
|
2820
|
+
- `session_state` (object, optional) - Session state from GetSession.
|
|
2821
|
+
|
|
2822
|
+
---
|
|
2823
|
+
|
|
2824
|
+
<a id="lockscreenlow-low-level-screen"></a>
|
|
2825
|
+
#### LockScreenLow (Low-Level / Screen)
|
|
2826
|
+
**Description:** [low-level] Lock a program for Screen modification. Returns lock handle for subsequent operations.
|
|
2827
|
+
|
|
2828
|
+
**Source:** `src/handlers/screen/low/handleLockScreen.ts`
|
|
2829
|
+
|
|
2830
|
+
**Available in:** `onprem`, `legacy`
|
|
2831
|
+
|
|
2832
|
+
**Parameters:**
|
|
2833
|
+
- `program_name` (string, required) - Parent program name.
|
|
2834
|
+
- `screen_number` (string, optional) - Screen number (for reference).
|
|
2835
|
+
- `session_id` (string, optional) - Session ID from GetSession.
|
|
2836
|
+
- `session_state` (object, optional) - Session state from GetSession.
|
|
2837
|
+
|
|
2838
|
+
---
|
|
2839
|
+
|
|
2840
|
+
<a id="unlockscreenlow-low-level-screen"></a>
|
|
2841
|
+
#### UnlockScreenLow (Low-Level / Screen)
|
|
2842
|
+
**Description:** [low-level] Unlock a program after Screen modification.
|
|
2843
|
+
|
|
2844
|
+
**Source:** `src/handlers/screen/low/handleUnlockScreen.ts`
|
|
2845
|
+
|
|
2846
|
+
**Available in:** `onprem`, `legacy`
|
|
2847
|
+
|
|
2848
|
+
**Parameters:**
|
|
2849
|
+
- `lock_handle` (string, required) - Lock handle from LockScreenLow.
|
|
2850
|
+
- `program_name` (string, required) - Parent program name.
|
|
2851
|
+
- `session_id` (string, optional) - Session ID from GetSession.
|
|
2852
|
+
- `session_state` (object, optional) - Session state from GetSession.
|
|
2853
|
+
|
|
2854
|
+
---
|
|
2855
|
+
|
|
2856
|
+
<a id="updatescreenlow-low-level-screen"></a>
|
|
2857
|
+
#### UpdateScreenLow (Low-Level / Screen)
|
|
2858
|
+
**Description:** [low-level] Update an ABAP Screen (Dynpro) definition. Provide full screen data as JSON.
|
|
2859
|
+
|
|
2860
|
+
**Source:** `src/handlers/screen/low/handleUpdateScreen.ts`
|
|
2861
|
+
|
|
2862
|
+
**Available in:** `onprem`, `legacy`
|
|
2863
|
+
|
|
2864
|
+
**Parameters:**
|
|
2865
|
+
- `dynpro_data` (string, required) - Complete screen definition as JSON (header, containers, fields_to_containers, flow_logic).
|
|
2866
|
+
- `lock_handle` (string, required) - Lock handle from LockScreenLow.
|
|
2867
|
+
- `program_name` (string, required) - Parent program name.
|
|
2868
|
+
- `screen_number` (string, required) - Screen number (e.g., 0100).
|
|
2869
|
+
- `session_id` (string, optional) - Session ID from GetSession.
|
|
2870
|
+
- `session_state` (object, optional) - Session state from GetSession.
|
|
2871
|
+
- `skip_check` (boolean, optional) - Skip post-write syntax check. Default: false. When false, runs a program-tree syntax check on the parent program after DYNPRO_INSERT and surfaces any flow-logic errors with line numbers.
|
|
2872
|
+
|
|
2873
|
+
---
|
|
2874
|
+
|
|
1998
2875
|
<a id="low-level-view"></a>
|
|
1999
2876
|
### Low-Level / View
|
|
2000
2877
|
|
|
@@ -2025,7 +2902,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
2025
2902
|
- `ddl_source` (string, optional) - Optional DDL source code to validate (for checking new/unsaved code). If provided, code will be base64 encoded and sent in check request body.
|
|
2026
2903
|
- `session_id` (string, optional) - Session ID from GetSession. If not provided, a new session will be created.
|
|
2027
2904
|
- `session_state` (object, optional) - Session state from GetSession (cookies, csrf_token, cookie_store). Required if session_id is provided.
|
|
2028
|
-
- `version` (string, optional) - Version to check:
|
|
2905
|
+
- `version` (string, optional) - Version to check: 'active' (last activated) or 'inactive' (current unsaved). Default: inactive
|
|
2029
2906
|
- `view_name` (string, required) - View name (e.g., Z_MY_PROGRAM).
|
|
2030
2907
|
|
|
2031
2908
|
---
|
|
@@ -2039,14 +2916,15 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
2039
2916
|
**Available in:** `onprem`, `cloud`, `legacy`
|
|
2040
2917
|
|
|
2041
2918
|
**Parameters:**
|
|
2042
|
-
- `application` (string, optional (default: *').)) - Application area (optional, default:
|
|
2919
|
+
- `application` (string, optional (default: *').)) - Application area (optional, default: '*').
|
|
2043
2920
|
- `description` (string, required) - View description.
|
|
2044
2921
|
- `package_name` (string, required) - Package name (e.g., ZOK_LOCAL, $TMP for local objects).
|
|
2045
2922
|
- `session_id` (string, optional) - Session ID from GetSession. If not provided, a new session will be created.
|
|
2046
2923
|
- `session_state` (object, optional) - Session state from GetSession (cookies, csrf_token, cookie_store). Required if session_id is provided.
|
|
2047
|
-
- `
|
|
2924
|
+
- `skip_check` (boolean, optional) - Skip post-create syntax check. Default: false. When false, runs a syntax check on the freshly created view shell and surfaces any errors with line numbers.
|
|
2925
|
+
- `transport_request` (string, optional) - Transport request. Required for transportable packages.
|
|
2048
2926
|
- `view_name` (string, required) - View name (e.g., Z_TEST_PROGRAM). Must follow SAP naming conventions.
|
|
2049
|
-
- `view_type` (string, optional) - View type:
|
|
2927
|
+
- `view_type` (string, optional) - View type: 'executable', 'include', 'module_pool', 'function_group', 'class_pool', 'interface_pool' (optional).
|
|
2050
2928
|
|
|
2051
2929
|
---
|
|
2052
2930
|
|
|
@@ -2059,7 +2937,7 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
2059
2937
|
**Available in:** `onprem`, `cloud`, `legacy`
|
|
2060
2938
|
|
|
2061
2939
|
**Parameters:**
|
|
2062
|
-
- `transport_request` (string, optional) - Transport request
|
|
2940
|
+
- `transport_request` (string, optional) - Transport request. Required unless the object is local ($TMP).
|
|
2063
2941
|
- `view_name` (string, required) - View name (e.g., Z_MY_PROGRAM).
|
|
2064
2942
|
|
|
2065
2943
|
---
|
|
@@ -2104,10 +2982,11 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
2104
2982
|
**Available in:** `onprem`, `cloud`, `legacy`
|
|
2105
2983
|
|
|
2106
2984
|
**Parameters:**
|
|
2107
|
-
- `ddl_source` (string, required) - Complete DDL source code. CDS: include @AbapCatalog.sqlViewName and other annotations. Classic: plain
|
|
2985
|
+
- `ddl_source` (string, required) - Complete DDL source code. CDS: include @AbapCatalog.sqlViewName and other annotations. Classic: plain 'define view' statement.
|
|
2108
2986
|
- `lock_handle` (string, required) - Lock handle from LockObject. Required for update operation.
|
|
2109
2987
|
- `session_id` (string, optional) - Session ID from GetSession. If not provided, a new session will be created.
|
|
2110
2988
|
- `session_state` (object, optional) - Session state from GetSession (cookies, csrf_token, cookie_store). Required if session_id is provided.
|
|
2989
|
+
- `skip_check` (boolean, optional) - Skip pre-write syntax check on ddl_source. Default: false. When false, runs a syntax check on the proposed code BEFORE uploading it and surfaces any errors with line numbers — the broken source never lands on SAP.
|
|
2111
2990
|
- `view_name` (string, required) - View name (e.g., ZOK_R_TEST_0002). View must already exist.
|
|
2112
2991
|
|
|
2113
2992
|
---
|
|
@@ -2129,4 +3008,4 @@ Legacy systems support a subset of tools — primarily Class, Interface, View, P
|
|
|
2129
3008
|
|
|
2130
3009
|
---
|
|
2131
3010
|
|
|
2132
|
-
*Last updated: 2026-
|
|
3011
|
+
*Last updated: 2026-10-28*
|