C_EngSnpshtInitChgPrepEBOM

DDL: C_ENGSNPSHTINITCHGPREPEBOM SQL: CENGSNPEBOM Type: view CONSUMPTION

Engineering Snapshot EBOM

C_EngSnpshtInitChgPrepEBOM is a Consumption CDS View that provides data about "Engineering Snapshot EBOM" in SAP S/4HANA. It reads from 1 data source (I_EngSnpshtEBOM) and exposes 22 fields with key fields EngSnapshotUUID, EngSnapshotRefUUID. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_EngSnpshtEBOM RefEBOM from

Associations (6)

CardinalityTargetAliasCondition
[0..*] I_MaterialText _MaterialText $projection.Material = _MaterialText.Material
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..*] I_BillOfMaterialUsageText _BOMVariantUsageText $projection.BillOfMaterialVariantUsage = _BOMVariantUsageText.BillOfMaterialVariantUsage
[0..1] I_VersionStatus _BOMVersionStsTxt $projection.BOMVersionStatus = _BOMVersionStsTxt.BOMVersionStatus and _BOMVersionStsTxt.Language = $session.system_language
[0..*] I_BillOfMaterialStatusText _BOMStatusTxt $projection.BillOfMaterialStatus = _BOMStatusTxt.BillOfMaterialStatus
[0..1] E_EngSnpshtRefEngBOM _EngBOMExtension $projection.EngSnapshotRefUUID = _EngBOMExtension.EngSnapshotRefUUID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CENGSNPEBOM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
EndUserText.label Engineering Snapshot EBOM view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY EngSnapshotUUID I_EngSnpshtEBOM EngSnapshotUUID
KEY EngSnapshotRefUUID I_EngSnpshtEBOM EngSnapshotRefUUID
EngSnapshotID I_EngSnpshtEBOM EngSnapshotID
EngSnpshtRevisionNumber I_EngSnpshtEBOM EngSnpshtRevisionNumber
Material I_EngSnpshtEBOM Material Vehicle Model
Plant I_EngSnpshtEBOM Plant Valuation Area
BillOfMaterialVariantUsage I_EngSnpshtEBOM BillOfMaterialVariantUsage Usage
BillOfMaterialVariant I_EngSnpshtEBOM BillOfMaterialVariant AlternativeBOM
BillOfMaterialVersion I_EngSnpshtEBOM BillOfMaterialVersion BOM Version
BOMVersionStatus I_EngSnpshtEBOM BOMVersionStatus BOM Version Status
BillOfMaterialStatus I_EngSnpshtEBOM BillOfMaterialStatus BOM Status
IsBOMHeader I_EngSnpshtEBOM IsBOMHeader
CreatedByUser
CreationDateTime I_EngSnpshtEBOM CreationDateTime Timestamp
LastChangedByUser
LastChangeDateTime I_EngSnpshtEBOM LastChangeDateTime Timestamp
BillOfMaterial I_EngSnpshtEBOM BillOfMaterial BOM
_MaterialText _MaterialText
_Plant _Plant
_BOMVersionStsTxt _BOMVersionStsTxt
_BOMVariantUsageText _BOMVariantUsageText
_BOMStatusTxt _BOMStatusTxt

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 C_EngSnpshtInitChgPrepEBOM.
-- 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: CENGSNPEBOM

CREATE VIEW C_EngSnpshtInitChgPrepEBOM AS
SELECT
  RefEBOM.EngSnapshotUUID AS EngSnapshotUUID,
  RefEBOM.EngSnapshotRefUUID AS EngSnapshotRefUUID,
  RefEBOM.EngSnapshotID AS EngSnapshotID,
  RefEBOM.EngSnpshtRevisionNumber AS EngSnpshtRevisionNumber,
  RefEBOM.Material AS Material,
  RefEBOM.Plant AS Plant,
  RefEBOM.BillOfMaterialVariantUsage AS BillOfMaterialVariantUsage,
  RefEBOM.BillOfMaterialVariant AS BillOfMaterialVariant,
  RefEBOM.BillOfMaterialVersion AS BillOfMaterialVersion,
  RefEBOM.BOMVersionStatus AS BOMVersionStatus,
  RefEBOM.BillOfMaterialStatus AS BillOfMaterialStatus,
  RefEBOM.IsBOMHeader AS IsBOMHeader,
  cast( RefEBOM.CreatedByUser as mpe_create_user ) AS CreatedByUser,
  RefEBOM.CreationDateTime AS CreationDateTime,
  cast( RefEBOM.LastChangedByUser as mpe_lchange_user ) AS LastChangedByUser,
  RefEBOM.LastChangeDateTime AS LastChangeDateTime,
  RefEBOM.BillOfMaterial AS BillOfMaterial
FROM I_EngSnpshtEBOM AS RefEBOM
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Material = _MaterialText.Material  -- association [0..*]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_BillOfMaterialUsageText AS _BOMVariantUsageText ON BillOfMaterialVariantUsage = _BOMVariantUsageText.BillOfMaterialVariantUsage  -- association [0..*]
LEFT OUTER JOIN I_VersionStatus AS _BOMVersionStsTxt ON BOMVersionStatus = _BOMVersionStsTxt.BOMVersionStatus AND _BOMVersionStsTxt.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_BillOfMaterialStatusText AS _BOMStatusTxt ON BillOfMaterialStatus = _BOMStatusTxt.BillOfMaterialStatus  -- association [0..*]
LEFT OUTER JOIN E_EngSnpshtRefEngBOM AS _EngBOMExtension ON EngSnapshotRefUUID = _EngBOMExtension.EngSnapshotRefUUID  -- association [0..1]
;