sap-fix-abap

Remediate ABAP source code quality issues from sap-check-abap results.

7|1|Updated May 11, 2026
One-click install
npx skills add https://github.com/sapdev-ai/sap-dev --skill sap-fix-abap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sap-fix-abap
Source: https://github.com/sapdev-ai/sap-dev/tree/main/plugins/sap-gen-code/skills/sap-fix-abap
Command: npx skills add https://github.com/sapdev-ai/sap-dev --skill sap-fix-abap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

ABAP source code quality issues detected by sap-check-abap are automatically remediated, reducing manual debugging and review time.

Core Features & Use Cases

  • Global variable renaming: fixes NAMING violations across the entire file.
  • Declaration cleanup: comments out unused declarations while preserving valid chain declarations.
  • Manual-review hooks: flags TYPE_NOT_FOUND for user intervention and dictionary updates.
  • Safe backups: creates timestamped backups before applying any change.

Quick Start

Run sap-check-abap to generate a result TSV, then run sap-fix-abap <path-to-abap-source-file> to apply automatic fixes.

Frequently Asked Questions about sap-fix-abap

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically fix ABAP naming convention violations?

To fix ABAP naming violations, run sap-fix-abap after generating a check result TSV; it applies a global rename across the entire source file while preserving existing program logic.

Can I automatically comment out unused ABAP declarations?

Yes, you can automatically comment out unused ABAP declarations. The remediation tool comments out unused declarations while preserving any valid chain declarations found in the source code.

How do I handle TYPE_NOT_FOUND errors during ABAP static analysis?

To handle TYPE_NOT_FOUND errors during ABAP static analysis, the remediation tool flags these items for manual review and dictionary updates rather than automatically altering them.

Do I need to run a static analysis check before remediating ABAP code?

Yes, you must run a static analysis check first to generate the required result TSV file. The remediation tool uses this TSV output and the ABAP file path as input to apply fixes.

Does fixing ABAP code quality issues create a backup of the original file?

Yes, remediating ABAP code quality issues creates safe backups. The tool generates timestamped backups of your source file before applying any automatic changes like renaming or commenting.

What is the best way to fix ABAP code quality issues flagged by static analysis?

The best way to fix flagged ABAP code quality issues is using an automated remediation tool that reads a check result TSV and applies global renames and declaration cleanup while preserving logic.