Mentor SAP

Create a new DDL Source

 

 

To create a new DDL source, proceed as follows:

  1. Right-click on your project in the project explorer
  2. Choose New -> ABAP Repository Object
  3. From the list, choose Core Data Services -> Data Definitions
  4. Choose Next
  5. Enter the name of a package, and a name and description for the new DDL Source.

 

 

If your package already contains a DDL source, you can use the following shortcut:

  1. In the package explorer, expand sub-node Core Data Services ->Data Definitions of the favorite package.
  2. Right-click Data Definitions and choose New Data Definition

DDL Source Templates

 

 

When you create a new DDL, you can create a blank editor page. Alternatively, you can use one of several available templates as a starting point.

 

Usually, a respective dialog appears after you assigned the new DDL source to your ABAP workbench request. But you can always return to the template selection later in the editing process.

 

 

To choose a template later, go to the Templates tab in the tab strip below the editor window.

 

Syntax Rules

 

 

 

When you define a CDS view, you have two options to specify the element list:

  1. After keyword SELECT, before keyword FORM
  2. Enclosed in characters “{“and “}”, after the FROM clause of the SELECT statement.

Naming Rules and Recommendations

 

Regarding the names of DDL Source, CDS entity, and SQL view, there are some hard rules enforced by the development tools, and mere recommendations that are intended to increase clearness and readability.