Cds_Definition

DDL: CDS_DEFINITION SQL: CDSDEFINITION Type: view

CDS Definition

Cds_Definition is a CDS View that provides data about "CDS Definition" in SAP S/4HANA. It reads from 1 data source (Cds_View) and exposes 10 fields with key fields DDLSourceName, CDSName, FieldName. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
Cds_View Cds_View from

Associations (2)

CardinalityTargetAliasCondition
[0..*] Data_Element_Text _Text $projection.DataElement = _Text.DataElement
[1..*] Cds_Field_Annotation _FieldAnnotation $projection.CDSName = _FieldAnnotation.CDSName and $projection.FieldName = _FieldAnnotation.FieldName

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName CDSDEFINITION view
EndUserText.label CDS Definition view
ObjectModel.usageType.serviceQuality #P view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY DDLSourceName Cds_View DDLSourceName DDL Source Name
KEY CDSName Cds_View CDSName
KEY FieldName
FieldNameText
DataElement
DataType
FieldPosition
Length
_Text _Text
_FieldAnnotation _FieldAnnotation

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view Cds_Definition.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: CDSDEFINITION

CREATE VIEW Cds_Definition AS
SELECT
  Cds_View.DDLSourceName AS DDLSourceName,
  Cds_View.CDSName AS CDSName,
  Cds_View._CdsDefinition.FieldName AS FieldName,
  Cds_View._CdsDefinition.fieldname_raw AS FieldNameText,
  Cds_View._CdsDefinition.DataElement AS DataElement,
  Cds_View._CdsDefinition.DataType AS DataType,
  Cds_View._CdsDefinition.FieldPosition AS FieldPosition,
  Cds_View._CdsDefinition.Length AS Length
FROM Cds_View
LEFT OUTER JOIN Data_Element_Text AS _Text ON DataElement = _Text.DataElement  -- association [0..*]
LEFT OUTER JOIN Cds_Field_Annotation AS _FieldAnnotation ON CDSName = _FieldAnnotation.CDSName AND FieldName = _FieldAnnotation.FieldName  -- association [1..*]
;