Skip to Content

You might know the formatter (a.k.a. pretty printer) in the core development scenario. It aligns the source code in accordance to predefined rules. Consequently, it adds/removes, for example, tab stops, line breaks, spaces and improves readability.

From now on, you can also use the formatter for CDS entities. Open your CDS entity and choose Source Code > Format from the context menu.

Formatting is then performed directly in the editor.

Predefined Profiles

SAP provides you a predefined default configuration. But, you can also define your own formatting behavior for specific use cases. You can even share this profile with your team by exporting or importing it from them. Not bad!

You configure the DDL Formatter using a profile for each ABAP project in the Preferences. Open the ABAP Development > Editors > DDL Formatter Preferences page.

Here you find SAP’s standard profile. To create your own choose New or Edit to adapt the default profile.

The Profile dialog is then opened. From here you can open several tabs to define specific formatting behavior.

An integrated preview helps you to check the outcome of your configuration when typing.

For more information, look here Formatting DDL

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

  1. Joseph BERTHE


    Very good blog 🙂

    I try to do what you explained but I have an error :

    DDL formatter is not available in project ‘blablabla

    What do you think ?





Leave a Reply