Академический Документы
Профессиональный Документы
Культура Документы
Table of Contents
CREATING CDS OBJECTS
3
4
5
6
HOW CAN I USE FOREIGN KEYS ALREADY DEFINED IN THE ABAP DDIC IN MY JOIN CONDITIONS AND ASSOCIATION DEFINITIONS?
7
IS THERE AN EASY WAY TO CREATE THE IMPLEMENTING METHOD OF MY CDS TABLE FUNCTIONS?
8
HOW CAN I INSERT COMMENTS IN MY CDS ENTITIES?
9
HOW CAN I NAVIGATE TO THE TARGET ENTITY OF AN ASSOCIATION?
10
HOW TO USE CODE COMPLETION TO INSERT THE SIGNATURE OF A CDS VIEW WITH PARAMETERS, CDS TABLE FUNCTIONS OR BUILT-IN SQL
FUNCTIONS?
11
HOW CAN I HIDE THE ANNOTATIONS/COMMENTS IN MY DATA DEFINITION SO THAT I CAN BETTER SEE THE DEFINED FIELDS?
12
FORMATTING CDS SOURCES
13
WHY IS THE CASING OF KEYWORDS AND IDENTIFIERS MODIFIED WHEN I SAVE MY DATA DEFINITION?
WHERE CAN I CAN CHANGE THE TEXT SIZE AND COLOR IN MY CDS EDITORS?
13
14
15
HOW CAN I GET A BETTER OVERVIEW OF ALL THE FIELDS AND ASSOCIATIONS PROVIDED BY MY DATA DEFINITION?
WHERE CAN I SEE DETAILS (TYPE, ELEMENTS, LABELS AND DESCRIPTIONS) OF THE DATA SOURCES AND ELEMENTS USED?
HOW CAN I EASILY SEE THE DATABASE TABLES AND VIEWS WHICH MY DATA DEFINITION USES?
WHERE CAN I SEE THE SQL CREATE STATEMENT WHICH IS GENERATED FOR MY DATA DEFINITION?
HOW CAN I SHARE MY CDS ENTITIES WITH MY COLLEAGUES?
CAN I PERFORM WHERE-USED FOR MY DATA DEFINITION / ACCESS CONTROL?
I ONLY HAVE THE SQL VIEW NAME. HOW CAN I FIND THE CORRESPONDING DATA DEFINITION?
HOW CAN I SEARCH FOR A TEXT IN MY DATA DEFINITIONS?
15
17
18
20
21
23
24
25
ERROR HANDLING
26
26
28
29
30
31
32
33
35
36
HELP
37
WHERE CAN I FIND DETAILED INFORMATION ABOUT THE CDS TOOLING IN ADT?
WHERE DO I GET MORE INFORMATION ABOUT THE CDS LANGUAGE?
IS THERE A LIST OF ALL THE KEYBOARD SHORTCUTS I CAN USE IN MY CDS EDITORS?
37
38
39
DISCLAIMER
40
After duplicating the object, you can use the TAB-key to navigate to the positions in the
source code which must be modified, e.g. the entity name.
You can also choose a creation template in the creation wizard after you have selected a
Transport Request (click "Next >"). If you select the "Use the selected template" checkbox
in the Templates page, then the chosen template will automatically be inserted every time
you call the wizard to create a new object.
The condition will be inserted into your Data Definition when you click "Finish".
10
How to use code completion to insert the signature of a CDS View with
parameters, CDS Table Functions or built-in SQL functions?
You can insert the signature of a CDS View with parameters, a CDS Table Function and/or
built-in SQL functions which you use in your Data Definition by using the content assist
(CTRL+SPACE), selecting the object you wish to insert and inserting it with the keyboard
shortcut SHIFT+ENTER.
After insertion you can use the TAB-key to navigate to the placeholders which need to be
modified.
11
Alternatively, you can also hide the comments and/or annotations by choosing "Hide
Comments" or "Hide Annotations" in the vertical ruler of the editor.
12
13
Where can I can change the text size and color in my CDS editors?
You can change the settings of your CDS editors in "Window" > "Preferences..." > "ABAP
Development" > "Editors" > "Source Code Editors". Select "Colors and Fonts" to navigate to
the general color and font preferences.
Edit the "Text Font" in the "Basic" folder to change the text size and color in your CDS
editor. Edit the settings in the "CDS" folder to change the highlighting of your CDS
keywords, annotations, identifiers, etc.
You can also modify the settings in "Window" > "Preferences..." > "General" >
"Appearance" > "Editors" > "Text Editors" > "Accessibility" to change the appearance of
your IDE.
The Best-Run Businesses Run SAP
14
The Outline View also provides a good overview of the structure of your Data Definition.
Annotated elements are decorated with the @ symbol. If the view is not visible in your IDE,
open the Outline View via the menu entry "Window" > "Show View" > "Outline".
15
Finally, you can hide the comments and annotations in your Data Definition to focus on the
implementation details of your elements. Enable "Hide Comments" or "Hide Annotations"
via the context menu in the vertical ruler of the editor.
16
Where can I see details (type, elements, labels and descriptions) of the data
sources and elements used?
Use Element Info or navigate to the data sources and element types used in your Data
Definition to see more details. Position the cursor on the name of the data source or
element in your Data Definition and press F2 (Element Info) or F3 (Navigate To). Within the
Element Info you can access further details by clicking on a hyperlink.
You can open the Element Info in the Element Info View by clicking on the @ button "Show
in ABAP Element Info View". The Element Info View will be automatically updated
whenever you click on an identifier.
17
How can I easily see the database tables and views which my Data Definition uses?
Under the "from" node of the "select" statement in the Outline View (menu "Window" >
"Show View" > "Outline") you will see the data sources which are listed in the FROM clause
of your Data Definition.
This, however, does not include the data sources which are used in path expressions when
you access elements of other entities via associations.
The SQL CREATE statement which is generated for your entity displays the SQL names of all
the data sources used in your Data Definition (including the data sources used in path
expressions) in the FROM clause. You can display the statement via the context menu of
the Data Definition source > "Show SQL CREATE Statement".
You can see the transitive dependencies of your Data Definition in the Dependency
Analyzer (context menu > "Open With" > "Dependency Analyzer"). The SQL Dependency
Tree and SQL Dependency Graph show the relationship between all the data sources used
both directly and indirectly in your Data Definition. This is relevant, i.a. for the performance
of your entity. Other performance relevant metrics of your Data Definition can be found in
the Complexity Metrics tab of the Dependency Analyzer.
18
19
Where can I see the SQL CREATE statement which is generated for my Data
Definition?
You can display the SQL CREATE statement generated for your Data Definition via the
context menu entry "Show SQL CREATE Statement" of the Data Definition source.
20
You can email a link to your object directly to your colleagues ("Email link") or copy the link
to the clipboard.
21
If you send an "ADT Link", your colleagues can easily open the CDS object in ADT via the
menu entry "Navigate" > "Open ADT Link...".
22
The results are displayed in the Search View. You can filter the results using the Filter Dialog
of the Search View.
23
I only have the SQL View name. How can I find the corresponding Data Definition?
If you know the SQL View name of your CDS View, you can navigate to the Data Definition
by opening the SQL View in ADT (CTRL+SHIFT+A) and double-clicking on the "DDL Source"
name in the virtually integrated SE11.
Alternatively, you can select the SQL View in the Project Explorer and navigate to the Data
Definition via the context menu entry "Open with" > "Definition".
24
25
Error handling
My Data Definition failed to activate. Where is the Activation Log?
You can open the Activation Log of your Data Definition via the menu "Navigate" > "Open
Activation Log". Alternatively, you can open the log directly in the editor via the context
menu "Open with" > "Activation Log".
You can open another log within the Activation Log by pressing the CTRL key and clicking on
the hyperlink.
26
27
Where can I see the details about the problems reported in the Problems View?
You can view the descriptions of problems in the Problems View by selecting a problem and
choosing the context menu entry "Problem Description". The description will be displayed
in the ABAP Problem Description View. Prerequisite is, that a description has been
maintained for the problem.
28
Are there Quick Fixes for the problems reported in the Problems View?
Typically, if a quick fix exists for a problem reported in the Problems View, then the error
marker is decorated with a light bulb. In such cases you can trigger the quick fix by selecting
the problem and choosing "Quick Fix" in the context menu.
Alternatively, you can press CTRL+1 on the highlighted problem in the editor.
29
30
How can I see which annotations are active for my Data Definition, including the
propagated annotations?
You can use the Active Annotations View (context menu in Data Definition source > "Open
With" > "Active Annotations") to investigate which annotations have been
propagated/inherited from the underlying data sources and which annotations are
currently active for your Data Definition.
31
32
How can I see the previous versions of my CDS entity or compare them with the
active version in another system?
Use the "Compare With" functionality in ADT to compare different versions of your CDS
object ("Revision History...") or local versions of your object ("Local History") which have
been automatically stored on your client while you edit the source. Open your CDS object
and select "Compare With" in the context menu.
33
34
35
36
Help
Where can I find detailed information about the CDS tooling in ADT?
You can find detailed information about the CDS tooling in ADT via the menu "Help" > "Help
Contents" > "SAP - ABAP CDS Development User Guide".
Where available, you can also access context-specific information about the tool by clicking
on the help icon.
37
38
Is there a list of all the keyboard shortcuts I can use in my CDS editors?
You can find a list of all the keyboard shortcuts via the menu "Help" > "Key Assist...". Begin
typing to search for a specific keyboard functionality.
39
Disclaimer
This document outlines our general product direction and should not be relied on in making
a purchase decision. This document is not subject to your license agreement or any other
agreement with SAP. SAP has no obligation to pursue any course of business outlined in this
document or to develop or release any functionality mentioned in this document. This
document and SAP's strategy and possible future developments are subject to change and
may be changed by SAP at any time for any reason without notice. This document is
provided without a warranty of any kind, either express or implied, including but not
limited to, the implied warranties of merchantability, fitness for a particular purpose, or
non-infringement. SAP assumes no responsibility for errors or omissions in this document,
except if such damages were caused by SAP intentionally or grossly negligent.
40