Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
wolfgang_woehrle
Product and Topic Expert
Product and Topic Expert
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.

As of SAP NetWeaver AS for ABAP 7.51 innovation package SP00, 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
9 Comments