/sap-engineering-skills:abap-code-reviewfrom Watt SAP Engineering Skills
Reviews SAP ABAP programs across 9 security and quality dimensions (SEC, AUTH, DATA, PERF, STD, INTERFACE, CHANGE, COMP, FUNC), producing a formal Markdown report for pre-release sign-off.
Ships in Watt SAP Engineering Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Performs pre-release security and quality assessment of SAP ABAP programs, producing a formal Markdown report ready for sign-off and circulation.
Runtime requirement: none. This skill reviews source you provide; it does
not connect to SAP and does not need the sap-adt CLI. Never demand a CLI
install for this skill (references/runtime-compatibility.json declares
not-required; references/setup.md is informational only).
Any message matching the description above will load this skill. A complete invocation with full context:
Review program [PROGRAM_NAME] for release.
Transport: [DEVKXXXXXX], Change description: [one-line business purpose].
Save the report to the reports/ directory.
To include functional completeness checks ([FUNC] dimension), provide the requirements document path or describe the requirements in the conversation.
Before reading any ABAP source code, load the following two files in order. Do not load any other files from the references/ directory:
references/REF_ABAP_SECURITY.md — Authority reference for [SEC], [AUTH], and [INTERFACE] dimensionsreferences/REF_CLEAN_ABAP.md — Authority reference for the [STD] dimensionEvery [SEC] / [AUTH] / [STD] finding must cite the corresponding rule ID (e.g.
SEC-SQL-1,[E-2]). Findings without a rule ID citation are invalid and must be removed.
If reference files are not accessible (e.g., the agent cannot read from the skill directory): proceed using built-in ABAP knowledge. Record under Scope Limitations that reference files were unavailable; rule IDs must still be cited in findings.
Retrieve the complete source code of the target program using the appropriate method for your environment:
| Object Type | Scope to Read |
|---|---|
| REPORT | Main program + all INCLUDEs |
| Global Class | Class definition + all METHOD implementations |
| Function Module | Target FM + other FMs in the same function group |
| Enhancement / BAdI | Enhancement Spot definition + all active implementations |
Reading order: main program / class definition → INCLUDEs (in order of appearance) → METHODs (one by one).
Objects that cannot be retrieved: record in the report under Scope Limitations, mark as "unreviewed", and do not assume they are safe.
Complete all 9 dimensions in the order listed below. No dimension may be skipped (if no issues are found, state "No issues found").
Reference: REF_ABAP_SECURITY.md. Scan by priority:
Priority 1 (scan immediately):
EXEC SQL → SEC-SQL-2
GENERATE SUBROUTINE POOL → SEC-CODE-1
INSERT REPORT → SEC-CODE-2
CALL 'SYSTEM' / SXPG_* → SEC-OS-1/2/3
WHERE ( <variable> ) → SEC-SQL-1
DESTINATION ( <variable> ) → SEC-RFC-1
Priority 2 (important checks):
cl_sql_statement → verify set_param parameterization is used
OPEN DATASET → path source + SY-SUBRC check
CALL FUNCTION DESTINATION → RFC destination source
literals containing password/key/token → SEC-CRED-1
Reference: REF_ABAP_SECURITY.md → AUTH-MISS-, AUTH-BYP-
High-risk tables (AUTHORITY-CHECK required before read/write): BKPF/BSEG, MKPF/MSEG, VBAK/VBAP, EKKO/EKPO, PA*/HRP*
Check: ① AUTHORITY-CHECK present before sensitive table operations → ② SY-SUBRC checked immediately after → ③ no SY-UNAME hardcoded bypass → ④ RFC FMs have authorization checks
Special rule: Any HIGH finding in [SEC] or [AUTH] is treated as CRITICAL for the release decision (NO-GO).
Reference: REF_CLEAN_ABAP.md [E-2] [E-3]
Check: SY-SUBRC after CALL FUNCTION → SY-SUBRC after READ TABLE / SELECT SINGLE → SY-SUBRC after OPEN DATASET → ENQUEUE lock before write operations → COMMIT WORK not inside a loop → ROLLBACK WORK on error paths → no empty CATCH blocks that swallow exceptions
Reference: REF_CLEAN_ABAP.md [T-1] [T-2] [T-3]
Check: SELECT inside LOOP (→ [T-2], CRITICAL for large tables) → SELECT * without projection (→ [T-3]) → full table scan (no WHERE clause) → READ TABLE WITH KEY inside LOOP (→ [T-1], switch to SORTED/HASHED) → high-volume tables (BKPF/BSEG/MKPF/MSEG) without row-count protection
Reference: REF_CLEAN_ABAP.md [L-] [C-] [N-] [M-]
Check deprecated statements ([L-3]), hardcoded business values such as bukrs/werks/mandt ([C-3], typically HIGH in enterprise settings), overly long methods ([M-2], flag if > 20 statements), commented-out code blocks ([CM-3]), Unicode compatibility
Reference: REF_ABAP_SECURITY.md SEC-RFC-, SEC-WEB-
Check: RFC FM contains dialog messages MESSAGE TYPE A/I/W (→ SEC-RFC-3) → RFC FM parameters have type declarations → EXCEPTIONS fully declared → CALL FUNCTION DESTINATION has timeout configured → OData DPC Extension has backend authorization check (→ SEC-WEB-2)
Assess: affected database tables (list all read/write/delete operations) → whether SAP standard objects are modified → whether the program shares INCLUDEs or FMs with other programs → Transport prerequisites and cross-system dependencies
Check: PII data reads/exports have a compliance basis → FI/CO postings have dual-control → master data changes written to CDHDR/CDPOS → program logs executor/timestamp/parameters → no single person can both initiate and approve (SoD path)
Execute only when the user provides a requirements specification; otherwise state the reason for skipping in the report.
If executed: verify program entry points cover business scenarios → boundary condition handling (null/zero/oversized datasets) → core business logic matches requirements → calculation logic is accurate → output fields are complete → integration interfaces transmit data completely
| Level | Label | Release Impact |
|---|---|---|
| 🔴 | CRITICAL | Blocks release |
| 🟠 | HIGH | Should block release |
| 🟡 | MEDIUM | Fix in next sprint |
| 🟢 | LOW | Advisory |
| ℹ️ | INFO | No action required |
When severity is uncertain, choose the higher level.
CRITICAL finding present → NO-GO
HIGH finding in [SEC] or [AUTH] → NO-GO (special rule)
HIGH finding in other dimensions → CONDITIONAL GO (requires tech lead sign-off)
MEDIUM / LOW / INFO findings only → GO
Load references/REPORT_TEMPLATE.md and generate the report by strictly following the template structure.
Report language: titles and rule references in English; risk descriptions and remediation recommendations in English.
File naming: ABAP_REVIEW_[PROGRAM_NAME]_[YYYYMMDD].md
When a CRITICAL finding is present, prefix: CRITICAL_ABAP_REVIEW_[PROGRAM_NAME]_[YYYYMMDD].md
Save to the reports/ directory specified by the user and confirm the file path upon completion.
If file system write access is unavailable: output the complete report as formatted Markdown in the conversation. Inform the user that no file was saved and suggest they copy the output manually.
| Rule | Requirement |
|---|---|
| References first | Step 1 must not begin until Step 0 is complete |
| Evidence-first | Every finding must include a real code snippet (≤ 15 lines); findings without code evidence are invalid |
| Rule citation | [SEC] / [AUTH] / [STD] findings must cite a rule ID |
| No false negatives | Objects not retrieved → mark as "partially reviewed"; never write "no issues found" for unread objects |
| No duplication | Same pattern found in multiple locations → one finding listing all locations |
| FUNC gate | No requirements document → skip and state reason; do not infer requirements independently |
README.md (opens in a new tab)README.zh-CN.md (opens in a new tab)references/REF_ABAP_SECURITY.md (opens in a new tab)references/REF_CLEAN_ABAP.md (opens in a new tab)references/REPORT_TEMPLATE.md (opens in a new tab)references/runtime-compatibility.json (opens in a new tab)references/setup.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/sap-adt-cliRead/write live SAP ABAP source and class parts, review multi-object changes, create DDIC/RAP objects, run Unit regression with JUnit, inspect RAP/OData, execute typed local functions/BAPIs, Reports with selections and ABAP snippets, inspect DDIC and transport requests via Watt (sap-watt) or the compatible sap-adt CLI. Use for repository search, where-used, syntax checks, ABAP Unit failure evidence, test include source, ATC, SQL preview, short dump details and stacks, explicitly authorized debugging, Gateway errors, ADT Feeds, object version history, source differences, transport object diffs and CLI updates. Trigger when asked why ABAP/OData failed or what changed in an object or transport. Writes require profile capability flags and fresh per-operation confirmation; diagnostic and diff queries are read-only. Not for offline-only code reviews or general SAP integration advice./sap-integration-wikiUse when integrating external systems (Java, Python, .NET, Node.js, low-code) with SAP (ECC 6.0, S/4HANA On-Prem/Cloud): OData V2/V4, RFC/JCo, SOAP RFC, dynamic REST2RFC/JSON without JCo, IDoc/PI-PO, BAPI, RAP, BTP Integration Suite/iFlow, Event Mesh, Cloud Connector, Communication Arrangements, FI-AA, AR/AP, Central Finance (CFIN), FSSC / 财务共享中心 (Kingdee/金蝶, 用友 to SAP). Use whenever asked to connect to SAP, call a SAP API/BAPI/RFC, read or create SAP data from outside (purchase/sales/production orders, inventory, financial documents, AR/AP, assets, material master, business partner), configure JCo destinations, call or expose RFC/BAPI as JSON from Python/Java/Node/Go without SAP libraries, handle IDocs, set up S/4HANA Cloud Communication Arrangements, implement retry/idempotency, or troubleshoot SAP HTTP 400/401/403, "CSRF token validation failed", "IDoc status 51", "/sap/bc/soap/rfc", "/sap/bc/rest2rfc", JCo/RFC destination errors — even when the user never says "SAP" and only describes symptoms.
Generated from the plugin's indexed repository (shrek-abaper/sap-watt) — no native marketplace selected
npx claudepluginhub p/shrek-abaper-sap-engineering-skillsOther plugins' skills for the same job