VB_CDSVIEWS_DEFQUERY_EXTN

DDL: VB_CDSVIEWS_DEFQUERY_EXTN SQL: VBCDSDEFQRYEXTNS Type: view Package: S_DICT_VB

VB CDS Views Definition Extn views

VB_CDSVIEWS_DEFQUERY_EXTN is a CDS View that provides data about "VB CDS Views Definition Extn views" in SAP S/4HANA. It reads from 4 data sources (Cds_Views, Cds_Views_Extn, Vb_Core_Cds_Definition, Vb_Core_Cds_Definition) and exposes 23 fields with key fields DDLSourceName, FieldName. It has 1 association to related views. Part of development package S_DICT_VB.

Data Sources (4)

SourceAliasJoin Type
Cds_Views Cds_Views from
Cds_Views_Extn Cds_Views_Extn union
Vb_Core_Cds_Definition CdsDefinition inner
Vb_Core_Cds_Definition ExtendedDefinition inner

Associations (1)

CardinalityTargetAliasCondition
[0..*] Vb_Core_Cds_Field_Annotation _CdsFieldAnnotation $projection.CDSName = _CdsFieldAnnotation.CDSName and $projection.FieldName = _CdsFieldAnnotation.FieldName

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName VBCDSDEFQRYEXTNS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true 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
EndUserText.label VB CDS Views Definition Extn views view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY DDLSourceName Cds_Views DDLSourceName DDL Source Name
KEY FieldName Vb_Core_Cds_Definition FieldName UI Group FieldName
FieldNameText Vb_Core_Cds_Definition fieldname_raw Property Name
CDSName Cds_Views CDSName View Name
DataElement Vb_Core_Cds_Definition DataElement Data Element
DataType Vb_Core_Cds_Definition DataType Field Type
FieldPosition Vb_Core_Cds_Definition FieldPosition
ElementType Vb_Core_Cds_Definition ElementType
Length Vb_Core_Cds_Definition Length Text Length
DataElementText
DataElementText_Medium
CDSNameasDDLSourceName
FieldName Vb_Core_Cds_Definition FieldName UI Group FieldName
FieldNameText fieldname_raw Property Name
CDSName Vb_Core_Cds_Definition SQLViewName View Name
DataElement DataElement Data Element
DataType Vb_Core_Cds_Definition DataType Field Type
FieldPosition FieldPosition
ElementType ElementType
Length Length Text Length
DataElementText
DataElementText_Medium
_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 VB_CDSVIEWS_DEFQUERY_EXTN.
-- 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: VBCDSDEFQRYEXTNS

CREATE VIEW VB_CDSVIEWS_DEFQUERY_EXTN AS
SELECT
  Cds_Views.DDLSourceName AS DDLSourceName,
  CdsDefinition.FieldName AS FieldName,
  CdsDefinition.fieldname_raw AS FieldNameText,
  Cds_Views.CDSName AS CDSName,
  CdsDefinition.DataElement AS DataElement,
  CdsDefinition.DataType AS DataType,
  CdsDefinition.FieldPosition AS FieldPosition,
  CdsDefinition.ElementType AS ElementType,
  CdsDefinition.Length AS Length,
  CdsDefinition._Text[Language = $session.system_language].DataElementText AS DataElementText,
  CdsDefinition._Text[Language = $session.system_language].DataElementText_Medium AS DataElementText_Medium
FROM Cds_Views
INNER JOIN Vb_Core_Cds_Definition AS CdsDefinition ON /* join condition not captured in parsed metadata */
INNER JOIN Vb_Core_Cds_Definition AS ExtendedDefinition ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN Vb_Core_Cds_Field_Annotation AS _CdsFieldAnnotation ON CDSName = _CdsFieldAnnotation.CDSName AND FieldName = _CdsFieldAnnotation.FieldName  -- association [0..*]
-- UNION with additional select branch(es): Cds_Views_Extn
;