Skip to content

Commit a712989

Browse files
make steampunk compatible (#106)
Co-authored-by: Christian Günter <christian.guenter@emineo.ch>
1 parent aa20b7a commit a712989

File tree

3 files changed

+39
-39
lines changed

3 files changed

+39
-39
lines changed

src/z2ui5_cl_demo_app_072.clas.abap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ CLASS Z2UI5_CL_DEMO_APP_072 IMPLEMENTATION.
155155
`Information` )
156156
).
157157

158-
DESCRIBE TABLE mt_table lines lv_cnt_total.
158+
lv_cnt_total = lines( mt_table ).
159159
lv_cnt_pos = REDUCE i( INIT i = 0 FOR wa IN mt_table WHERE ( measure > 0 AND measure <= 100 ) NEXT i = i + 1 ).
160160
lv_cnt_heavy = REDUCE i( INIT i = 0 FOR wa IN mt_table WHERE ( measure > 100 AND measure <= 500 ) NEXT i = i + 1 ).
161161
lv_cnt_neg = REDUCE i( INIT i = 0 FOR wa IN mt_table WHERE ( measure > 500 ) NEXT i = i + 1 ).

src/z2ui5_cl_demo_app_126.clas.locals_imp.abap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ CLASS lcl_demo_app_125 IMPLEMENTATION.
553553
FIELD-SYMBOLS <table> TYPE ANY TABLE.
554554
ASSIGN o_table->* TO <table>.
555555

556-
SELECT * FROM (mv_table) INTO CORRESPONDING FIELDS OF TABLE <table>.
556+
SELECT * FROM (mv_table) INTO CORRESPONDING FIELDS OF TABLE @<table>.
557557

558558

559559
lo_tab ?= cl_abap_tabledescr=>describe_by_data( <table> ).
@@ -964,7 +964,7 @@ CLASS lcl_demo_app_126 IMPLEMENTATION.
964964
FIELD-SYMBOLS <table> TYPE ANY TABLE.
965965
ASSIGN o_table->* TO <table>.
966966

967-
SELECT * FROM (tabname) INTO CORRESPONDING FIELDS OF TABLE <table>.
967+
SELECT * FROM (tabname) INTO CORRESPONDING FIELDS OF TABLE @<table>.
968968

969969
result = lines( <table> ).
970970

src/z2ui5_cl_demo_app_160.clas.abap

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,34 @@ CLASS z2ui5_cl_demo_app_160 DEFINITION
99

1010
TYPES:
1111
BEGIN OF s_output,
12-
index TYPE i,
13-
set_sk TYPE c LENGTH 10,
14-
matnr TYPE matnr,
15-
description TYPE c LENGTH 50,
16-
is_total TYPE i,
17-
pl_total TYPE i,
18-
%_total TYPE p LENGTH 2 DECIMALS 1,
19-
is_01_prev TYPE i,
20-
pl_01 TYPE i,
21-
%_01 TYPE p LENGTH 2 DECIMALS 1,
22-
is_02_prev TYPE i,
23-
pl_02 TYPE p LENGTH 2 DECIMALS 1,
24-
%_02 TYPE p LENGTH 2 DECIMALS 1,
25-
is_03_prev TYPE i,
26-
pl_03 TYPE i,
27-
%_03 TYPE p LENGTH 2 DECIMALS 1,
28-
is_q01_prev TYPE i,
29-
pl_q01 TYPE i,
30-
%_q01 TYPE p LENGTH 2 DECIMALS 1,
31-
is_q02_prev TYPE i,
32-
pl_q02 TYPE i,
33-
%_q02 TYPE p LENGTH 2 DECIMALS 1,
34-
is_q03_prev TYPE i,
35-
pl_q03 TYPE i,
36-
%_q03 TYPE p LENGTH 2 DECIMALS 1,
37-
is_q04_prev TYPE i,
38-
pl_q04 TYPE i,
39-
%_q04 TYPE p LENGTH 2 DECIMALS 1,
12+
index TYPE i,
13+
set_sk TYPE c LENGTH 10,
14+
matnr TYPE matnr,
15+
description TYPE c LENGTH 50,
16+
is_total TYPE i,
17+
pl_total TYPE i,
18+
per_cent_total TYPE p LENGTH 2 DECIMALS 1,
19+
is_01_prev TYPE i,
20+
pl_01 TYPE i,
21+
per_cent_01 TYPE p LENGTH 2 DECIMALS 1,
22+
is_02_prev TYPE i,
23+
pl_02 TYPE p LENGTH 2 DECIMALS 1,
24+
per_cent_02 TYPE p LENGTH 2 DECIMALS 1,
25+
is_03_prev TYPE i,
26+
pl_03 TYPE i,
27+
per_cent_03 TYPE p LENGTH 2 DECIMALS 1,
28+
is_q01_prev TYPE i,
29+
pl_q01 TYPE i,
30+
per_cent_q01 TYPE p LENGTH 2 DECIMALS 1,
31+
is_q02_prev TYPE i,
32+
pl_q02 TYPE i,
33+
per_cent_q02 TYPE p LENGTH 2 DECIMALS 1,
34+
is_q03_prev TYPE i,
35+
pl_q03 TYPE i,
36+
per_cent_q03 TYPE p LENGTH 2 DECIMALS 1,
37+
is_q04_prev TYPE i,
38+
pl_q04 TYPE i,
39+
per_cent_q04 TYPE p LENGTH 2 DECIMALS 1,
4040
END OF s_output .
4141

4242
DATA check_initialized TYPE abap_bool .
@@ -139,35 +139,35 @@ CLASS z2ui5_cl_demo_app_160 IMPLEMENTATION.
139139
( `$event.oSource.oParent.sId` )
140140
) ) editable = abap_true type = 'Number' ).
141141

142-
columns->ui_column( width = '4rem' sortproperty = '%_TOTAL' filterproperty = '%_TOTAL' )->text( text = 'Column 6' )->ui_template( )->text( text = `{%_TOTAL} %` ).
142+
columns->ui_column( width = '4rem' sortproperty = 'per_cent_total' filterproperty = 'per_cent_total' )->text( text = 'Column 6' )->ui_template( )->text( text = `{per_cent_total} %` ).
143143

144144
columns->ui_column( width = '5rem' sortproperty = 'IS_01_PREV' filterproperty = 'IS_01_PREV' )->text( text = 'Column 7' )->ui_template( )->text( text = `{IS_01_PREV}` ).
145145
columns->ui_column( width = '5rem' sortproperty = 'PL_01' filterproperty = 'PL_01' )->text( text = 'Column 8' )->ui_template( )->input( value = `{PL_01}` editable = abap_true type = 'Number' ).
146-
columns->ui_column( width = '4rem' sortproperty = '%_01' filterproperty = '%_01' )->text( text = 'Column 9' )->ui_template( )->text( text = `{%_01} %` ).
146+
columns->ui_column( width = '4rem' sortproperty = 'per_cent_01' filterproperty = 'per_cent_01' )->text( text = 'Column 9' )->ui_template( )->text( text = `{per_cent_01} %` ).
147147

148148
columns->ui_column( width = '5rem' sortproperty = 'IS_02_PREV' filterproperty = 'IS_02_PREV' )->text( text = 'Column 10' )->ui_template( )->text( text = `{IS_02_PREV}` ).
149149
columns->ui_column( width = '5rem' sortproperty = 'PL_02' filterproperty = 'PL_02' )->text( text = 'Column 11' )->ui_template( )->input( value = `{PL_02}` editable = abap_true type = 'Number' ).
150-
columns->ui_column( width = '4rem' sortproperty = '%_02' filterproperty = '%_02' )->text( text = 'Column 12' )->ui_template( )->text( text = `{%_02} %` ).
150+
columns->ui_column( width = '4rem' sortproperty = 'per_cent_02' filterproperty = 'per_cent_02' )->text( text = 'Column 12' )->ui_template( )->text( text = `{per_cent_02} %` ).
151151

152152
columns->ui_column( width = '5rem' sortproperty = 'IS_03_PREV' filterproperty = 'IS_03_PREV' )->text( text = 'Column 13' )->ui_template( )->text( text = `{IS_03_PREV}` ).
153153
columns->ui_column( width = '5rem' sortproperty = 'PL_03' filterproperty = 'PL_03' )->text( text = 'Column 14' )->ui_template( )->input( value = `{PL_03}` editable = abap_true type = 'Number' ).
154-
columns->ui_column( width = '4rem' sortproperty = '%_03' filterproperty = '%_03' )->text( text = 'Column 15' )->ui_template( )->text( text = `{%_03} %` ).
154+
columns->ui_column( width = '4rem' sortproperty = 'per_cent_03' filterproperty = 'per_cent_03' )->text( text = 'Column 15' )->ui_template( )->text( text = `{per_cent_03} %` ).
155155

156156
columns->ui_column( width = '5rem' sortproperty = 'IS_Q01_PREV' filterproperty = 'IS_Q01_PREV' )->text( text = 'Column 16' )->ui_template( )->text( text = `{IS_Q01_PREV}` ).
157157
columns->ui_column( width = '5rem' sortproperty = 'PL_Q01' filterproperty = 'PL_Q01' )->text( text = 'Column 17' )->ui_template( )->text( text = `{PL_Q01}` ). "Nicht editierbar, da im Detail geplant
158-
columns->ui_column( width = '4rem' sortproperty = '%_Q01' filterproperty = '%_Q01' )->text( text = 'Column 18' )->ui_template( )->text( text = `{%_Q01} %` ).
158+
columns->ui_column( width = '4rem' sortproperty = 'per_cent_q01' filterproperty = 'per_cent_q01' )->text( text = 'Column 18' )->ui_template( )->text( text = `{per_cent_q01} %` ).
159159

160160
columns->ui_column( width = '5rem' sortproperty = 'IS_Q02_PREV' filterproperty = 'IS_Q02_PREV' )->text( text = 'Column 19' )->ui_template( )->text( text = `{IS_Q02_PREV}` ).
161161
columns->ui_column( width = '5rem' sortproperty = 'PL_Q02' filterproperty = 'PL_Q02' )->text( text = 'Column 20' )->ui_template( )->input( value = `{PL_Q02}` editable = abap_true type = 'Number' ).
162-
columns->ui_column( width = '4rem' sortproperty = '%_Q02' filterproperty = '%_Q02' )->text( text = 'Column 21' )->ui_template( )->text( text = `{%_Q02} %` ).
162+
columns->ui_column( width = '4rem' sortproperty = 'per_cent_q02' filterproperty = 'per_cent_q02' )->text( text = 'Column 21' )->ui_template( )->text( text = `{per_cent_q02} %` ).
163163

164164
columns->ui_column( width = '5rem' sortproperty = 'IS_Q03_PREV' filterproperty = 'IS_Q03_PREV' )->text( text = 'Column 22' )->ui_template( )->text( text = `{IS_Q03_PREV}` ).
165165
columns->ui_column( width = '5rem' sortproperty = 'PL_Q03' filterproperty = 'PL_Q03' )->text( text = 'Column 23' )->ui_template( )->input( value = `{PL_Q03}` editable = abap_true type = 'Number' ).
166-
columns->ui_column( width = '4rem' sortproperty = '%_Q03' filterproperty = '%_Q03' )->text( text = 'Column 24' )->ui_template( )->text( text = `{%_Q03} %` ).
166+
columns->ui_column( width = '4rem' sortproperty = 'per_cent_q03' filterproperty = 'per_cent_q03' )->text( text = 'Column 24' )->ui_template( )->text( text = `{per_cent_q03} %` ).
167167

168168
columns->ui_column( width = '5rem' sortproperty = 'IS_Q04_PREV' filterproperty = 'IS_Q04_PREV' )->text( text = 'Column 25' )->ui_template( )->text( text = `{IS_Q04_PREV}` ).
169169
columns->ui_column( width = '5rem' sortproperty = 'PL_Q04' filterproperty = 'PL_Q04' )->text( text = 'Column 26' )->ui_template( )->input( value = `{PL_Q04}` editable = abap_true type = 'Number' ).
170-
columns->ui_column( width = '4rem' sortproperty = '%_Q04' filterproperty = '%_Q04' )->text( text = 'Column 27' )->ui_template( )->text( text = `{%_Q04} %` ).
170+
columns->ui_column( width = '4rem' sortproperty = 'per_cent_q04' filterproperty = 'per_cent_q04' )->text( text = 'Column 27' )->ui_template( )->text( text = `{per_cent_q04} %` ).
171171

172172
client->view_display( view->stringify( ) ).
173173

0 commit comments

Comments
 (0)