Skip to content

Commit ad92d22

Browse files
authored
Update srtti.md
1 parent 08d71b8 commit ad92d22

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/addons/srtti.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
outline: [2, 4]
3+
---
14
# RTTI
25

36
<i class="fa-brands fa-github"></i> [S-RTTI Project on GitHub](https://github.com/sandraros/S-RTTI)
@@ -7,7 +10,7 @@ In abap2UI5, you don’t necessarily need to type your data model at design time
710
abap2UI5 serializes your app instances to ensure stateless behavior in client communication. Unfortunately, the SAP standard serialization features are limited; for example, they do not support local types created at runtime. If you encounter problems, just install the fantastic project [S-RTTI](https://github.com/sandraros/S-RTTI) filling this gap.
811

912
#### Basic
10-
Fully typed at design time, it works out of the box:
13+
Fully typed data at design time, it works out of the box:
1114

1215
```abap
1316
CLASS z2ui5_cl_app DEFINITION PUBLIC.
@@ -32,8 +35,7 @@ CLASS z2ui5_cl_app IMPLEMENTATION.
3235
3336
mt_tab = VALUE #(
3437
( title = 'entry 01' value = 'red' descr = 'this is a description' )
35-
( title = 'entry 02' value = 'blue' descr = 'this is a description' )
36-
( title = 'entry 02' value = 'gray' descr = 'this is a description' ) ).
38+
( title = 'entry 02' value = 'blue' descr = 'this is a description' ) ).
3739
3840
client->message_box_display( `this works without problems` ).
3941
@@ -42,7 +44,7 @@ ENDCLASS.
4244
```
4345

4446
#### Generic Data Reference (local type)
45-
Typed at runtime with local types; this only works with S-RTTI:
47+
Data typed at runtime with local types; this only works with S-RTTI:
4648
```abap
4749
CLASS z2ui5_cl_app DEFINITION PUBLIC.
4850
@@ -71,8 +73,7 @@ CLASS z2ui5_cl_app IMPLEMENTATION.
7173
ASSIGN mr_tab->* TO <tab>.
7274
<tab> = VALUE #(
7375
( title = 'entry 01' value = 'red' descr = 'this is a description' )
74-
( title = 'entry 02' value = 'blue' descr = 'this is a description' )
75-
( title = 'entry 02' value = 'gray' descr = 'this is a description' ) ).
76+
( title = 'entry 02' value = 'blue' descr = 'this is a description' ) ).
7677
7778
client->message_box_display( `this works only with S-RTTI` ).
7879

0 commit comments

Comments
 (0)