What problem does it solve?
This Skill helps identify unused SAP custom code (Z/Y objects) that are never called at runtime, facilitating code cleanup and retirement projects.
Core Features & Use Cases
- Combined Analysis: Combines SAP call monitor (SCMON) usage data with static where-used analysis to classify code as UNUSED, LIKELY_UNUSED, USED, or INDETERMINATE.
- Scope Filtering: Allows users to filter by package, namespace prefix, object list, or specific intent statements.
- Option Selection: Provides options to use direct SCMON table join, aggregated SUSG via CDS views, or manual SUSG XML export.
- Prerequisites Check: Verifies necessary system configurations and authorizations before execution.
- Runtime Usage Query: Offers different approaches to querying runtime usage based on system state.
- Static Where-Used Check: Performs a static where-used check for objects not in the runtime usage set.
- Classification: Classifies objects based on runtime and static analysis.
- Reporting: Generates a report with classification details, usage data, and deletion candidates.
- Error Handling: Provides comprehensive error handling and guidance for troubleshooting common issues.
Quick Start
To find unused custom code in the Z_FI_CUSTOM package, use the command: sap-unused-code --package Z_FI_CUSTOM