Skip to content

Commit 2efc580

Browse files
authored
Update navigation.md
1 parent 6477945 commit 2efc580

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/development/navigation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ In abap2UI5, each application is represented by a single ABAP class. While you c
88
### Backend
99
To call an ABAP class, use the following code:
1010
```abap
11-
METHOD z2ui5_if_app~main. root app
11+
METHOD z2ui5_if_app~main.
1212
DATA(lo_app) = NEW z2ui5_cl_demo_app_025( ).
1313
client->nav_app_call( lo_app ).
1414
ENDMETHOD.
1515
```
1616
The framework maintains a call stack. In the newly called class, you can return to the previous application using:
17-
```abap called app
17+
```abap
1818
METHOD z2ui5_if_app~main.
1919
client->nav_app_leave( ).
2020
ENDMETHOD.
2121
```
2222
If you need to access data from the previous application, use casting as follows:
23-
```abap root app
23+
```abap
2424
METHOD z2ui5_if_app~main.
2525
IF client->check_on_navigated( ).
2626
DATA(lo_called_app) = CAST z2ui5_cl_demo_app_025( client->get_app_prev( ) ).

0 commit comments

Comments
 (0)