Skip to content

Commit e364c0a

Browse files
author
Ruthiel Trevisan
authored
Minor formatting corrections
Related open issue SAP-samples#9: ``` Following points are missing from the Exercise 2: Title Exercise 2: Adapt the generated code Introduction and Hyperlink and bulletpoints for the chapters Chapters Exercise 2.X ... is missing Hyperlink to top of the page Ending Summary and Hyperlink to the next Exercise ```
1 parent 1b2b54d commit e364c0a

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

rap6xx/rap620/exercises/ex2/README.md

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
# TOC
22
[Home](../../readme.md#exercises)
3-
# Adapt the generated code
4-
3+
# Exercise 2: Adapt the generated code
4+
## Introduction
55
In this exercise we will perform changes to the generated code so that our application becomes usable.
66

7-
- _Projection view_:
7+
- [_Projection view_](#projection-view):
88
Here we will add value help definitions for the currency code and quantity units.
99

10-
- _Metadata extension file_:
10+
- [_Metadata extension file_](#metadata-extension-file):
1111
Since we use built-in ABAP data types rather than data elements we have to add UI annotations to provide a label for the columns in the list view and the fields in the object page.
1212

13-
- _Behavior Definition_ and _Behavior Implementation_:
13+
- [_Behavior Definition_](#behavior-definition) and [_Behavior Implementation_](#behavior-implementation):
1414
Here we will make the semantic key field **InventoryID** _read_only_ and we will add a determination to the behavior definition and implement the same in the behavior implementation clas so that the semantic key field **InventoryID** will be filled automatically.
1515

1616
## Projection view
17+
[^Top of page](#toc)
1718

1819
In the source code of the projection view ````ZRAP620_C_INVENTORYTP_### ```` we will add two value help definitions for the fields ````QuantityUnit```` and ````CurrencyCode````.
1920

@@ -58,6 +59,7 @@ define root view entity ZRAP620_C_INVENTORYTP_###
5859
</details>
5960

6061
## Metadata extension file
62+
[^Top of page](#toc)
6163

6264
Open the metadata extension file ````ZRAP620_C_INVENTORYTP_### ````. Replace the complete source code with the following code snippet and use search and replace to change the placeholder ````###````.
6365

@@ -207,6 +209,7 @@ annotate view ZRAP620_C_INVENTORYTP_### with
207209
</details>
208210

209211
## Behavior definition
212+
[^Top of page](#toc)
210213

211214
Open the behavior defintion ````ZRAP620_R_INVENTORYTP_### ```` and add the field **InventoryID** to the list of fields that are marked as readonly and add a determination **CalculateInventoryID** for the field **InventoryID**.
212215

@@ -262,6 +265,7 @@ determination CalculateInventoryID on save { create; }
262265
</details>
263266

264267
## Behavior implementation
268+
[^Top of page](#toc)
265269

266270
The behavior implementation class ````ZRAP620_BP_INVENTORYTP_###```` is automatically opened with the tab **Local Types** for the local handler class ````lcl_handler```` .
267271
The quick fix has added a method ````CalculateInventoryID```` with an (empty) implementation for the determination that shall calculate the semantic key InventoryID.
@@ -323,7 +327,8 @@ ENDMETHOD.
323327
</details>
324328

325329
# Test your changes
326-
330+
[^Top of page](#toc)
331+
327332
After having performed all the changes mentioned above we can use the SAP Fiori Elements preview in ADT to test our updated implementation.
328333

329334
<details>

0 commit comments

Comments
 (0)