Show TOC

Code Templates for ABAP Dictionary ObjectsLocate this document in the navigation structure

Code templates help you to reduce the time spent on routine editing activities and improve consistency when writing code.

Structures

Since SAP NetWeaver 7.5 SP00, you can add code templates to structures in ABAP Development Tools (ADT).

As in the ABAP source code editor, you can add code snippets with specific syntax like a development object, annotation, or component at the current cursor position in the ABAP Dicitonary editor. After adding, you need to adapt the placeholders with variables, elements, lengths, decimals, and so on.

You can add code templates, for example, through code completion (Ctrl Space).

For structures, the following template types are provided:

  • currencyKey: Currency and its Currency Key
  • quantityUnit: Quantity and its unit
  • searchHelp: Search help attachment
  • foreignKey: Foreign key
  • appendStructure: Append structure
  • And so on
Note For further details about the variables used in the corresponding code templates, see Related Information.