Skip to Content

Introduction

The immense potential of the Core Data Services (CDS) semantic data layer is aware to all of us. The CDS graphical editor complements this potential by representing CDS entities and their relationships in a graphical form.

As an architect or an application developer, you know the difficulty in comprehending complex source codes either developed by you or your colleagues. Every time before you engage in a technical discussion you need to have a relook at the implementation for an effective engagement.

The CDS graphical editor takes care of this gap and brings you up to the speed in a shorter span. The graphical view enables you to have implementation discussions between project stakeholders without detailed explanation of concepts and relationships as they are self-explanatory.

The graphical view is a read-only view. To make changes to the CDS entity, you need to access the source code editor. Graphical editor enables you to directly navigate to the source code editor and make the required changes.

The CDS graphical editor is available in ABAP-in-Eclipse development environment with ABAP Development Tools version 2.51 in SAP NW 7.5 SP00.

Access Graphical Editor

  1. In Project Explorer, navigate to the required ABAP package.
  2. Navigate to the DDL text editor.
  3. Choose a DDL text editor.
  4. In the context menu, choose Open with Graphical Editor.

       The graphical editor appears on the right and provides a graphical display of the entity as described in the DDL text editor.

CDS Graphical Editor Features

In the graphical editor, you can use any of the following options to see the source code of an entity:

  • Double-click the object
  • Use context menu of the object

/wp-content/uploads/2015/10/text_editor_819133.png

Updating the Entity in the Graphical Editor

You can edit the source code in the text editor. Changes made in the text editor appear immediately in the graphical editor. Syntax errors appear as parse error in the object where the error occurred.

/wp-content/uploads/2015/10/parse_error_819134.png

Opening text editor

Choose the object and from the context menu, choose Open DDL Source Editor to view the text editor.

/wp-content/uploads/2015/10/open_ddl_source_editor_819135.png

Where-Used feature

This feature enables you to view the usage of a user-defined type within the DDL source. Choose a user-defined type and from the context menu choose the option “Highlight Used Column”. The user-defined type appears highlighted.

/wp-content/uploads/2015/10/highlight_where_used_819136.png

Browsing Data Model

If the data model is large such that not all the objects are visible in the drawing pane at once, you can use the Miniature View to browse the data model. Press CTRL + 3 on the keyboard and enter Miniature View in the field.

/wp-content/uploads/2015/10/miniature_view_819137.png

Auto Layout

The graphical editor positions the objects in the editor automatically. You can manually change the position of the objects but these positions are not persisted. The next time you open the DDL source the graphical editor lays out the position of the objects automatically. In the context menu of the graphical editor, choose Auto Layout.

/wp-content/uploads/2015/10/auto_layout_819138.png

Printing and Exporting

You can print or export object diagrams using the Print or Export Diagram options available in the context menu of the editor.

The table below displays the graphical representations of entities with its description:

Graphical Representation Description
/wp-content/uploads/2015/10/entity_icon_819139.png This symbol represents an entity.
/wp-content/uploads/2015/10/key_element_icon_819143.png This symbol represents a key element in an entity.
/wp-content/uploads/2015/10/element_icon_819144.png This symbol represents elements in an entity.
/wp-content/uploads/2015/10/association_icon_819145.png This symbol represents an association in an entity
/wp-content/uploads/2015/10/user_defined_type_icon_819146.png This symbol represents a user-defined type.
/wp-content/uploads/2015/10/association_line_819147.png This symbol also defines an association. The directed line indicates the relationship between entities.The association name appears on the line. The line also displays cardinality if you have defined a cardinality for the association.
/wp-content/uploads/2015/10/inner_join_819148.png This symbol represents an inner join.
/wp-content/uploads/2015/10/left_outer_join_819152.png This symbol represents an outer join.
/wp-content/uploads/2015/10/union_icon_819153.png This symbol represents a union.
To report this post you need to login first.

12 Comments

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

  1. Peter Inotai

    This looks really cool. I’m not really big fan of text based editors (except for copy and paste the whole code), so I’m really happy that finally such tools are available.

    Peter

    (0) 
  2. Florian Henninger

    This looks good and will add another reason to use ADT-Tools. I’m a fan of text-based editors, but to show a result and/or a relationship to a bigger group of people in a meeting I love vis-modes.

    ~Florian

    (1) 
  3. Guy Lamoureux

    Instead of starting your text with this phrase :

    The immense potential of the Core Data Services (CDS) semantic data layer is aware to all of us. “

    Why not put a link to a definition of what CDS is. Because not everybody is aware of what it is ?

    Thanks.

    -Guy

    (0) 

Leave a Reply