You format DDL source code (such as a CDS statement, including the element list, Boolean
expressions, JOINs, association definitions, and so on) to structure the code and to improve
its readability.
In the context of editing DDL, the following use cases are supported:
- Using the SAP standard profile: You want to use the SAP standard profile. This profile
is provided by default and can be used immediately.
Note
The SAP standard profile is persisted in the back end. This ensures that the
formatting result is always consistent – independently of the installed ADT
client version.
The SAP standard profile might differ slightly between SAP NetWeaver releases.
Therefore, formatting results might also differ between ABAP projects.
- Creating your own profile: If the SAP standard profile does not meet your
needs, you can create and use your own profile. In addition, you can import or
export a profile to reuse/share it from/with other ADT developers.
Note
The local configuration is persisted in the Eclipse-based IDE workspace.
- Overruling the SAP standard profile for your team or company: If a team decides to use
its own profile, they can export a profile and make it available for all data
definitions of an ABAP package.
Note
A team profile is persisted in the back end. It does not need to be enabled.
On the basis of the ABAP package, the DDL formatter detects whether the SAP
standard profile or the team profile is to be used.
The DDL formatting settings are configured in the ABAP Development
preferences.

Figure 1:
Example of the first Preferences page for configuring the DDL formatter
Starting from the
Preferences page, you have the following general options:
- DDL formatting is not automatically executed by default. To perform this, select the
Format DDL on save checkbox in advance.
- DDL formatting is configured through profiles. Thus, you can:
- Select the profile you want to work with on your local IDE.
- Create your own profile(s),
Edit it (them) at a later point in time, and
Remove it (them).
- Work with SAP 's standard profile where the settings of the DDL formatter
are already pre-configured.
- Import/Export the profile as
an XML file from/to another local IDE.
- Overrule the SAP standard profile at package level.
- You can Restore Defaults to cancel your changes and revert to the
default provided by SAP.
To execute the DDL formatter, use the context menu or the Shift + F1 shortcut at every position. If you have selected the Format DDL on
save checkbox on the DDL Formatter preferences
page, formatting is automatically performed when you save your changes.