abap-code-review-helpe…
Primary correctness and runtime-safety review guidance for ABAP reports, classes, function modules, enhancements, BAPIs,…
Clean ABAP style and maintainability guidance. Use when writing ABAP code or when a review explicitly asks for Clean ABAP style, readability, naming, structure, modern syntax, formatting, comments, or refactoring. For a general ABAP report correctness review, use
$ npx -y skills add marcellourbani/vscode_abap_remote_fs --skill clean-abap --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/clean-abapContext preview
The summary Claude sees to decide when to auto-load this skill.
Clean ABAP style and maintainability guidance. Use when writing ABAP code or when a review explicitly asks for Clean ABAP style, readability, naming, structure, modern syntax, formatting, comments, or refactoring. For a general ABAP report correctness review, use
name: clean-abap description: Clean ABAP style and maintainability guidance. Use when writing ABAP code or when a review explicitly asks for Clean ABAP style, readability, naming, structure, modern syntax, formatting, comments, or refactoring. For a general ABAP report correctness review, use abap-code-review-helper first; apply this skill second for style findings. argument-hint: '[ABAP code task or ABAP code review request]' user-invocable: true disable-model-invocation: false
> Distilled from the [SAP Clean ABAP Style Guide](https://github.com/SAP/styleguides). > Licensed under [Creative Commons BY 3.0](https://creativecommons.org/licenses/by/3.0/). > © SAP SE. Attribution preserved per license terms.
Apply ALL rules below when writing or reviewing ABAP code. Every rule is mandatory unless explicitly marked "consider".
Before writing, modifying, or reviewing ABAP code, read the `abap-code-review-helper` skill in full (skip if skill is unavailable), unless its complete contents are already available in your current context. Apply its correctness safeguards alongside these style rules; do not let a style preference change business behavior. Keep passed checks internal.
---
DATA max_response_time_in_millisec TYPE i.
CLASS /clean/account. METHODS read_entries. IF is_empty( table ).
" good result = a + b. " bad rv_result = iv_a + iv_b.
FUNCTION check_business_partner [...].
DATA(validator) = NEW /clean/biz_partner_validator( ).
result = validator->validate( business_partners ).
ENDFUNCTION.DATA(variable) = 'A'. " not MOVE DATA(uppercase) = to_upper( str ). " not TRANSLATE index += 1. " not ADD 1 TO DATA(obj) = NEW /clean/cls( ). " not CREATE OBJECT
DATA(line) = value_pairs[ name = 'A' ].
SELECT * FROM spfli WHERE carrid = @carrid INTO TABLE @itab.
IF abap_type = cl_abap_typedescr=>typekind_date. " not 'D'
CONSTANTS status_inactive TYPE mmsta VALUE '90'. " not c_01
TYPES: BEGIN OF ENUM type, warning, error, END OF ENUM type.
CONSTANTS:
BEGIN OF message_severity,
warning TYPE symsgty VALUE 'W',
error TYPE symsgty VALUE 'E',
END OF message_severity.DATA(name) = 'something'.
DATA name TYPE seoclsname. DATA reader TYPE REF TO reader.
DATA itab TYPE STANDARD TABLE OF row_type WITH EMPTY KEY.
IF line_exists( my_table[ key = 'A' ] ).
TRY.
DATA(row) = my_table[ key = input ].
CATCH cx_sy_itab_line_not_found.
RAISE EXCEPTION NEW /clean/not_found( ).
ENDTRY. DATA(msg) = |HTTP { status_code }: { text }|.DATA has_entries TYPE a
A VS Code extension that gives AI assistants real, live access to your SAP system — reads actual code, queries live tables, runs tests, debugs, and understands your custom objects. Ask "How does BAPI_USER_GET_DETAIL work?"
Primary correctness and runtime-safety review guidance for ABAP reports, classes, function modules, enhancements, BAPIs,…
Structured process for building ABAP solutions. Use BEFORE writing any ABAP code — reports, classes, function modules,…
ABAP performance best practices for ECC / traditional database systems (Oracle, DB2,MSSQL, MaxDB). Use when writing or reviewing…
ABAP performance best practices for S/4HANA and HANA database systems.Use when writing or reviewing ABAP code on HANA-based…
Techniques for navigating and finding objects in SAP systems. Use when searching for transactions, programs, FMs, classes, error…
Investigate SAP ADT REST API endpoints. Use when the user asks about ADT API endpoints, request/response XML formats, content…