origami

origami and ABAP Cleaner

ABAP Cleaner cleans up code: it replaces obsolete statements, removes unused variables and also lays the code out. origami only lays it out. This page compares only the layout: the same code, formatted by ABAP Cleaner's layout rules and by origami.

ABAP Cleaner
1.29.2, default profile reduced to its 47 layout rules with their default options (how). Checked on 2026-11-23 on the 1,964 ABAP and 144 CDS files of the test corpus: these rules change no code and delete no comment; the only reordering is a closing bracket moved in front of a comment or pragma.
origami
origami 0.2.1 (style edition 2026), default settings.
Both
Line width 120, keywords in upper case, indent 2.

The same code, twice

Each input was run through both tools as it is. The differences come from two choices: origami breaks every line that is too long and ignores the author's line breaks, and it aligns columns only inside one statement.

Method calls

Both hang the parameters behind the opening bracket and align the = signs. A call with two or more parameter keywords puts each keyword on its own line in both tools. origami aligns the = signs per keyword, ABAP Cleaner across all of them.

Before
lo_service->read( exporting iv_id = lv_id importing es_data = ls_data ).
lo_service->check( exporting iv_id = lv_id ).
data(lv_result) = lo_calculator->calculate( iv_amount = lv_amount iv_currency = lv_currency iv_date = sy-datum iv_rounding = abap_true ).
ABAP Cleaner, layout rules
lo_service->read( EXPORTING iv_id   = lv_id
                  IMPORTING es_data = ls_data ).
lo_service->check( EXPORTING iv_id = lv_id ).
DATA(lv_result) = lo_calculator->calculate( iv_amount   = lv_amount
                                            iv_currency = lv_currency
                                            iv_date     = sy-datum
                                            iv_rounding = abap_true ).
origami
lo_service->read( EXPORTING iv_id = lv_id
                  IMPORTING es_data = ls_data ).
lo_service->check( EXPORTING iv_id = lv_id ).
DATA(lv_result) = lo_calculator->calculate( iv_amount   = lv_amount
                                            iv_currency = lv_currency
                                            iv_date     = sy-datum
                                            iv_rounding = abap_true ).

Lines longer than the limit

origami breaks every statement that does not fit into the line width: before AND and OR, and before each SQL clause. ABAP Cleaner's layout rules align lines that are already broken, but they leave a long line as it is.

Before
if lv_amount > 0 and lv_currency is not initial and ls_data-status = 'A' and ls_data-created_by = sy-uname and lv_flag = abap_true.
  book( ).
endif.
select carrid, connid, fldate from sflight where carrid = @lv_carrier and fldate >= @sy-datum into table @data(lt_flights).
ABAP Cleaner, layout rules
IF lv_amount > 0 AND lv_currency IS NOT INITIAL AND ls_data-status = 'A' AND ls_data-created_by = sy-uname AND lv_flag = abap_true.
  book( ).
ENDIF.
SELECT carrid, connid, fldate FROM sflight
  WHERE carrid = @lv_carrier AND fldate >= @sy-datum
  INTO TABLE @DATA(lt_flights).
origami
IF lv_amount > 0
    AND lv_currency IS NOT INITIAL
    AND ls_data-status = 'A'
    AND ls_data-created_by = sy-uname
    AND lv_flag = abap_true.
  book( ).
ENDIF.
SELECT carrid, connid, fldate
    FROM sflight
    WHERE carrid = @lv_carrier AND fldate >= @sy-datum
    INTO TABLE @DATA(lt_flights).

Your own line breaks

origami does not keep line breaks: whatever fits goes on one line, so two authors always get the same result. ABAP Cleaner keeps the author's breaks and aligns around them.

Before
lv_count =
  lines( lt_flights ).
lo_service->read(
  exporting
    iv_id = lv_id ).
mt_items = value #(
  ( id = 1 name = `Alpha` )
  ( id = 2 name = `Beta` ) ).
ABAP Cleaner, layout rules
lv_count =
  lines( lt_flights ).
lo_service->read( EXPORTING iv_id = lv_id ).
mt_items = VALUE #( ( id = 1 name = `Alpha` )
                    ( id = 2 name = `Beta` ) ).
origami
lv_count = lines( lt_flights ).
lo_service->read( EXPORTING iv_id = lv_id ).
mt_items = VALUE #( ( id = 1 name = `Alpha` ) ( id = 2 name = `Beta` ) ).

Declarations

ABAP Cleaner aligns TYPE across separate DATA statements and puts each item of a chain on its own line. origami aligns only inside a chain it has to break, and keeps a chain that fits on one line.

Before
data lv_count type i.
data lt_flights type standard table of sflight with empty key.
data lo_logger type ref to zcl_logger.
data: lv_a type i, lv_long_name type string.
types: begin of ty_item, id type i, name type string, end of ty_item.
ABAP Cleaner, layout rules
DATA lv_count   TYPE i.
DATA lt_flights TYPE STANDARD TABLE OF sflight WITH EMPTY KEY.
DATA lo_logger  TYPE REF TO zcl_logger.
DATA: lv_a         TYPE i,
      lv_long_name TYPE string.
TYPES: BEGIN OF ty_item,
         id   TYPE i,
         name TYPE string,
       END OF ty_item.
origami
DATA lv_count TYPE i.
DATA lt_flights TYPE STANDARD TABLE OF sflight WITH EMPTY KEY.
DATA lo_logger TYPE REF TO zcl_logger.
DATA: lv_a TYPE i, lv_long_name TYPE string.
TYPES: BEGIN OF ty_item,
         id   TYPE i,
         name TYPE string,
       END OF ty_item.

Method signatures

ABAP Cleaner keeps IMPORTING behind the method name and aligns the types in a table. origami gives each section keyword its own line and does not align types, so renaming one parameter changes one line.

Before
class zcl_rates definition public final create public.
  public section.
    methods calculate importing iv_amount type p iv_currency type waers iv_date type d returning value(rv_result) type p raising zcx_calc_error.
    methods reset.
endclass.
ABAP Cleaner, layout rules
CLASS zcl_rates DEFINITION PUBLIC FINAL CREATE PUBLIC.
  PUBLIC SECTION.
    METHODS calculate IMPORTING iv_amount        TYPE p
                                iv_currency      TYPE waers
                                iv_date          TYPE d
                      RETURNING VALUE(rv_result) TYPE p
                      RAISING   zcx_calc_error.

    METHODS reset.
ENDCLASS.
origami
CLASS zcl_rates DEFINITION PUBLIC FINAL CREATE PUBLIC.
  PUBLIC SECTION.
    METHODS calculate
        IMPORTING
          iv_amount TYPE p
          iv_currency TYPE waers
          iv_date TYPE d
        RETURNING
          VALUE(rv_result) TYPE p
        RAISING
          zcx_calc_error.
    METHODS reset.
ENDCLASS.

Comments and blank lines

origami puts exactly one space before an end-of-line comment and never changes comment text, apart from aligning ABAP Doc. ABAP Cleaner keeps aligned comments, adds a space after " and adds blank lines, for example after declarations.

Before
* Totals per carrier


lv_count = 0.          " counter
mv_total = iv_amount.  " sum
"tax is added later
lv_tax = mv_total * lv_rate.
ABAP Cleaner, layout rules
* Totals per carrier

lv_count = 0.          " counter
mv_total = iv_amount.  " sum
" tax is added later
lv_tax = mv_total * lv_rate.
origami
* Totals per carrier
lv_count = 0. " counter
mv_total = iv_amount. " sum
"tax is added later
lv_tax = mv_total * lv_rate.

CALL FUNCTION

Same structure, two details: origami indents the parameter groups by four spaces, ABAP Cleaner by two and also aligns the keywords and = signs across groups.

Before
call function 'Z_FLIGHT_TRAVEL_CREATE' exporting is_travel = ls_travel it_booking = lt_booking importing es_travel = ls_result exceptions not_found = 1 others = 2.
ABAP Cleaner, layout rules
CALL FUNCTION 'Z_FLIGHT_TRAVEL_CREATE'
  EXPORTING  is_travel  = ls_travel
             it_booking = lt_booking
  IMPORTING  es_travel  = ls_result
  EXCEPTIONS not_found  = 1
             OTHERS     = 2.
origami
CALL FUNCTION 'Z_FLIGHT_TRAVEL_CREATE'
    EXPORTING is_travel  = ls_travel
              it_booking = lt_booking
    IMPORTING es_travel = ls_result
    EXCEPTIONS not_found = 1
               OTHERS    = 2.

Letter case

Both write keywords in upper case and identifiers without a lower-case letter in lower case; an identifier in mixed case keeps it. Literals and comments are never changed. The only difference here is the blank line ABAP Cleaner adds after the declarations.

Before
DATA LV_COUNT TYPE I.
DATA lvOffset TYPE I VALUE 2.
LV_COUNT = LINES( MT_ITEMS ) + lvOffset.
MESSAGE |COUNT: { LV_COUNT }| TYPE 'S'. " Total
ABAP Cleaner, layout rules
DATA lv_count TYPE i.
DATA lvOffset TYPE i VALUE 2.

lv_count = lines( mt_items ) + lvOffset.
MESSAGE |COUNT: { lv_count }| TYPE 'S'. " Total
origami
DATA lv_count TYPE i.
DATA lvOffset TYPE i VALUE 2.
lv_count = lines( mt_items ) + lvOffset.
MESSAGE |COUNT: { lv_count }| TYPE 'S'. " Total

CDS view entity

Both put each clause of the header and each element on its own line. ABAP Cleaner also aligns as aliases and adds blank lines between sections; origami lines up names after key and keeps single spaces.

Before
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Travel'
define view entity ZI_Travel as select from /dmo/travel association [0..1] to /DMO/I_Agency as _Agency on $projection.AgencyID = _Agency.AgencyID {
  key travel_id as TravelID, agency_id as AgencyID, customer_id as CustomerID,
  _Agency
}
ABAP Cleaner, layout rules
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Travel'

define view entity ZI_Travel
  as select from /dmo/travel

  association [0..1] to /DMO/I_Agency as _Agency on $projection.AgencyID = _Agency.AgencyID

{
  key travel_id   as TravelID,

      agency_id   as AgencyID,
      customer_id as CustomerID,

      _Agency
}
origami
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Travel'
define view entity ZI_Travel
  as select from /dmo/travel
  association [0..1] to /DMO/I_Agency as _Agency on $projection.AgencyID = _Agency.AgencyID
{
  key travel_id as TravelID,
      agency_id as AgencyID,
      customer_id as CustomerID,
      _Agency
}

Aligned statements, COND and SELECT lists

Both tools align consecutive ALIASES, REDEFINITION and FOR TESTING declarations, assignments to the same structure, ABAP Doc parameters, the branches of COND and a SELECT list with aliases, and both remove the space before the period. The differences: origami indents the SQL clauses by four spaces and keeps a method signature that fits on one line; ABAP Cleaner indents by two, aligns the signature in a table and adds blank lines.

Before
CLASS lcl_flights DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT.
  PUBLIC SECTION.
    INTERFACES zif_reader.
    ALIASES read FOR zif_reader~read.
    ALIASES read_all_entries FOR zif_reader~read_all_entries.
    "! Reads one flight
    "! @parameter iv_carrier | Airline
    "! @parameter iv_connection_number | Flight number
    "! @raising zcx_not_found | No such flight
    METHODS get_flight IMPORTING iv_carrier TYPE s_carr_id iv_connection_number TYPE s_conn_id RAISING zcx_not_found.
    METHODS get_name REDEFINITION.
    METHODS get_description REDEFINITION.
  PRIVATE SECTION.
    METHODS reads_one_flight FOR TESTING.
    METHODS fails_without_carrier FOR TESTING RAISING cx_static_check.
ENDCLASS.

CLASS lcl_flights IMPLEMENTATION.
  METHOD reads_one_flight.
    ls_flight-carrid = 'LH' .
    ls_flight-connid = '0400' .
    ls_flight-seats_occupied = 120 .
    SELECT carrid, connid, cityfrom AS departure, cityto AS arrival FROM spfli INTO TABLE @DATA(lt_routes) WHERE carrid = @ls_flight-carrid.
    DATA(lv_status) = COND #( WHEN ls_flight-seats_occupied = 0 THEN 'empty' WHEN ls_flight-seats_occupied < 200 THEN 'open' ELSE 'full' ).
  ENDMETHOD.
ENDCLASS.
ABAP Cleaner, layout rules
CLASS lcl_flights DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT.
  PUBLIC SECTION.
    INTERFACES zif_reader.

    ALIASES read             FOR zif_reader~read.
    ALIASES read_all_entries FOR zif_reader~read_all_entries.

    "! Reads one flight
    "! @parameter iv_carrier           | Airline
    "! @parameter iv_connection_number | Flight number
    "! @raising   zcx_not_found        | No such flight
    METHODS get_flight IMPORTING iv_carrier           TYPE s_carr_id
                                 iv_connection_number TYPE s_conn_id
                       RAISING   zcx_not_found.

    METHODS get_name        REDEFINITION.
    METHODS get_description REDEFINITION.

  PRIVATE SECTION.
    METHODS reads_one_flight      FOR TESTING.
    METHODS fails_without_carrier FOR TESTING RAISING cx_static_check.
ENDCLASS.


CLASS lcl_flights IMPLEMENTATION.
  METHOD reads_one_flight.
    ls_flight-carrid         = 'LH'.
    ls_flight-connid         = '0400'.
    ls_flight-seats_occupied = 120.
    SELECT carrid,
           connid,
           cityfrom AS departure,
           cityto   AS arrival
      FROM spfli
      INTO TABLE @DATA(lt_routes)
      WHERE carrid = @ls_flight-carrid.
    DATA(lv_status) = COND #( WHEN ls_flight-seats_occupied = 0   THEN 'empty'
                              WHEN ls_flight-seats_occupied < 200 THEN 'open'
                              ELSE                                     'full' ).
  ENDMETHOD.
ENDCLASS.
origami
CLASS lcl_flights DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT.
  PUBLIC SECTION.
    INTERFACES zif_reader.
    ALIASES read             FOR zif_reader~read.
    ALIASES read_all_entries FOR zif_reader~read_all_entries.
    "! Reads one flight
    "! @parameter iv_carrier           | Airline
    "! @parameter iv_connection_number | Flight number
    "! @raising   zcx_not_found        | No such flight
    METHODS get_flight IMPORTING iv_carrier TYPE s_carr_id iv_connection_number TYPE s_conn_id RAISING zcx_not_found.
    METHODS get_name        REDEFINITION.
    METHODS get_description REDEFINITION.
  PRIVATE SECTION.
    METHODS reads_one_flight      FOR TESTING.
    METHODS fails_without_carrier FOR TESTING RAISING cx_static_check.
ENDCLASS.

CLASS lcl_flights IMPLEMENTATION.
  METHOD reads_one_flight.
    ls_flight-carrid         = 'LH'.
    ls_flight-connid         = '0400'.
    ls_flight-seats_occupied = 120.
    SELECT carrid,
           connid,
           cityfrom AS departure,
           cityto   AS arrival
        FROM spfli
        INTO TABLE @DATA(lt_routes)
        WHERE carrid = @ls_flight-carrid.
    DATA(lv_status) = COND #( WHEN ls_flight-seats_occupied = 0   THEN 'empty'
                              WHEN ls_flight-seats_occupied < 200 THEN 'open'
                              ELSE                                     'full' ).
  ENDMETHOD.
ENDCLASS.

Every ABAP Cleaner rule

ABAP Cleaner 1.29.2 has 100 rules. 53 of them change code, comments or names; origami never does that, it checks its own output token by token. Of the other 47, origami does 20 the same way and covers 23 with its own layout; 4 have no counterpart.

ABAP Cleaner rules and origami
ABAP Cleaner ruleFiles with changed code or commentsorigamiHow origami handles it
Empty lines
Standardize empty lines within methodsEMPTY_LINES_WITHIN_METHODS–Own layoutABAP-BLANK-001 Removes blank lines after a block opener and before its closer and keeps at most one in a row; never adds one.
Separate methods and classes with empty linesEMPTY_LINES_OUTSIDE_METHODS–Own layoutABAP-BLANK-001 Keeps the blank lines between methods and classes (at most one); does not add any.
Standardize empty lines in class definitionsEMPTY_LINES_IN_CLASS_DEFINITION51Own layoutABAP-BLANK-001 Does not add blank lines above sections.
Standardize test classes for CDS viewsCDS_TEST_CLASS_LINES–Not a goal
Move commands to own linesONE_COMMAND_PER_LINE–SameABAP-STMT-001
Spaces
Put spaces around text literalsSPACES_IN_EMPTY_BRACKETS–NoTokens that touch in the input stay together, because in ABAP a space can change the meaning.
Close brackets at line endCLOSING_BRACKETS_POSITION18SameABAP-CALL-001 ABAP-VALUE-001
Remove space before commas and periodSPACE_BEFORE_PERIOD17SameABAP-SPACE-001 Also before commas in SQL lists; a lone period or comma moves up across comment lines.
Put spaces around " comment signSPACE_AROUND_COMMENT_SIGN–Own layoutABAP-COMMENT-002 One space before an end-of-line comment; the comment text is never changed.
Remove needless spacesNEEDLESS_SPACES–SameABAP-COMMENT-002 Single spaces between tokens; hand-aligned end-of-line comments are not kept.
Declarations
Unchain into multiple statementsDECLARATION_CHAIN716Not a goal
Remove needless CLEARNEEDLESS_CLEAR16Not a goal
Rearrange local declarationsLOCAL_DECLARATION_ORDER707Not a goal
Report unused parametersUNUSED_PARAMETERS84Not a goal
Delete unused variablesUNUSED_VARIABLES293Not a goal
Simplify a chain with one elementCHAIN_OF_ONE674Not a goal
Make implicit type explicitIMPLICIT_TYPE97Not a goal
Use FINAL for immutable variablesFINAL_VARIABLE135Not a goal
Standardize CLASS ... DEFINITIONCLASS_DEFINITION286Not a goal
Standardize escaping of !parametersESCAPE_CHAR_FOR_PARAMS659Not a goal
Remove empty class definition SECTIONsEMPTY_SECTIONS236Not a goal
Add missing parameters to ABAP DocABAP_DOC_PARAMETERS19Not a goal
Remove lang="en" from ABAP DocABAP_DOC_LANG10Not a goal
Syntax
Comment with ", not with * (for text)COMMENT_TYPE605Not a goal
Remove end-of commentsEND_OF_COMMENT54Not a goal
Replace obsolete pseudo comments with pragmasPSEUDO_COMMENT62Not a goal
Move pragmas to correct positionPRAGMA_POSITION–Not a goal
Correct frequent typosTYPO75Not a goal
Resolve equals sign chain into several commandsEQUALS_SIGN_CHAIN5Not a goal
Prefer calculation assignment operators (+=, -= etc.)CALCULATION_ASSIGNMENT159Not a goal
Use consistent set of comparison operatorsCOMPARISON_OPERATOR92Not a goal
Prefer IS NOT to NOT ISNOT_IS87Not a goal
Move AND/OR etc. from line end to next line startLOGICAL_OPERATOR_POSITION2SameABAP-COND-001 AND and OR always start the line.
Use string templates to assemble textSTRING_TEMPLATE207Not a goal
Remove needless parenthesesNEEDLESS_PARENTHESES7Not a goal
Remove empty commandsEMPTY_COMMAND17Not a goal
Shorten VALUE statementsVALUE_STATEMENT28Not a goal
Remove the self-reference me->SELF_REFERENCE_ME48Not a goal
Omit RECEIVINGRECEIVING_KEYWORD20Not a goal
Omit optional EXPORTINGEXPORTING_KEYWORD25Not a goal
Commands
Replace EXIT outside loop with RETURNEXIT_OUTSIDE_LOOP11Not a goal
Convert CHECK outside loop to IF NOT ... RETURNCHECK_OUTSIDE_LOOP25Not a goal
Convert CHECK in loop to IF NOT ... CONTINUECHECK_IN_LOOP40Not a goal
Replace long IF blocks at loop endIF_BLOCK_AT_LOOP_END36Not a goal
Replace long IF blocks at method endIF_BLOCK_AT_METHOD_END82Not a goal
Replace CALL METHOD with functional callCALL_METHOD73Not a goal
Replace CREATE OBJECT with NEW constructorCREATE_OBJECT523Not a goal
Replace RAISE ... TYPE with RAISE ... NEWRAISE_TYPE137Not a goal
Replace obsolete ADD ... TO etc. with += etc.ADD_TO_ETC24Not a goal
Replace obsolete MOVE ... TO with =MOVE_TO17Not a goal
Replace TRANSLATE with string functionsTRANSLATE13Not a goal
Replace CONDENSE with string functionCONDENSE42Not a goal
Replace DESCRIBE TABLE ... LINES with lines( )DESCRIBE_TABLE9Not a goal
Replace READ TABLE with table expressionREAD_TABLE198Not a goal
Use assert_true and assert_falseASSERT_EQUALS_BOOLEAN63Not a goal
Use assert_subrc instead of assert_equalsASSERT_EQUALS_SUBRC8Not a goal
Use assert class instead of ASSERTASSERT_CLASS287Not a goal
Standardize assertion parameter orderASSERT_PARAMETER_ORDER225Not a goal
Pretty printer
Convert upper and lower caseUPPER_AND_LOWER_CASE–SameABAP-CASE-001 ABAP-CASE-002 Keywords in upper case; identifiers without lower-case letters in lower case, mixed case kept.
Use CamelCase for known CDS namesCAMEL_CASE_NAME–Not a goalChanges the case of names.
Use CamelCase in test class for CDS viewCAMEL_CASE_IN_CDS_TEST–Not a goalChanges the case of names.
Indent linesINSET–SameABAP-BLOCK-001 ABAP-CLASS-001
Alignment
Align ABAP DocALIGN_ABAP_DOC–SameABAP-DOC-001 Only the blanks after the tag and before | change; not aligned if a line would exceed the width.
Align METHODS declarationsALIGN_METHODS_DECLARATION–Own layoutABAP-METHODS-001 Each section keyword on its own line, parameters one level deeper, types not aligned.
Align METHODS ... FOR TESTINGALIGN_METHODS_FOR_TESTING–SameABAP-ALIGN-005 Not aligned if a line would exceed the width.
Align METHODS ... REDEFINITIONALIGN_METHODS_REDEFINITION–SameABAP-ALIGN-006 Not aligned if a line would exceed the width.
Align ALIASES ... FOR ...ALIGN_ALIASES_FOR–SameABAP-ALIGN-007 Not aligned if a line would exceed the width.
Align declarationsALIGN_DECLARATIONS–Own layoutABAP-DECL-001 ABAP-ALIGN-003 TYPE is aligned inside a broken chain, not across separate DATA statements.
Align assignments to the same objectALIGN_ASSIGNMENTS–SameABAP-ALIGN-004 Not across a chain; not aligned if a line would exceed the width.
Align keywords with second word of first lineALIGN_WITH_SECOND_WORD–Own layoutABAP-INDENT-001 Continuation lines use a fixed indent of two levels.
Align CLEAR:, FREE:, SORT and CATCHALIGN_CLEAR_FREE_AND_SORT–Own layoutABAP-CHAIN-001 A chain that fits stays on one line; otherwise one item per line, aligned after the colon.
Align SELECT clausesALIGN_SELECT_CLAUSES–Own layoutABAP-SQL-001 Each clause starts its own line when the statement does not fit.
Align SELECT ... FROM ... JOINALIGN_SELECT_FROM–Own layoutABAP-SQL-001 A JOIN starts its own clause line; ON conditions are not aligned.
Align SELECT listsALIGN_SELECT_LISTS–Own layoutABAP-SQL-003 Lists with complex fields one field per line, AS aligned; simple lists on one line if they fit (not derived from the rest of the file).
Align parameters and componentsALIGN_PARAMETERS–SameABAP-CALL-001 ABAP-CALL-002 ABAP-ALIGN-001 ABAP-ALIGN-002 ABAP-VALUE-001 With several parameter keywords, origami aligns = per keyword.
Align logical expressionsALIGN_LOGICAL_EXPRESSIONS–Own layoutABAP-COND-001 Breaks before AND and OR at a fixed indent; operands are not aligned in columns.
Align conditional expressionsALIGN_COND_EXPRESSIONS–SameABAP-COND-002 A COND with one WHEN is joined onto one line when it fits.
Align FORM declarationsALIGN_FORM_DECLARATION–Own layoutABAP-FORM-001 Each section on its own line, parameters one level deeper.
Align PERFORM parametersALIGN_PERFORM–Own layoutA long PERFORM breaks before a section keyword that does not fit.
CDS annotations
Standardize annotation layoutDDL_ANNO_LAYOUT–Own layoutCDS-ANNO-001 A value goes on one line when it fits, otherwise one item per line as in JSON; not aligned in columns.
Rearrange annotationsDDL_ANNO_NESTING71Not a goal
CDS line breaks
Break before DEFINE etc.DDL_POSITION_DEFINE–SameCDS-UNIT-001
Break before AS SELECT etc.DDL_POSITION_SELECT–SameCDS-HEAD-001
Break before JOINsDDL_POSITION_JOIN–SameCDS-HEAD-001
Break before ASSOCIATIONsDDL_POSITION_ASSOCIATION–SameCDS-HEAD-001
Break before select list bracesDDL_POSITION_BRACES–SameCDS-UNIT-001 CDS-BLOCK-001
Break before WHERE clause etc.DDL_POSITION_CLAUSES–SameCDS-CLAUSE-001 No blank line is added before UNION or INTERSECT.
CDS spaces
Standardize spaces around colon, comma etc.DDL_SPACES_AROUND_SIGNS–Own layoutCDS-SPACE-001 Runs of spaces shrink to one; no space is added or removed next to a sign.
Standardize spaces around bracketsDDL_SPACES_AROUND_BRACKETS–Own layoutCDS-SPACE-001 Runs of spaces shrink to one; no space is added or removed next to a bracket.
Use CamelCase for known entity and field namesDDL_CAMEL_CASE_NAME–Not a goalChanges the case of names.
Correct frequent typos in DDL commentsDDL_TYPO2Not a goal
CDS alignment
Align view parametersDDL_ALIGN_ENTITY_PARAMETERS–Own layoutCDS-HEAD-001 View parameters go one level deeper; they are not aligned in columns.
Align source parametersDDL_ALIGN_SOURCE_PARAMETERS–NoLine breaks inside a header clause are kept as written.
Align function parameters after =>DDL_ALIGN_FUNCTION_PARAMETERS–NoFunction parameters are not aligned.
Align logical expressions in viewsDDL_ALIGN_LOGICAL_EXPRESSIONS–Own layoutCDS-HEAD-001 DCL-GRANT-001 A long condition breaks before and / or; operands are not aligned in columns.
Align name list and GROUP BY listDDL_ALIGN_FIELD_LISTS–NoName lists and GROUP BY lists are not aligned.
Align JOINs and ASSOCIATIONsDDL_ALIGN_DATA_SOURCES–Own layoutCDS-HEAD-001 Each join and association starts its own line one level deeper.
Align select listDDL_ALIGN_SELECT_LIST–Own layoutCDS-KEY-001 CDS-SPACE-001 Names line up after key; aliases are not aligned.
CDS empty lines
Standardize empty lines between sectionsDDL_EMPTY_LINES_BETWEEN–Own layoutCDS-BLANK-001 Keeps blank lines as written (at most one); does not add any.
Standardize empty lines within sectionsDDL_EMPTY_LINES_WITHIN–Own layoutCDS-BLANK-001 Keeps blank lines as written (at most one); does not add any.

"Files with changed code or comments": each rule was run alone over the 2,108 ABAP and CDS files of the test corpus; the number counts files where more than whitespace and letter case changed. A rule that changes only names (CamelCase) shows –.