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: docs/get_started/hello_world.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ outline: [2, 4]
6
6
### Basic Example
7
7
Every abap2UI5 app is an implementation of the `Z2UI5_IF_APP` interface. Create a new class with the following code:
8
8
```abap
9
-
CLASS z2ui5_cl_app_hello_world DEFINITION PUBLIC.
9
+
CLASS z2ui5_cl_app_hello_world DEFINITION PUBLIC CREATE PUBLIC.
10
10
11
11
PUBLIC SECTION.
12
12
INTERFACES z2ui5_if_app.
@@ -26,7 +26,7 @@ Go back to the landing page in your browser and enter `Z2UI5_CL_APP_HELLO_WORLD`
26
26
### View Display
27
27
Now, let's add our first view to display a simple text:
28
28
```abap
29
-
CLASS z2ui5_cl_app_hello_world DEFINITION PUBLIC.
29
+
CLASS z2ui5_cl_app_hello_world DEFINITION PUBLIC CREATE PUBLIC.
30
30
31
31
PUBLIC SECTION.
32
32
INTERFACES z2ui5_if_app.
@@ -48,7 +48,7 @@ ENDCLASS.
48
48
### Event Handler
49
49
Next, we extend the app with a button and an event:
50
50
```abap
51
-
CLASS z2ui5_cl_app_hello_world DEFINITION PUBLIC.
51
+
CLASS z2ui5_cl_app_hello_world DEFINITION PUBLIC CREATE PUBLIC.
52
52
53
53
PUBLIC SECTION.
54
54
INTERFACES z2ui5_if_app.
@@ -78,7 +78,7 @@ ENDCLASS.
78
78
### Data Exchange
79
79
Finally, we add a public attribute and can send data to the backend:
80
80
```abap
81
-
CLASS z2ui5_cl_app_hello_world DEFINITION PUBLIC.
81
+
CLASS z2ui5_cl_app_hello_world DEFINITION PUBLIC CREATE PUBLIC.
82
82
83
83
PUBLIC SECTION.
84
84
INTERFACES z2ui5_if_app.
@@ -109,4 +109,4 @@ And that's it! Set a breakpoint and observe the communication and data updates.
109
109
110
110
::: tip **ABAP Language Versions**
111
111
While we need to distinguish between Standard ABAP and ABAP for Cloud in the HTTP Handler, the apps themselves are independent. You can decide whether to develop your apps compatible with ABAP Cloud or not.
0 commit comments