|
1 | | -# build-local |
2 | | -All abap2UI5 artifacts are combined into a single HTTP handler implementation as local classes. This approach makes your app completely independent of the rest of the system or any other abap2UI5 installation. |
| 1 | +[](https://badge.fury.io/js/abapmerge) |
3 | 2 |
|
4 | | -#### Installation |
| 3 | +# abap2UI5-local merge template |
5 | 4 |
|
6 | | -1. Create a new HTTP handler in your system. |
7 | | -2. Copy & paste the handler class from this repository. |
8 | | -3. Add your abap2UI5 app as a local class and start it via your new HTTP endpoint. |
9 | | -4. Alternatively, pull this repository using abapGit. |
10 | | - |
11 | | - |
12 | | -#### Approach |
13 | | - |
14 | | -<img width="500" alt="Screenshot 2025-02-13 at 13 24 18" src="https://github.com/user-attachments/assets/5fcc56a8-8e2c-41b2-84b3-e50242ff648c" /> |
15 | | - |
16 | | - |
17 | | -#### Persistence |
18 | | -To avoid any side effects with other abap2UI5 installations, this version uses the table z2ui5_t_99 for persistence. You can either pull this repository or manually create the following table in your system: |
19 | | -```cds |
20 | | -@EndUserText.label : 'abap2ui5 local' |
21 | | -@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE |
22 | | -@AbapCatalog.tableCategory : #TRANSPARENT |
23 | | -@AbapCatalog.deliveryClass : #A |
24 | | -@AbapCatalog.dataMaintenance : #RESTRICTED |
25 | | -define table z2ui5_t_99 { |
26 | | - key mandt : mandt not null; |
27 | | - key id : abap.char(32) not null; |
28 | | - id_prev : abap.char(32); |
29 | | - id_prev_app : abap.char(32); |
30 | | - id_prev_app_stack : abap.char(32); |
31 | | - timestampl : timestampl; |
32 | | - uname : abap.char(20); |
33 | | - data : abap.string(0); |
34 | | -
|
35 | | -} |
36 | 5 | ``` |
| 6 | +git clone https://github.com/abap2UI5/abap2UI5 |
| 7 | +npx abapmerge -f sample/ztest.prog.abap -c zabap2ui5_local -o zabap2ui5_local |
37 | 8 |
|
38 | | -#### Info |
39 | | -* HTTP API: `/sap/bc/z2ui5standalone?sap-client=001&app_start=z2ui5_cl_my_standalone_app` |
40 | | -* Credits: Created with the fantastic tool [abapmerge](https://github.com/larshp/abapmerge) |
| 9 | +``` |
0 commit comments