VB_CDSVIEW_MAPPING

DDL: VB_CDSVIEW_MAPPING SQL: CDSVBMAPPING Type: view

CDS view for View Browser for mapping

VB_CDSVIEW_MAPPING is a CDS View that provides data about "CDS view for View Browser for mapping" in SAP S/4HANA. It reads from 1 data source (Vb_Core_Cdsviews) and exposes 35 fields with key field DDLSourceName. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
Vb_Core_Cdsviews Core_CDSViews from

Associations (2)

CardinalityTargetAliasCondition
[0..*] VB_CDSVIEW_BROWSERTAG _CdsViewTag $projection.DDLSourceName = _CdsViewTag.ddlsourcename and _CdsViewTag.username = $session.user
[0..1] Vb_Cdsviews_Appl_Text_Query _AppCompText $projection.DDLSourceName = _AppCompText.DDLSourceName

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName CDSVBMAPPING view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.dataClass #META view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
EndUserText.label CDS view for View Browser for mapping view

Fields (35)

KeyFieldSource TableSource FieldDescription
KEY DDLSourceName DDLSourceName DDL Source Name
DDLSourceNameText DDLSourceNameText
DefaultText DDLSourceNameText
SQLViewName SQLViewName View Name
CDSViewPackage Vb_Core_Cdsviews CDSViewPackage
CDSReleaseStatus CDSReleaseStatus
CDSPrivate CDSPrivate
CDSType CDSType
CDSName Vb_Core_Cdsviews CDSName
CDSViewCategory Vb_Core_Cdsviews CDSViewCategory
CdsViewType Vb_Core_Cdsviews CdsViewType
ApplicationComponent Vb_Core_Cdsviews ApplicationComponent
ApplicationComponentName Vb_Core_Cdsviews ApplicationComponentName
CDSOriginKey Vb_Core_Cdsviews CDSOriginKey
DeprecatedStatus Vb_Core_Cdsviews DeprecatedStatus
AppID
WDAppID
CDSOrigin
NumberOfAddedTags
PrimaryTag
SupportedCapability SupportedCapability
NumberOfCapabilities NumberOfCapabilities
ModelingPattern ModelingPattern
_CdsViewUserTag Vb_Core_Cdsviews _CdsViewUserTag
_CdsViewTag _CdsViewTag
_CdsDefinition Vb_Core_Cdsviews _CdsDefinition
_CdsViewCrossreference Vb_Core_Cdsviews _CdsViewCrossreference
_CdsViewAnnotation Vb_Core_Cdsviews _CdsViewAnnotation
CDSViewSourceSystem Vb_Core_Cdsviews CDSViewSourceSystem
_CdsSupportedCapabilities Vb_Core_Cdsviews _CdsSupportedCapabilities
_AppCompText _AppCompText
IsDraft
IsPublished
DraftDDLSourceName
SourceType Vb_Core_Cdsviews SourceType Source Type

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_CDSVIEW_MAPPING.
-- 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: CDSVBMAPPING

CREATE VIEW VB_CDSVIEW_MAPPING AS
SELECT
  DDLSourceName,
  DDLSourceNameText,
  DDLSourceNameText AS DefaultText,
  SQLViewName,
  Core_CDSViews.CDSViewPackage AS CDSViewPackage,
  CDSReleaseStatus,
  CDSPrivate,
  CDSType,
  Core_CDSViews.CDSName AS CDSName,
  Core_CDSViews.CDSViewCategory AS CDSViewCategory,
  Core_CDSViews.CdsViewType AS CdsViewType,
  Core_CDSViews.ApplicationComponent AS ApplicationComponent,
  Core_CDSViews.ApplicationComponentName AS ApplicationComponentName,
  Core_CDSViews.CDSOriginKey AS CDSOriginKey,
  Core_CDSViews.DeprecatedStatus AS DeprecatedStatus,
  _AnalyticalQueryPublished[app_type = 0].app_id AS AppID,
  _AnalyticalQueryPublished[app_type = 1].app_id AS WDAppID,
  Core_CDSViews._EditorText[Language = $session.system_language].ddtext AS CDSOrigin,
  Core_CDSViews._CdsTagCount.NumberOfAddedTags AS NumberOfAddedTags,
  Core_CDSViews._CdsTagCount.PrimaryTag AS PrimaryTag,
  SupportedCapability,
  NumberOfCapabilities,
  ModelingPattern,
  Core_CDSViews._CdsViewUserTag AS _CdsViewUserTag,
  Core_CDSViews._CdsDefinition AS _CdsDefinition,
  Core_CDSViews._CdsViewCrossreference AS _CdsViewCrossreference,
  Core_CDSViews._CdsViewAnnotation AS _CdsViewAnnotation,
  Core_CDSViews.CDSViewSourceSystem AS CDSViewSourceSystem,
  Core_CDSViews._CdsSupportedCapabilities AS _CdsSupportedCapabilities,
  '' AS IsDraft,
  '' AS IsPublished,
  '' AS DraftDDLSourceName,
  Core_CDSViews.SourceType AS SourceType
FROM Vb_Core_Cdsviews AS Core_CDSViews
LEFT OUTER JOIN VB_CDSVIEW_BROWSERTAG AS _CdsViewTag ON DDLSourceName = _CdsViewTag.ddlsourcename AND _CdsViewTag.username = $session.user  -- association [0..*]
LEFT OUTER JOIN Vb_Cdsviews_Appl_Text_Query AS _AppCompText ON DDLSourceName = _AppCompText.DDLSourceName  -- association [0..1]
;