Skip to content

Indent and snap to tab

Indent parameter keywords by 2 spaces and parameters by 4 spaces:

DATA(sum) = add_two_numbers(
              EXPORTING
                value_1 = 5
                value_2 = 6
              CHANGING
                errors  = errors ).

If you have no keywords, indent the parameters by 4 spaces.

DATA(sum) = add_two_numbers(
                value_1 = 5
                value_2 = 6 ).

Use the Tab key to indent. It’s okay if this adds one more space than needed. (This happens if the DATA(sum) = part at the left has an uneven number of characters.)

From SAP/styleguides under CC BY 3.0 — more details
Last updated on