← ClaudeAtlas

sap-fix-abaplisted

Fixes ABAP source code issues found by sap-check-abap (all dimensions). Reads the check result file(s), builds a fix plan, and applies fixes: - NAMING violations: renames variables throughout the file - UNUSED variables: comments out declarations - SYNTAX-SAFE rewrites (SQL_STRICT_COMMA / line-length / DECL_ORDER) - CALL FUNCTION param fixes (UNKNOWN_PARAM rename / MISSING_MANDATORY stub / WRONG_SECTION move) from the `fm` dimension — absorbed from the former sap-fix-fm - SYNTAX errors: a bounded AI-assisted check->patch->re-check loop that drives the headless `sap_rfc_syntax_check.ps1` engine (no blind auto-fix) - TYPE_NOT_FOUND and other semantic codes: flagged for manual review Creates a timestamped backup (.bak) before modifying the source file. Prerequisites: Run sap-check-abap first to produce the result file(s). The `fm` and `syntax` fix paths need SAP NCo 3.1 (32-bit) + the dev-init wrapper.
sapdev-ai/sap-dev · ★ 7 · AI & Automation · score 73
Install: claude install-skill sapdev-ai/sap-dev
# SAP Fix ABAP Skill You fix ABAP source code quality issues detected by sap-check-abap. You rename variables that violate naming conventions, comment out unused declarations, and flag type issues for manual review. You always back up the file before making changes. Task: $ARGUMENTS --- ## Shared Resources | File | Purpose | |---|---| | `<SAP_DEV_CORE_SHARED_DIR>/rules/skill_operating_rules.md` | Mandatory operating rules | | `<SAP_DEV_CORE_SHARED_DIR>/rules/language_independence_rules.md` | GUI-scripting language independence — offline fixer, but rule applies to downstream deploy skills the fixed source feeds | | `<SAP_DEV_CORE_SHARED_DIR>/rules/abap_code_quality_rules.md` | ABAP code-quality rules — fixes applied here (variable renames, unused-comment-out) must preserve / restore modern-ABAP conventions; never introduce literal MESSAGE strings or downgrade syntax to obsolete forms while fixing | --- ## Step 0 — Resolve Work Directory **Resolve `work_dir` via the env-aware helper** — do NOT take `work_dir` from a direct `settings.json` read (that ignores the `SAPDEV_AI_WORK_DIR` env var and `userconfig.json`). Use the `WORK_DIR=` value printed by: ```bash powershell -NoProfile -ExecutionPolicy Bypass -Command ". '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_settings_lib.ps1'; . '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_connection_lib.ps1'; Write-Output ('WORK_DIR=' + (Get-SapWorkDir))" ``` The settings note below still applies to the OTHER keys. **Settings reads/writes foll