# gregorwolf/sap-malware-scanning-vsi architecture

> Architecture diagram of the GitHub repository gregorwolf/sap-malware-scanning-vsi, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gregorwolf/sap-malware-scanning-vsi
- Repository: https://github.com/gregorwolf/sap-malware-scanning-vsi

## Overview

This small ABAP integration implements SAP’s Virus Scan Interface BAdI using SAP Malware Scanning Service. The documented workflow is that the SAP virus-scanning runtime invokes the configured VSCAN_INSTANCE implementation, which provides malware scanning through the service. The README also requires installing a separate generated ABAP client. Source excerpts were unavailable, so internal calls between the two repository classes and the client’s exact role cannot be confirmed; those links are omitted or marked unverified.

Main entry points: [`src/zcl_mwscan_vscan_badi.clas.abap`](https://github.com/gregorwolf/sap-malware-scanning-vsi/blob/main/src/zcl_mwscan_vscan_badi.clas.abap) (VSCAN BAdI)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_sap_vsi(("SAP Virus Scan"))
node_badi["VSCAN BAdI"]
node_scanner["Scanner Adapter"]
node_abap_client["ABAP API Client"]
node_malware_service{{"Malware Scanning Service"}}

node_sap_vsi -->|"invokes implementation"| node_badi
node_badi -->|"provides scanning"| node_malware_service
node_abap_client -.->|"API integration"| node_malware_service

click node_badi "https://github.com/gregorwolf/sap-malware-scanning-vsi/blob/main/src/zcl_mwscan_vscan_badi.clas.abap"
click node_scanner "https://github.com/gregorwolf/sap-malware-scanning-vsi/blob/main/src/zcl_mwscan_vscan.clas.abap"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_sap_vsi,node_malware_service toneIndigo
class node_badi,node_scanner toneTeal
class node_abap_client toneBlue
```

## Components

### Other components

- **SAP Virus Scan**
- [VSCAN BAdI](https://github.com/gregorwolf/sap-malware-scanning-vsi/blob/main/src/zcl_mwscan_vscan_badi.clas.abap): `src/zcl_mwscan_vscan_badi.clas.abap`
- [Scanner Adapter](https://github.com/gregorwolf/sap-malware-scanning-vsi/blob/main/src/zcl_mwscan_vscan.clas.abap): `src/zcl_mwscan_vscan.clas.abap`
- **ABAP API Client**
- **Malware Scanning Service**

## Connections

- SAP Virus Scan → VSCAN BAdI: invokes implementation (evidence: `README.md`)
- VSCAN BAdI → Malware Scanning Service: provides scanning (evidence: `README.md`)
- ABAP API Client → Malware Scanning Service: API integration
