Get a dependency graph of ABAP objects
get_object_dependenciesBuild a dependency graph from ABAP sources to sequence migration and assess impact, showing referenced tables and function modules with released-API status.
Instructions
Build a dependency graph over the provided ABAP sources for migration sequencing and impact reading: nodes are the provided objects plus every DB table / function module they reference (annotated with released-API state and CDS successor from the bundled SAP snapshot); edges are tiered by how they were derived — parser-level db-access and call-function references, structural inherits/implements from class definitions, and word-boundary references-textual matches between the provided objects. Optional Mermaid flowchart output. Use this when deciding what to migrate first (leaves before roots), what a rework might break, or which objects pull non-released tables into the picture — the sequencing companion to plan_cloud_migration. It is not a system where-used list: it only sees the text you pass, textual edges cannot see dynamic calls, and an absent edge is not proof of independence — a system's where-used and ATC remain authoritative. Example: get_object_dependencies({ "files": [ { "filename": "zcl_a.clas.abap", "source": "…" }, { "filename": "zcl_b.clas.abap", "source": "…" } ], "mermaid": true }).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Source files to analyze, up to 32 per call, 100k chars each. | |
| mermaid | No | Also return a Mermaid flowchart (graph LR) of the dependency graph for instant visualization. | |
| abapVersion | No | ABAP language version used for parsing when extracting object references. | v758 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | ||
| nodes | Yes | ||
| mermaid | No | Mermaid flowchart when requested. | |
| scopeNote | Yes | Exactly what the graph can and cannot claim. | |
| releasedApiSnapshotDate | Yes | Date of the bundled released-API snapshot behind the annotations. |