@mcp-abap-adt/core 2.1.2 → 2.1.3
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 +10 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +0 -5
- package/dist/lib/utils.js.map +1 -1
- package/docs/README.md +1 -2
- package/docs/architecture/CONNECTION_ISOLATION.md +0 -1
- package/docs/architecture/README.md +1 -1
- package/docs/architecture/STATEFUL_SESSION_GUIDE.md +28 -717
- package/docs/deployment/DOCKER.md +1 -18
- package/docs/development/roadmaps/archive/test_locking_roadmap.md +0 -3
- package/docs/installation/CLINE_CONFIGURATION.md +1 -32
- package/docs/installation/platforms/INSTALL_LINUX.md +1 -1
- package/docs/installation/platforms/INSTALL_MACOS.md +1 -1
- package/docs/installation/platforms/INSTALL_WINDOWS.md +1 -1
- package/docs/user-guide/AVAILABLE_TOOLS.md +2 -2
- package/docs/user-guide/CLIENT_CONFIGURATION.md +1 -1
- package/docs/user-guide/HANDLERS_MANAGEMENT.md +2 -2
- package/docs/user-guide/README.md +0 -2
- package/package.json +1 -2
- package/bin/README.md +0 -125
- package/bin/lock-object.js +0 -240
- package/docs/user-guide/scenarios/COMMON_PATTERNS.md +0 -603
- package/docs/user-guide/scenarios/CREATING_CDS_VIEWS.md +0 -441
- package/docs/user-guide/scenarios/CREATING_CLASSES.md +0 -456
- package/docs/user-guide/scenarios/CREATING_FUNCTION_GROUPS.md +0 -582
- package/docs/user-guide/scenarios/README.md +0 -51
- package/docs/user-guide/scenarios/SESSION_MANAGEMENT.md +0 -335
- package/docs/user-guide/usage/README.md +0 -137
- package/docs/user-guide/usage/rap-business-objects/README.md +0 -28
- package/docs/user-guide/usage/rap-business-objects/creating-rap-bo.md +0 -189
- package/docs/user-guide/usage/rap-business-objects/deferred-activation.md +0 -82
- package/docs/user-guide/usage/simple-objects/README.md +0 -23
- package/docs/user-guide/usage/simple-objects/classes-high.md +0 -32
- package/docs/user-guide/usage/simple-objects/classes-low.md +0 -165
- package/docs/user-guide/usage/simple-objects/data-elements-high.md +0 -48
- package/docs/user-guide/usage/simple-objects/data-elements-low.md +0 -144
- package/docs/user-guide/usage/simple-objects/domains-high.md +0 -32
- package/docs/user-guide/usage/simple-objects/domains-low.md +0 -144
- package/docs/user-guide/usage/simple-objects/function-groups-high.md +0 -32
- package/docs/user-guide/usage/simple-objects/function-groups-low.md +0 -144
- package/docs/user-guide/usage/simple-objects/function-modules-high.md +0 -32
- package/docs/user-guide/usage/simple-objects/function-modules-low.md +0 -160
- package/docs/user-guide/usage/simple-objects/interfaces-high.md +0 -32
- package/docs/user-guide/usage/simple-objects/interfaces-low.md +0 -160
- package/docs/user-guide/usage/simple-objects/programs-high.md +0 -32
- package/docs/user-guide/usage/simple-objects/programs-low.md +0 -160
- package/docs/user-guide/usage/simple-objects/service-definitions-high.md +0 -32
- package/docs/user-guide/usage/simple-objects/service-definitions-low.md +0 -160
- package/docs/user-guide/usage/simple-objects/structures-high.md +0 -32
- package/docs/user-guide/usage/simple-objects/structures-low.md +0 -160
- package/docs/user-guide/usage/simple-objects/tables-high.md +0 -32
- package/docs/user-guide/usage/simple-objects/tables-low.md +0 -165
- package/docs/user-guide/usage/simple-objects/views-high.md +0 -32
- package/docs/user-guide/usage/simple-objects/views-low.md +0 -160
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
# Creating and Updating ABAP Interfaces (Low-Level)
|
|
2
|
-
|
|
3
|
-
## Step 1: Get Session
|
|
4
|
-
|
|
5
|
-
**Tool**: `GetSession`
|
|
6
|
-
|
|
7
|
-
**Request**:
|
|
8
|
-
```json
|
|
9
|
-
{"force_new":false}
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
**Response**:
|
|
13
|
-
```json
|
|
14
|
-
{"success":true,"session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## Step 2: Validate Interface
|
|
20
|
-
|
|
21
|
-
**Tool**: `ValidateInterfaceLow`
|
|
22
|
-
|
|
23
|
-
**Request**:
|
|
24
|
-
```json
|
|
25
|
-
{"interface_name":"ZIF_TEST_001","package_name":"ZOK_LAB","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
**Response**:
|
|
29
|
-
```json
|
|
30
|
-
{"success":true,"valid":true,"message":"Interface name ZIF_TEST_001 is valid and available"}
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
## Step 3: Create Interface
|
|
36
|
-
|
|
37
|
-
**Tool**: `CreateInterfaceLow`
|
|
38
|
-
|
|
39
|
-
**Request**:
|
|
40
|
-
```json
|
|
41
|
-
{"interface_name":"ZIF_TEST_001","description":"Test interface","package_name":"ZOK_LAB","transport_request":"E19K905635","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
**Response**:
|
|
45
|
-
```json
|
|
46
|
-
{"success":true,"interface_name":"ZIF_TEST_001","uri":"/sap/bc/adt/oo/interfaces/zif_test_001","message":"Interface created successfully"}
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## Step 4: Lock Interface
|
|
52
|
-
|
|
53
|
-
**Tool**: `LockInterfaceLow`
|
|
54
|
-
|
|
55
|
-
**Request**:
|
|
56
|
-
```json
|
|
57
|
-
{"interface_name":"ZIF_TEST_001","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
**Response**:
|
|
61
|
-
```json
|
|
62
|
-
{"success":true,"interface_name":"ZIF_TEST_001","lock_handle":"LOCK_HANDLE_123456789","message":"Interface locked successfully"}
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
|
-
## Step 5: Check Code BEFORE Update (CRITICAL)
|
|
68
|
-
|
|
69
|
-
**Tool**: `CheckInterfaceLow`
|
|
70
|
-
|
|
71
|
-
**Request**:
|
|
72
|
-
```json
|
|
73
|
-
{"interface_name":"ZIF_TEST_001","source_code":"INTERFACE zif_test_001\n PUBLIC.\n\n METHODS: get_value\n RETURNING VALUE(rv_result) TYPE string,\n set_value\n IMPORTING iv_value TYPE string.\n\nENDINTERFACE.","version":"inactive","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
**Response** (Passed):
|
|
77
|
-
```json
|
|
78
|
-
{"success":true,"checked":true,"messages":[],"errors":[],"warnings":[],"message":"Syntax check passed"}
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
---
|
|
82
|
-
|
|
83
|
-
## Step 6: Update Interface (Only if Check Passed)
|
|
84
|
-
|
|
85
|
-
**Tool**: `UpdateInterfaceLow`
|
|
86
|
-
|
|
87
|
-
**Request**:
|
|
88
|
-
```json
|
|
89
|
-
{"interface_name":"ZIF_TEST_001","source_code":"INTERFACE zif_test_001\n PUBLIC.\n\n METHODS: get_value\n RETURNING VALUE(rv_result) TYPE string,\n set_value\n IMPORTING iv_value TYPE string.\n\nENDINTERFACE.","lock_handle":"LOCK_HANDLE_123456789","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
**Response**:
|
|
93
|
-
```json
|
|
94
|
-
{"success":true,"interface_name":"ZIF_TEST_001","message":"Interface updated successfully"}
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
---
|
|
98
|
-
|
|
99
|
-
## Step 7: Unlock Interface
|
|
100
|
-
|
|
101
|
-
**Tool**: `UnlockInterfaceLow`
|
|
102
|
-
|
|
103
|
-
**Request**:
|
|
104
|
-
```json
|
|
105
|
-
{"interface_name":"ZIF_TEST_001","lock_handle":"LOCK_HANDLE_123456789","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
**Response**:
|
|
109
|
-
```json
|
|
110
|
-
{"success":true,"interface_name":"ZIF_TEST_001","message":"Interface unlocked successfully"}
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## Step 8: Check Inactive Version
|
|
116
|
-
|
|
117
|
-
**Tool**: `CheckInterfaceLow`
|
|
118
|
-
|
|
119
|
-
**Request**:
|
|
120
|
-
```json
|
|
121
|
-
{"interface_name":"ZIF_TEST_001","version":"inactive","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
**Response**:
|
|
125
|
-
```json
|
|
126
|
-
{"success":true,"checked":true,"messages":[],"errors":[],"warnings":[],"message":"Syntax check passed"}
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
---
|
|
130
|
-
|
|
131
|
-
## Step 9: Activate Interface
|
|
132
|
-
|
|
133
|
-
**Option A: Individual**
|
|
134
|
-
|
|
135
|
-
**Tool**: `ActivateInterfaceLow`
|
|
136
|
-
|
|
137
|
-
**Request**:
|
|
138
|
-
```json
|
|
139
|
-
{"interface_name":"ZIF_TEST_001","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
**Response**:
|
|
143
|
-
```json
|
|
144
|
-
{"success":true,"interface_name":"ZIF_TEST_001","activation":{"activated":true,"checked":true,"generated":false},"messages":[],"warnings":[],"errors":[],"message":"Interface activated successfully"}
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
**Option B: Group Activation**
|
|
148
|
-
|
|
149
|
-
**Tool**: `ActivateObjectLow`
|
|
150
|
-
|
|
151
|
-
**Request**:
|
|
152
|
-
```json
|
|
153
|
-
{"objects":[{"name":"ZIF_TEST_001","type":"INTF/OI"},{"name":"ZCL_TEST_001","type":"CLAS/OC"}],"preaudit":true}
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
**Response**:
|
|
157
|
-
```json
|
|
158
|
-
{"success":true,"objects_count":2,"objects":[{"name":"ZIF_TEST_001","type":"INTF/OI","uri":"/sap/bc/adt/oo/interfaces/zif_test_001"},{"name":"ZCL_TEST_001","type":"CLAS/OC","uri":"/sap/bc/adt/oo/classes/zcl_test_001"}],"activation":{"activated":true,"checked":true,"generated":false},"messages":[],"warnings":[],"errors":[],"message":"Successfully activated 2 object(s)"}
|
|
159
|
-
```
|
|
160
|
-
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# Creating and Updating ABAP Programs (High-Level)
|
|
2
|
-
|
|
3
|
-
## Create Program
|
|
4
|
-
|
|
5
|
-
**Tool**: `CreateProgram`
|
|
6
|
-
|
|
7
|
-
**Request**:
|
|
8
|
-
```json
|
|
9
|
-
{"program_name":"Z_TEST_PROG_001","description":"Test program","package_name":"ZOK_LAB","transport_request":"E19K905635","program_type":"executable","source_code":"REPORT z_test_prog_001.\n\nSTART-OF-SELECTION.\n WRITE: / 'Hello World'.","activate":true}
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
**Response**:
|
|
13
|
-
```json
|
|
14
|
-
{"success":true,"program_name":"Z_TEST_PROG_001","uri":"/sap/bc/adt/programs/programs/z_test_prog_001","message":"Program Z_TEST_PROG_001 created and activated successfully","activation":{"activated":true,"checked":true,"generated":false},"hasActivationWarnings":false}
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## Update Program
|
|
20
|
-
|
|
21
|
-
**Tool**: `UpdateProgram`
|
|
22
|
-
|
|
23
|
-
**Request**:
|
|
24
|
-
```json
|
|
25
|
-
{"program_name":"Z_TEST_PROG_001","source_code":"REPORT z_test_prog_001.\n\nDATA: lv_message TYPE string VALUE 'Hello World'.\n\nSTART-OF-SELECTION.\n WRITE: / lv_message.","activate":true}
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
**Response**:
|
|
29
|
-
```json
|
|
30
|
-
{"success":true,"program_name":"Z_TEST_PROG_001","uri":"/sap/bc/adt/programs/programs/z_test_prog_001","message":"Program Z_TEST_PROG_001 updated and activated successfully","activation":{"activated":true,"checked":true,"generated":false},"hasActivationWarnings":false}
|
|
31
|
-
```
|
|
32
|
-
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
# Creating and Updating ABAP Programs (Low-Level)
|
|
2
|
-
|
|
3
|
-
## Step 1: Get Session
|
|
4
|
-
|
|
5
|
-
**Tool**: `GetSession`
|
|
6
|
-
|
|
7
|
-
**Request**:
|
|
8
|
-
```json
|
|
9
|
-
{"force_new":false}
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
**Response**:
|
|
13
|
-
```json
|
|
14
|
-
{"success":true,"session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## Step 2: Validate Program
|
|
20
|
-
|
|
21
|
-
**Tool**: `ValidateProgramLow`
|
|
22
|
-
|
|
23
|
-
**Request**:
|
|
24
|
-
```json
|
|
25
|
-
{"program_name":"Z_TEST_PROG_001","package_name":"ZOK_LAB","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
**Response**:
|
|
29
|
-
```json
|
|
30
|
-
{"success":true,"valid":true,"message":"Program name Z_TEST_PROG_001 is valid and available"}
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
## Step 3: Create Program
|
|
36
|
-
|
|
37
|
-
**Tool**: `CreateProgramLow`
|
|
38
|
-
|
|
39
|
-
**Request**:
|
|
40
|
-
```json
|
|
41
|
-
{"program_name":"Z_TEST_PROG_001","description":"Test program","package_name":"ZOK_LAB","transport_request":"E19K905635","program_type":"executable","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
**Response**:
|
|
45
|
-
```json
|
|
46
|
-
{"success":true,"program_name":"Z_TEST_PROG_001","uri":"/sap/bc/adt/programs/programs/z_test_prog_001","message":"Program created successfully"}
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## Step 4: Lock Program
|
|
52
|
-
|
|
53
|
-
**Tool**: `LockProgramLow`
|
|
54
|
-
|
|
55
|
-
**Request**:
|
|
56
|
-
```json
|
|
57
|
-
{"program_name":"Z_TEST_PROG_001","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
**Response**:
|
|
61
|
-
```json
|
|
62
|
-
{"success":true,"program_name":"Z_TEST_PROG_001","lock_handle":"LOCK_HANDLE_123456789","message":"Program locked successfully"}
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
|
-
## Step 5: Check Code BEFORE Update (CRITICAL)
|
|
68
|
-
|
|
69
|
-
**Tool**: `CheckProgramLow`
|
|
70
|
-
|
|
71
|
-
**Request**:
|
|
72
|
-
```json
|
|
73
|
-
{"program_name":"Z_TEST_PROG_001","source_code":"REPORT z_test_prog_001.\n\nDATA: lv_message TYPE string VALUE 'Hello World'.\n\nSTART-OF-SELECTION.\n WRITE: / lv_message.","version":"inactive","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
**Response** (Passed):
|
|
77
|
-
```json
|
|
78
|
-
{"success":true,"checked":true,"messages":[],"errors":[],"warnings":[],"message":"Syntax check passed"}
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
---
|
|
82
|
-
|
|
83
|
-
## Step 6: Update Program (Only if Check Passed)
|
|
84
|
-
|
|
85
|
-
**Tool**: `UpdateProgramLow`
|
|
86
|
-
|
|
87
|
-
**Request**:
|
|
88
|
-
```json
|
|
89
|
-
{"program_name":"Z_TEST_PROG_001","source_code":"REPORT z_test_prog_001.\n\nDATA: lv_message TYPE string VALUE 'Hello World'.\n\nSTART-OF-SELECTION.\n WRITE: / lv_message.","lock_handle":"LOCK_HANDLE_123456789","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
**Response**:
|
|
93
|
-
```json
|
|
94
|
-
{"success":true,"program_name":"Z_TEST_PROG_001","message":"Program updated successfully"}
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
---
|
|
98
|
-
|
|
99
|
-
## Step 7: Unlock Program
|
|
100
|
-
|
|
101
|
-
**Tool**: `UnlockProgramLow`
|
|
102
|
-
|
|
103
|
-
**Request**:
|
|
104
|
-
```json
|
|
105
|
-
{"program_name":"Z_TEST_PROG_001","lock_handle":"LOCK_HANDLE_123456789","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
**Response**:
|
|
109
|
-
```json
|
|
110
|
-
{"success":true,"program_name":"Z_TEST_PROG_001","message":"Program unlocked successfully"}
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## Step 8: Check Inactive Version
|
|
116
|
-
|
|
117
|
-
**Tool**: `CheckProgramLow`
|
|
118
|
-
|
|
119
|
-
**Request**:
|
|
120
|
-
```json
|
|
121
|
-
{"program_name":"Z_TEST_PROG_001","version":"inactive","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
**Response**:
|
|
125
|
-
```json
|
|
126
|
-
{"success":true,"checked":true,"messages":[],"errors":[],"warnings":[],"message":"Syntax check passed"}
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
---
|
|
130
|
-
|
|
131
|
-
## Step 9: Activate Program
|
|
132
|
-
|
|
133
|
-
**Option A: Individual**
|
|
134
|
-
|
|
135
|
-
**Tool**: `ActivateProgramLow`
|
|
136
|
-
|
|
137
|
-
**Request**:
|
|
138
|
-
```json
|
|
139
|
-
{"program_name":"Z_TEST_PROG_001","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
**Response**:
|
|
143
|
-
```json
|
|
144
|
-
{"success":true,"program_name":"Z_TEST_PROG_001","activation":{"activated":true,"checked":true,"generated":false},"messages":[],"warnings":[],"errors":[],"message":"Program activated successfully"}
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
**Option B: Group Activation**
|
|
148
|
-
|
|
149
|
-
**Tool**: `ActivateObjectLow`
|
|
150
|
-
|
|
151
|
-
**Request**:
|
|
152
|
-
```json
|
|
153
|
-
{"objects":[{"name":"Z_TEST_PROG_001","type":"PROG/P"},{"name":"Z_TEST_PROG_002","type":"PROG/P"}],"preaudit":true}
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
**Response**:
|
|
157
|
-
```json
|
|
158
|
-
{"success":true,"objects_count":2,"objects":[{"name":"Z_TEST_PROG_001","type":"PROG/P","uri":"/sap/bc/adt/programs/programs/z_test_prog_001"},{"name":"Z_TEST_PROG_002","type":"PROG/P","uri":"/sap/bc/adt/programs/programs/z_test_prog_002"}],"activation":{"activated":true,"checked":true,"generated":false},"messages":[],"warnings":[],"errors":[],"message":"Successfully activated 2 object(s)"}
|
|
159
|
-
```
|
|
160
|
-
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# Creating and Updating ABAP Service Definitions (High-Level)
|
|
2
|
-
|
|
3
|
-
## Create Service Definition
|
|
4
|
-
|
|
5
|
-
**Tool**: `CreateServiceDefinition`
|
|
6
|
-
|
|
7
|
-
**Request**:
|
|
8
|
-
```json
|
|
9
|
-
{"service_definition_name":"ZSD_TEST_001","description":"Test service definition","package_name":"ZOK_LAB","transport_request":"E19K905635","source_code":"@EndUserText.label: 'Test Service Definition'\ndefine service ZSD_TEST_001 {\n expose ZCDS_TEST_001 as TestView;\n}","activate":true}
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
**Response**:
|
|
13
|
-
```json
|
|
14
|
-
{"success":true,"service_definition_name":"ZSD_TEST_001","uri":"/sap/bc/adt/core/srvb/srvbdefinitions/zsd_test_001","message":"Service definition ZSD_TEST_001 created and activated successfully"}
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## Update Service Definition
|
|
20
|
-
|
|
21
|
-
**Tool**: `UpdateServiceDefinition`
|
|
22
|
-
|
|
23
|
-
**Request**:
|
|
24
|
-
```json
|
|
25
|
-
{"service_definition_name":"ZSD_TEST_001","source_code":"@EndUserText.label: 'Test Service Definition Updated'\ndefine service ZSD_TEST_001 {\n expose ZCDS_TEST_001 as TestView;\n expose ZCDS_TEST_002 as TestView2;\n}","activate":true}
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
**Response**:
|
|
29
|
-
```json
|
|
30
|
-
{"success":true,"service_definition_name":"ZSD_TEST_001","uri":"/sap/bc/adt/core/srvb/srvbdefinitions/zsd_test_001","message":"Service definition ZSD_TEST_001 updated and activated successfully","activation":{"activated":true,"checked":true,"generated":false},"hasActivationWarnings":false}
|
|
31
|
-
```
|
|
32
|
-
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
# Creating and Updating ABAP Service Definitions (Low-Level)
|
|
2
|
-
|
|
3
|
-
## Step 1: Get Session
|
|
4
|
-
|
|
5
|
-
**Tool**: `GetSession`
|
|
6
|
-
|
|
7
|
-
**Request**:
|
|
8
|
-
```json
|
|
9
|
-
{"force_new":false}
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
**Response**:
|
|
13
|
-
```json
|
|
14
|
-
{"success":true,"session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## Step 2: Validate Service Definition
|
|
20
|
-
|
|
21
|
-
**Tool**: `ValidateServiceDefinitionLow`
|
|
22
|
-
|
|
23
|
-
**Request**:
|
|
24
|
-
```json
|
|
25
|
-
{"service_definition_name":"ZSD_TEST_001","package_name":"ZOK_LAB","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
**Response**:
|
|
29
|
-
```json
|
|
30
|
-
{"success":true,"valid":true,"message":"Service definition name ZSD_TEST_001 is valid and available"}
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
## Step 3: Create Service Definition
|
|
36
|
-
|
|
37
|
-
**Tool**: `CreateServiceDefinitionLow`
|
|
38
|
-
|
|
39
|
-
**Request**:
|
|
40
|
-
```json
|
|
41
|
-
{"service_definition_name":"ZSD_TEST_001","description":"Test service definition","package_name":"ZOK_LAB","transport_request":"E19K905635","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
**Response**:
|
|
45
|
-
```json
|
|
46
|
-
{"success":true,"service_definition_name":"ZSD_TEST_001","uri":"/sap/bc/adt/core/srvb/srvbdefinitions/zsd_test_001","message":"Service definition created successfully"}
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## Step 4: Lock Service Definition
|
|
52
|
-
|
|
53
|
-
**Tool**: `LockServiceDefinitionLow`
|
|
54
|
-
|
|
55
|
-
**Request**:
|
|
56
|
-
```json
|
|
57
|
-
{"service_definition_name":"ZSD_TEST_001","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
**Response**:
|
|
61
|
-
```json
|
|
62
|
-
{"success":true,"service_definition_name":"ZSD_TEST_001","lock_handle":"LOCK_HANDLE_123456789","message":"Service definition locked successfully"}
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
|
-
## Step 5: Check Code BEFORE Update (CRITICAL)
|
|
68
|
-
|
|
69
|
-
**Tool**: `CheckServiceDefinitionLow`
|
|
70
|
-
|
|
71
|
-
**Request**:
|
|
72
|
-
```json
|
|
73
|
-
{"service_definition_name":"ZSD_TEST_001","source_code":"@EndUserText.label: 'Test Service Definition'\ndefine service ZSD_TEST_001 {\n expose ZCDS_TEST_001 as TestView;\n}","version":"inactive","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
**Response** (Passed):
|
|
77
|
-
```json
|
|
78
|
-
{"success":true,"checked":true,"messages":[],"errors":[],"warnings":[],"message":"Syntax check passed"}
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
---
|
|
82
|
-
|
|
83
|
-
## Step 6: Update Service Definition (Only if Check Passed)
|
|
84
|
-
|
|
85
|
-
**Tool**: `UpdateServiceDefinitionLow`
|
|
86
|
-
|
|
87
|
-
**Request**:
|
|
88
|
-
```json
|
|
89
|
-
{"service_definition_name":"ZSD_TEST_001","source_code":"@EndUserText.label: 'Test Service Definition'\ndefine service ZSD_TEST_001 {\n expose ZCDS_TEST_001 as TestView;\n}","lock_handle":"LOCK_HANDLE_123456789","transport_request":"E19K905635","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
**Response**:
|
|
93
|
-
```json
|
|
94
|
-
{"success":true,"service_definition_name":"ZSD_TEST_001","message":"Service definition updated successfully"}
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
---
|
|
98
|
-
|
|
99
|
-
## Step 7: Unlock Service Definition
|
|
100
|
-
|
|
101
|
-
**Tool**: `UnlockServiceDefinitionLow`
|
|
102
|
-
|
|
103
|
-
**Request**:
|
|
104
|
-
```json
|
|
105
|
-
{"service_definition_name":"ZSD_TEST_001","lock_handle":"LOCK_HANDLE_123456789","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
**Response**:
|
|
109
|
-
```json
|
|
110
|
-
{"success":true,"service_definition_name":"ZSD_TEST_001","message":"Service definition unlocked successfully"}
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## Step 8: Check Inactive Version
|
|
116
|
-
|
|
117
|
-
**Tool**: `CheckServiceDefinitionLow`
|
|
118
|
-
|
|
119
|
-
**Request**:
|
|
120
|
-
```json
|
|
121
|
-
{"service_definition_name":"ZSD_TEST_001","version":"inactive","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
**Response**:
|
|
125
|
-
```json
|
|
126
|
-
{"success":true,"checked":true,"messages":[],"errors":[],"warnings":[],"message":"Syntax check passed"}
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
---
|
|
130
|
-
|
|
131
|
-
## Step 9: Activate Service Definition
|
|
132
|
-
|
|
133
|
-
**Option A: Individual**
|
|
134
|
-
|
|
135
|
-
**Tool**: `ActivateServiceDefinitionLow`
|
|
136
|
-
|
|
137
|
-
**Request**:
|
|
138
|
-
```json
|
|
139
|
-
{"service_definition_name":"ZSD_TEST_001","session_id":"a1b2c3d4e5f6789012345678901234567890abcd","session_state":{"cookies":"SAP_SESSIONID_E19_100=xyz123abc; Path=/; HttpOnly","csrf_token":"AbCdEf123456","cookie_store":{}}}
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
**Response**:
|
|
143
|
-
```json
|
|
144
|
-
{"success":true,"service_definition_name":"ZSD_TEST_001","activation":{"activated":true,"checked":true,"generated":false},"messages":[],"warnings":[],"errors":[],"message":"Service definition activated successfully"}
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
**Option B: Group Activation**
|
|
148
|
-
|
|
149
|
-
**Tool**: `ActivateObjectLow`
|
|
150
|
-
|
|
151
|
-
**Request**:
|
|
152
|
-
```json
|
|
153
|
-
{"objects":[{"name":"ZCDS_TEST_001","type":"DDLS/DF"},{"name":"ZSD_TEST_001","type":"SRVD/SRVD"}],"preaudit":true}
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
**Response**:
|
|
157
|
-
```json
|
|
158
|
-
{"success":true,"objects_count":2,"objects":[{"name":"ZCDS_TEST_001","type":"DDLS/DF","uri":"/sap/bc/adt/ddic/ddl/sources/zcds_test_001"},{"name":"ZSD_TEST_001","type":"SRVD/SRVD","uri":"/sap/bc/adt/core/srvb/srvbdefinitions/zsd_test_001"}],"activation":{"activated":true,"checked":true,"generated":false},"messages":[],"warnings":[],"errors":[],"message":"Successfully activated 2 object(s)"}
|
|
159
|
-
```
|
|
160
|
-
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# Creating and Updating ABAP Structures (High-Level)
|
|
2
|
-
|
|
3
|
-
## Create Structure
|
|
4
|
-
|
|
5
|
-
**Tool**: `CreateStructure`
|
|
6
|
-
|
|
7
|
-
**Request**:
|
|
8
|
-
```json
|
|
9
|
-
{"structure_name":"ZS_TEST_001","description":"Test structure","package_name":"ZOK_LAB","transport_request":"E19K905635","ddl_code":"@EndUserText.label: 'Test Structure'\n@AbapCatalog.enhancement.category: #NOT_EXTENSIBLE\ndefine structure zs_test_001 {\n client : abap.clnt;\n id : abap.char(10);\n name : abap.char(255);\n}","activate":true}
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
**Response**:
|
|
13
|
-
```json
|
|
14
|
-
{"success":true,"structure_name":"ZS_TEST_001","uri":"/sap/bc/adt/ddic/structures/zs_test_001","message":"Structure ZS_TEST_001 created and activated successfully","activation":{"activated":true,"checked":true,"generated":false},"hasActivationWarnings":false}
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## Update Structure
|
|
20
|
-
|
|
21
|
-
**Tool**: `UpdateStructure`
|
|
22
|
-
|
|
23
|
-
**Request**:
|
|
24
|
-
```json
|
|
25
|
-
{"structure_name":"ZS_TEST_001","ddl_code":"@EndUserText.label: 'Test Structure Updated'\n@AbapCatalog.enhancement.category: #NOT_EXTENSIBLE\ndefine structure zs_test_001 {\n client : abap.clnt;\n id : abap.char(10);\n name : abap.char(255);\n description : abap.char(500);\n}","activate":true}
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
**Response**:
|
|
29
|
-
```json
|
|
30
|
-
{"success":true,"structure_name":"ZS_TEST_001","uri":"/sap/bc/adt/ddic/structures/zs_test_001","message":"Structure ZS_TEST_001 updated and activated successfully","activation":{"activated":true,"checked":true,"generated":false},"hasActivationWarnings":false}
|
|
31
|
-
```
|
|
32
|
-
|