Skip to content

Commit 985d4d4

Browse files
authored
Update dx.md
1 parent ce196d4 commit 985d4d4

File tree

1 file changed

+31
-3
lines changed
  • docs/advanced/technical

1 file changed

+31
-3
lines changed

docs/advanced/technical/dx.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# DX: ALV & Selection-Screen Style?
22

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+
35
### As simple as possible
46

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+
59
```abap
610
CLASS zcl_app_adt DEFINITION PUBLIC CREATE PUBLIC.
711
PUBLIC SECTION.
@@ -14,6 +18,13 @@ CLASS zcl_app_adt IMPLEMENTATION.
1418
ENDMETHOD.
1519
ENDCLASS.
1620
```
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:
1728

1829
```abap
1930
CLASS zcl_app_ui5 DEFINITION PUBLIC CREATE PUBLIC .
@@ -27,9 +38,16 @@ CLASS zcl_app_ui5 IMPLEMENTATION.
2738
ENDMETHOD.
2839
ENDCLASS.
2940
```
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.
3047

3148
### Tables
3249

50+
what is the easiest way to out out tables? its the goold als cl_salv_table:
3351
```abap
3452
REPORT zre_app_alv.
3553
@@ -45,17 +63,27 @@ cl_salv_table=>factory(
4563
t_table = gt_t100 ).
4664
go_salv->display( ).
4765
```
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+
```
4972

5073
### Inputs
74+
as a last prerequste we need some input. also the easiest way are selection screen, lets remember how that went:
5175
```abap
5276
REPORT zre_app_input.
5377
PARAMETERS pa_arbgb TYPE t100-arbgb DEFAULT 'MDG_TR'.
5478
START-OF-SELECTION.
5579
MESSAGE |Input: { pa_arbgb }| type 'I'.
5680
```
57-
58-
81+
this is thew wy we can do it with abap2ui5:
82+
```abap
83+
"app
84+
"app
85+
"app
86+
```
5987

6088
### Events
6189

0 commit comments

Comments
 (0)