You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/abap-environment-rap100-generate-ui-service/abap-environment-rap100-generate-ui-service.md
+73-77Lines changed: 73 additions & 77 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,10 +106,82 @@ A Travel entity defines general travel data, such as the agency ID or customer I
106
106
6. Save  and activate  the changes.
107
107
108
108
109
+
### Generate transactional UI services
109
110
110
111
111
-
### Create data generator class
112
+
Create your OData v4 based UI services with the built-in ADT generator.
113
+
The generated business service will be transactional, draft-enabled, and enriched with UI semantics for the generation of the Fiori elements app.
114
+
115
+
116
+
1. Right-click your database table  **`ZRAP100_ATRAV###`** and select **Generate ABAP Repository Objects** from the context menu.
117
+
118
+
2. Maintain the required information (`###` is your group ID) and click **Next >**:
| | **Service Definition** | Service Definition Name: **`ZRAP100_UI_TRAVEL_###`** |
158
+
| | **Service Binding** | Service Binding Name: **`ZRAP100_UI_TRAVEL_O4_###`** |
159
+
| | | Binding Type: **`OData V4 - UI`** |
160
+
161
+

162
+
163
+
164
+
4. Go to the **Project Explorer**, select your package  **`ZRAP100_###`**, refresh it by pressing **F5**, and check all generated ABAP repository objects
165
+
166
+

167
+
168
+
Below is a brief explanation of the generated artefacts for the different RAP layers: Base BO, BO Projection, and Business Service.
169
+
170
+
**Base Business Object (BO) `ZRAP100_I_TRAVEL_###`**
171
+
172
+

173
+
174
+
**BO Projection `ZRAP100_C_TRAVEL_###`**
175
+
176
+
The BO projection represents the consumption specific view on the BO data model and behavior.
177
+
178
+

179
+
180
+
**Business Service**
181
+
182
+

183
+
184
+
### Create data generator class
113
185
114
186
Create an ABAP class to generate demo **travel** data.
115
187
@@ -198,82 +270,6 @@ Create an ABAP class to generate demo **travel** data.
198
270

199
271
200
272
201
-
### Generate transactional UI services
202
-
203
-
204
-
Create your OData v4 based UI services with the built-in ADT generator.
205
-
The generated business service will be transactional, draft-enabled, and enriched with UI semantics for the generation of the Fiori elements app.
206
-
207
-
208
-
1. Right-click your database table  **`ZRAP100_ATRAV###`** and select **Generate ABAP Repository Objects** from the context menu.
209
-
210
-
2. Maintain the required information (`###` is your group ID) and click **Next >**:
| | **Service Definition** | Service Definition Name: **`ZRAP100_UI_TRAVEL_###`** |
250
-
| | **Service Binding** | Service Binding Name: **`ZRAP100_UI_TRAVEL_O4_###`** |
251
-
| | | Binding Type: **`OData V4 - UI`** |
252
-
253
-

254
-
255
-
256
-
4. Go to the **Project Explorer**, select your package  **`ZRAP100_###`**, refresh it by pressing **F5**, and check all generated ABAP repository objects
257
-
258
-

259
-
260
-
Below is a brief explanation of the generated artefacts for the different RAP layers: Base BO, BO Projection, and Business Service.
261
-
262
-
**Base Business Object (BO) `ZRAP100_I_TRAVEL_###`**
263
-
264
-

265
-
266
-
**BO Projection `ZRAP100_C_TRAVEL_###`**
267
-
268
-
The BO projection represents the consumption specific view on the BO data model and behavior.
269
-
270
-

271
-
272
-
**Business Service**
273
-
274
-

275
-
276
-
277
273
### Preview travel app
278
274
279
275
>**Hint:** In **SAP S/4HANA on premise or private cloud systems** publishing the local service endpoint of your OData V4 service binding does not work from within ADT. Therefore you have to publish the service binding locally using transaction `/IWFND/V4_ADMIN` in these systems.
0 commit comments