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/advanced/technical/dx.md
+31-3Lines changed: 31 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,11 @@
1
1
# DX: ALV & Selection-Screen Style?
2
2
3
+
Developer Experience (DX) refers to the overall experience developers have when interacting with tools, processes, and systems during software development. There are a lot of different frameworks lets dive into the most beautiful one and see how these idea got adapten into abap2UI5.
4
+
3
5
### As simple as possible
4
6
7
+
What is the easiest way to output data in an abap stack, it has to be both abao cloud ready and abap standard? its `if_oo_adt_classrun` the best way.
8
+
5
9
```abap
6
10
CLASS zcl_app_adt DEFINITION PUBLIC CREATE PUBLIC.
7
11
PUBLIC SECTION.
@@ -14,6 +18,13 @@ CLASS zcl_app_adt IMPLEMENTATION.
14
18
ENDMETHOD.
15
19
ENDCLASS.
16
20
```
21
+
it has the following advantages:
22
+
* single file for a whole app
23
+
* class based
24
+
* abap cloud ready
25
+
* 100% abapGit compatible which macke ist
26
+
27
+
this was excatly what the abap2ui app keep to mimic, an abap2ui5 app with the outout above looks as folows:
17
28
18
29
```abap
19
30
CLASS zcl_app_ui5 DEFINITION PUBLIC CREATE PUBLIC .
@@ -27,9 +38,16 @@ CLASS zcl_app_ui5 IMPLEMENTATION.
27
38
ENDMETHOD.
28
39
ENDCLASS.
29
40
```
41
+
additionaly it solves the following problems:
42
+
* np need to install adt, the output comes in a browser
43
+
* end user can use it, becaue it published
44
+
* at the fotnend it cretaes a ui5 app following offical sap fiori user experience
45
+
46
+
so this is the basic, from here we try to add more functionality.
30
47
31
48
### Tables
32
49
50
+
what is the easiest way to out out tables? its the goold als cl_salv_table:
33
51
```abap
34
52
REPORT zre_app_alv.
35
53
@@ -45,17 +63,27 @@ cl_salv_table=>factory(
45
63
t_table = gt_t100 ).
46
64
go_salv->display( ).
47
65
```
48
-
66
+
15 lines of code, a single file, and the snippet is ready to use to transport to production for the use of end users. this is strong! unfortunately it is not cloud ready and therefor not future. let mix this with the baap2ui5 approach from above. a abap2ui5 we can create somethig quite similar with the follwoing snippet:
67
+
```abap
68
+
"app
69
+
"app
70
+
"app
71
+
```
49
72
50
73
### Inputs
74
+
as a last prerequste we need some input. also the easiest way are selection screen, lets remember how that went:
51
75
```abap
52
76
REPORT zre_app_input.
53
77
PARAMETERS pa_arbgb TYPE t100-arbgb DEFAULT 'MDG_TR'.
0 commit comments