Skip to content

Commit

Permalink
add abap app class with run method
Browse files Browse the repository at this point in the history
  • Loading branch information
iliyan-velichkov committed Jun 20, 2024
1 parent 60393f4 commit 71376da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS zcl_hello_world DEFINITION PUBLIC FINAL CREATE PUBLIC.
CLASS zcl_abap_app DEFINITION PUBLIC FINAL CREATE PUBLIC.

PUBLIC SECTION.
CLASS-METHODS:
Expand All @@ -11,7 +11,7 @@ CLASS zcl_hello_world DEFINITION PUBLIC FINAL CREATE PUBLIC.

ENDCLASS.

CLASS zcl_hello_world IMPLEMENTATION.
CLASS zcl_abap_app IMPLEMENTATION.

" this is the main method called by run.mjs
METHOD run.
Expand Down
7 changes: 4 additions & 3 deletions src/run.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { initializeABAP } from './dist/abap/init.mjs';
import { zcl_hello_world } from './dist/abap/zcl_hello_world.clas.mjs';
import { DatabaseInitializer } from "sdk/abap/database";
import { initializeABAP } from '../dist/abap/init.mjs';

import { zcl_abap_app } from '../dist/abap/zcl_abap_app.clas.mjs';

DatabaseInitializer.initDefaultDataSource();
await initializeABAP();
Expand Down Expand Up @@ -28,5 +29,5 @@ abap.DDIC.EMPLOYEES = {
"keyFields": ["id"]
};

await zcl_hello_world.run();
await zcl_abap_app.run();

0 comments on commit 71376da

Please sign in to comment.