Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/WegnerDan/abapMermaid
Integrate Mermaid Diagrams in SAP GUI Containers
https://github.com/WegnerDan/abapMermaid
Last synced: 3 months ago
JSON representation
Integrate Mermaid Diagrams in SAP GUI Containers
- Host: GitHub
- URL: https://github.com/WegnerDan/abapMermaid
- Owner: WegnerDan
- License: mit
- Created: 2022-04-10T20:16:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-18T14:09:07.000Z (about 2 years ago)
- Last Synced: 2024-08-02T19:01:44.059Z (7 months ago)
- Language: ABAP
- Size: 1.15 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- abap-florilegium - abapMermaid
README
# abapMermaid
Integrate [Mermaid Diagrams](https://github.com/mermaid-js/mermaid) in SAP GUI ContainersSource Code of mermaid release 9.3.0 is included as SMW0 Object (downloaded from `https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js`)
## Disclaimer
This is a work in progress, there are bugs. The background color of the HTML container is determined with cl_gui_resources, but this might not work correctly if corrections described in [SAP Note 3002961](https://launchpad.support.sap.com/#/notes/3002961) are not applied in the System.
The font color and type are on the todo list (doesn't work yet).## Prerequisites
Mermaid does not work in the Internet Explorer Browser Control, so the Edge Chromium Control has to be used. More info in [SAP Note 2913405](https://launchpad.support.sap.com/#/notes/2913405)
# Preview
```abap
DATA(diagram) = NEW zcl_wd_gui_mermaid_js_diagram( parent = some_instance_of_cl_gui_container ).
diagram->set_source_code_string( |graph TD\n|
&& |A[Client] --> B[Load Balancer]\n|
&& |B --> C[Server01]\n|
&& |B --> D[Server02]\n| ).
diagram->display( ).
```
 # Sample Programs
## Program `ZWD_MERMAID_SAMPLE_1`
Simplest possible example, basically the code that is mentioned in the preview section.## Program `ZWD_MERMAID_SAMPLE_2`
Example in a classic screen, with a couple of different diagrams.
## Program `ZWD_MERMAID_TEST`
Use this to test how a diagram looks in SAP GUI after designing with [Mermaid Live Editor](https://mermaid.live).
Includes basic error handling (parse errors are displayed in the bottom left corner) and configuration editable as JSON.
## abapMermaidDocflow
[See Details](https://github.com/thedoginthewok/abapMermaidDocflow)