Cds_Definition_Query

DDL: CDS_DEFINITION_QUERY SQL: CDSDEFQRY Type: view

CDS View Definition Query

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

Data Sources (1)

SourceAliasJoin Type
Cds_Definition Cds_Definition from

Associations (1)

CardinalityTargetAliasCondition
[0..*] Cds_Field_Annotation_Query _CDSFieldAnnotation $projection.DDLSourceName = _CDSFieldAnnotation.DDLSourceName and $projection.FieldName = _CDSFieldAnnotation.FieldName

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName CDSDEFQRY view
EndUserText.label CDS View Definition Query view
ObjectModel.usageType.dataClass #META view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #M view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY DDLSourceName Cds_Definition DDLSourceName DDL Source Name
KEY FieldName Cds_Definition FieldName UI Group FieldName
FieldNameText Cds_Definition FieldNameText
DataElement Cds_Definition DataElement Data Element
DataType Cds_Definition DataType Field Type
FieldPosition Cds_Definition FieldPosition
Length Cds_Definition Length Text Length
DataElementText
_CDSFieldAnnotation _CDSFieldAnnotation

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_Query.
-- 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: CDSDEFQRY

CREATE VIEW Cds_Definition_Query AS
SELECT
  Cds_Definition.DDLSourceName AS DDLSourceName,
  Cds_Definition.FieldName AS FieldName,
  Cds_Definition.FieldNameText AS FieldNameText,
  Cds_Definition.DataElement AS DataElement,
  Cds_Definition.DataType AS DataType,
  Cds_Definition.FieldPosition AS FieldPosition,
  Cds_Definition.Length AS Length,
  Cds_Definition._Text[Language = $session.system_language].DataElementText AS DataElementText
FROM Cds_Definition
LEFT OUTER JOIN Cds_Field_Annotation_Query AS _CDSFieldAnnotation ON DDLSourceName = _CDSFieldAnnotation.DDLSourceName AND FieldName = _CDSFieldAnnotation.FieldName  -- association [0..*]
;