Skip to content

Commit 2d23496

Browse files
authored
Update README.md
1 parent 038ba1e commit 2d23496

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ _Running into problems or found a bug? Create an issue [**here**](https://github
1414
### Approach:
1515
(1/3) Use a single Interface:
1616
```abap
17-
INTERFACE z2ui5_if_proxy_kpi
17+
INTERFACE z2ui5_if_lp_kpi
1818
PUBLIC.
1919
2020
METHODS count
@@ -27,7 +27,7 @@ ENDINTERFACE.
2727
```
2828
(2/3) Which can be used on app level to return KPIs:
2929
```abap
30-
CLASS z2ui5_cl_proxy_kpi_hello_world DEFINITION
30+
CLASS z2ui5_cl_lp_kpi_hello_world DEFINITION
3131
PUBLIC
3232
FINAL
3333
CREATE PUBLIC .
@@ -39,7 +39,7 @@ CLASS z2ui5_cl_proxy_kpi_hello_world DEFINITION
3939
ENDCLASS.
4040
CLASS z2ui5_cl_proxy_kpi_hello_world IMPLEMENTATION.
4141
42-
METHOD z2ui5_if_proxy_kpi~count.
42+
METHOD z2ui5_if_lp_kpi~count.
4343
4444
"kpi calculation....
4545
result = 11.
@@ -72,9 +72,9 @@ ENDCLASS.
7272
CATCH cx_root.
7373
ENDTRY.
7474
75-
DATA li_proxy_kpi TYPE REF TO z2ui5_if_proxy_kpi.
76-
CREATE OBJECT li_proxy_kpi TYPE (lv_classname).
77-
DATA(lv_count) = li_proxy_kpi->count( lv_filter ).
75+
DATA li_lp_kpi TYPE REF TO z2ui5_if_lp_kpi.
76+
CREATE OBJECT li_lp_kpi TYPE (lv_classname).
77+
DATA(lv_count) = li_lp_kpi->count( lv_filter ).
7878
7979
DO lv_count TIMES.
8080
INSERT VALUE #( id = sy-index ) INTO TABLE lt_result.

0 commit comments

Comments
 (0)