clean-abap

Validate ABAP code against SAP Clean ABAP coding standards.

Updated Apr 29, 2026
One-click install
npx skills add https://github.com/LeON-W666/ABAP-Remote-FS-for-Codex --skill clean-abap-leon-w666
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-abap
Source: https://github.com/LeON-W666/ABAP-Remote-FS-for-Codex/tree/main/client/media/skills/clean-abap
Command: npx skills add https://github.com/LeON-W666/ABAP-Remote-FS-for-Codex --skill clean-abap-leon-w666

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves inconsistent, hard-to-maintain ABAP code by enforcing SAP Clean ABAP conventions so your programs stay readable, modern, and testable.

Core Features & Use Cases

  • Naming and structure rules: Enforces descriptive snake_case naming, clear boolean prefixes, and class/method conventions that reduce ambiguity.
  • Modern ABAP language guidance: Promotes modern syntax, safer SQL host variables, functional constructs, and table expressions over obsolete patterns.
  • Quality for maintainability: Covers error handling with exceptions, consistent formatting, and structured testing patterns that improve long-term stability.
  • Use case: Review a customer report program and refactor it so method and variable names follow Clean ABAP, obsolete constructs are removed, and exception-based error handling plus unit test seams are applied.

Quick Start

Ask for a clean-abap check or refactor by providing the ABAP code snippet or a request like “Clean this ABAP according to SAP Clean ABAP rules and explain the key changes.”

Frequently Asked Questions about clean-abap

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

FAQPage Schema
How do I refactor ABAP code to follow SAP clean code standards?

Refactor ABAP code to follow SAP clean code standards by enforcing descriptive snake_case naming, modern syntax, and exception-based error handling. This ensures your programs remain readable, testable, and maintainable across object-oriented design and table operations.

What are the SAP Clean ABAP rules for naming variables and methods?

SAP Clean ABAP rules for naming variables and methods require descriptive snake_case naming, clear boolean prefixes, and specific class and method conventions. This reduces ambiguity and ensures consistent, rule-compliant improvements across your SAP codebase.

How do I modernize obsolete ABAP constructs during a code review?

Modernize obsolete ABAP constructs during a code review by replacing them with modern syntax, safer SQL host variables, functional constructs, and table expressions. This removes legacy patterns and aligns your code with current SAP style guide recommendations.

Does clean ABAP guidance include unit testing and error handling patterns?

Clean ABAP guidance includes unit testing and error handling patterns by enforcing exception-based error handling and structured testing seams. This improves long-term stability and ensures your refactored programs are fully testable according to SAP standards.

Can I use clean ABAP standards for both new development and refactoring?

You can use clean ABAP standards for both new development and refactoring existing customer reports. The standards validate language constructs, structure, and testing patterns, producing consistent improvements for maintainability across all your SAP programming tasks.

What is the best way to enforce consistent formatting in ABAP code?

The best way to enforce consistent formatting in ABAP code is by applying the SAP Clean ABAP rule set. This validates naming, language constructs, and structure, ensuring your code adheres to modern SAP style guidelines for long-term maintainability.