# sysparency/z_sysp_sap_adapter architecture

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

- Interactive diagram: https://gitdiagram.com/sysparency/z_sysp_sap_adapter
- Repository: https://github.com/sysparency/z_sysp_sap_adapter

## Overview

This is an SAP ABAP report for exporting selected package code and data for Sysparency analysis. The documented workflow is to run the adapter, choose packages, serialize objects with bundled abapGit, and write package ZIPs, .sysp files, and a run log to a local export folder. The README also documents user-name masking and export error logging. Source excerpts were not available, so the graph reflects documented behavior only; the count-assessment program is included from the source tree, but its role and connections are not documented.

Main entry points: [`src/z_sysp_sap_adapter2.prog.abap`](https://github.com/sysparency/z_sysp_sap_adapter/blob/master/src/z_sysp_sap_adapter2.prog.abap) (Adapter report)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_export["Export workflow"]
  node_adapter["Adapter report"]
  node_selection["Package selection"]
  node_serialization["abapGit serialization"]
  node_masking["User masking"]
  node_count["Count assessment"]
end

subgraph group_outputs["Export artifacts"]
  node_packagezip["Package ZIPs"]
  node_sysp[".sysp data files"]
  node_runlog["Run log"]
end

node_operator(("SAP operator"))
node_filesystem["Local export folder"]

node_operator -->|"runs"| node_adapter
node_adapter -->|"selects packages"| node_selection
node_adapter -->|"serializes objects"| node_serialization
node_adapter -->|"masks names"| node_masking
node_adapter -->|"writes"| node_packagezip
node_adapter -->|"writes"| node_sysp
node_adapter -->|"records run"| node_runlog
node_adapter -->|"exports to"| node_filesystem

click node_adapter "https://github.com/sysparency/z_sysp_sap_adapter/blob/master/src/z_sysp_sap_adapter2.prog.abap"
click node_selection "https://github.com/sysparency/z_sysp_sap_adapter/blob/master/src/z_sysp_sap_adapter2.prog.abap"
click node_serialization "https://github.com/sysparency/z_sysp_sap_adapter/blob/master/src/z_sysp_sap_adapter2.prog.abap"
click node_masking "https://github.com/sysparency/z_sysp_sap_adapter/blob/master/src/z_sysp_sap_adapter2.prog.abap"
click node_count "https://github.com/sysparency/z_sysp_sap_adapter/blob/master/src/z_sysp_count_assessment.prog.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_adapter,node_selection,node_serialization,node_masking,node_count toneBlue
class node_packagezip,node_sysp,node_runlog toneAmber
class node_operator,node_filesystem toneIndigo
```

## Components

### Export workflow

- [Adapter report](https://github.com/sysparency/z_sysp_sap_adapter/blob/master/src/z_sysp_sap_adapter2.prog.abap): `src/z_sysp_sap_adapter2.prog.abap`
- [Package selection](https://github.com/sysparency/z_sysp_sap_adapter/blob/master/src/z_sysp_sap_adapter2.prog.abap): `src/z_sysp_sap_adapter2.prog.abap`
- [abapGit serialization](https://github.com/sysparency/z_sysp_sap_adapter/blob/master/src/z_sysp_sap_adapter2.prog.abap): `src/z_sysp_sap_adapter2.prog.abap`
- [User masking](https://github.com/sysparency/z_sysp_sap_adapter/blob/master/src/z_sysp_sap_adapter2.prog.abap): `src/z_sysp_sap_adapter2.prog.abap`
- [Count assessment](https://github.com/sysparency/z_sysp_sap_adapter/blob/master/src/z_sysp_count_assessment.prog.abap): `src/z_sysp_count_assessment.prog.abap`

### Export artifacts

- **Package ZIPs**
- **.sysp data files**
- **Run log**

### Other components

- **SAP operator**
- **Local export folder**

## Connections

- SAP operator → Adapter report: runs (evidence: `README.md`)
- Adapter report → Package selection: selects packages (evidence: `README.md`)
- Adapter report → abapGit serialization: serializes objects (evidence: `README.md`)
- Adapter report → User masking: masks names (evidence: `README.md`)
- Adapter report → Package ZIPs: writes (evidence: `README.md`)
- Adapter report → .sysp data files: writes (evidence: `README.md`)
- Adapter report → Run log: records run (evidence: `README.md`)
- Adapter report → Local export folder: exports to (evidence: `README.md`)
