C_EngSnpshtInitChgPrep

DDL: C_ENGSNPSHTINITCHGPREP SQL: CENGSNPCHGPREP Type: view CONSUMPTION Package: VDM_MPE_PLAN_ENG_SNPSHT

Engineering snapshot initial change preparation

C_EngSnpshtInitChgPrep is a Consumption CDS View that provides data about "Engineering snapshot initial change preparation" in SAP S/4HANA. It reads from 2 data sources (I_EngSnpshtEBOM, I_EngSnpshtEBOMLtstRevision) and exposes 35 fields with key fields EngSnapshotUUID, EngSnapshotRefUUID. It has 6 associations to related views. Part of development package VDM_MPE_PLAN_ENG_SNPSHT.

Data Sources (2)

SourceAliasJoin Type
I_EngSnpshtEBOM EngSnpshtEBOM from
I_EngSnpshtEBOMLtstRevision LatestSnpshtRevEBOMHdr inner

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_EngSnpshtRefDoc _EngSnpshtVislDoc $projection.EngSnapshotUUID = _EngSnpshtVislDoc.EngSnapshotUUID and _EngSnpshtVislDoc.EngSnpshtRefType = 'VDOC'
[0..*] I_MaterialText _MaterialText $projection.EngSnpshtHdrEBOMMaterial = _MaterialText.Material
[0..1] I_Plant _Plant $projection.EngSnpshtHdrEBOMPlant = _Plant.Plant
[0..*] I_BillOfMaterialUsageText _BOMVariantUsageText $projection.EngSnpshtHdrEBOMVariantUsage = _BOMVariantUsageText.BillOfMaterialVariantUsage
[0..*] C_EngSnpshtInitChgPrepEBOM _EngSnpshtEBOM $projection.EngSnapshotUUID = _EngSnpshtEBOM.EngSnapshotUUID
[0..*] I_DocumentInfoRecordDocTypeT _DocTypeText $projection.documenttype = _DocTypeText.DocumentInfoRecordDocType

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CENGSNPCHGPREP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #CONSUMPTION view
EndUserText.label Engineering snapshot initial change preparation view

Fields (35)

KeyFieldSource TableSource FieldDescription
KEY EngSnapshotUUID I_EngSnpshtEBOM EngSnapshotUUID
KEY EngSnapshotRefUUID I_EngSnpshtEBOM EngSnapshotRefUUID
EngSnapshotID I_EngSnpshtEBOM EngSnapshotID
EngSnpshtRevisionNumber I_EngSnpshtEBOM EngSnpshtRevisionNumber
EngSnpshtHdrEBOMMaterial I_EngSnpshtEBOM EngSnpshtHdrEBOMMaterial Vehicle Model
EngSnpshtHdrEBOMPlant I_EngSnpshtEBOM EngSnpshtHdrEBOMPlant Valuation Area
EngSnpshtHdrEBOMVariant I_EngSnpshtEBOM EngSnpshtHdrEBOMVariant AlternativeBOM
EngSnpshtHdrEBOMVariantUsage I_EngSnpshtEBOM EngSnpshtHdrEBOMVariantUsage Usage
EngSnpshtAuxiliaryPrepSts I_EngSnpshtEBOM EngSnpshtAuxiliaryPrepSts
EngSnpshtProposedEffectiveDate I_EngSnpshtEBOM EngSnpshtProposedEffectiveDate
Material I_EngSnpshtEBOM Material Vehicle Model
Plant I_EngSnpshtEBOM Plant Valuation Area
BillOfMaterialVariant I_EngSnpshtEBOM BillOfMaterialVariant AlternativeBOM
BillOfMaterialVariantUsage I_EngSnpshtEBOM BillOfMaterialVariantUsage Usage
BillOfMaterial I_EngSnpshtEBOM BillOfMaterial BOM
BillOfMaterialVersion I_EngSnpshtEBOM BillOfMaterialVersion BOM Version
BOMVersionStatus I_EngSnpshtEBOM BOMVersionStatus BOM Version Status
BillOfMaterialStatus I_EngSnpshtEBOM BillOfMaterialStatus BOM Status
CreatedByUser I_EngSnpshtEBOM CreatedByUser User Name
CreationDateTime I_EngSnpshtEBOM CreationDateTime Timestamp
LastChangedByUser I_EngSnpshtEBOM LastChangedByUser User Name
LastChangeDateTime I_EngSnpshtEBOM LastChangeDateTime Timestamp
IsBOMHeader I_EngSnpshtEBOM IsBOMHeader
DocumentInfoRecord _EngSnpshtVislDoc DocumentInfoRecord Document
DocumentType _EngSnpshtVislDoc DocumentType Order Type
DocumentPart _EngSnpshtVislDoc DocumentPart Document Part
DocumentVersion _EngSnpshtVislDoc DocumentVersion Docu. Version
DocumentDescription _EngSnpshtVislDoc DocumentDescription Doc. Name
PhysicalDocument
EngSnpshtAddVislDocToChgRecd
_MaterialText _MaterialText
_Plant _Plant
_BOMVariantUsageText _BOMVariantUsageText
_EngSnpshtEBOM _EngSnpshtEBOM
_DocTypeText _DocTypeText

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_EngSnpshtInitChgPrep.
-- 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: CENGSNPCHGPREP

CREATE VIEW C_EngSnpshtInitChgPrep AS
SELECT
  EngSnpshtEBOM.EngSnapshotUUID AS EngSnapshotUUID,
  EngSnpshtEBOM.EngSnapshotRefUUID AS EngSnapshotRefUUID,
  EngSnpshtEBOM.EngSnapshotID AS EngSnapshotID,
  EngSnpshtEBOM.EngSnpshtRevisionNumber AS EngSnpshtRevisionNumber,
  EngSnpshtEBOM.EngSnpshtHdrEBOMMaterial AS EngSnpshtHdrEBOMMaterial,
  EngSnpshtEBOM.EngSnpshtHdrEBOMPlant AS EngSnpshtHdrEBOMPlant,
  EngSnpshtEBOM.EngSnpshtHdrEBOMVariant AS EngSnpshtHdrEBOMVariant,
  EngSnpshtEBOM.EngSnpshtHdrEBOMVariantUsage AS EngSnpshtHdrEBOMVariantUsage,
  EngSnpshtEBOM.EngSnpshtAuxiliaryPrepSts AS EngSnpshtAuxiliaryPrepSts,
  EngSnpshtEBOM.EngSnpshtProposedEffectiveDate AS EngSnpshtProposedEffectiveDate,
  EngSnpshtEBOM.Material AS Material,
  EngSnpshtEBOM.Plant AS Plant,
  EngSnpshtEBOM.BillOfMaterialVariant AS BillOfMaterialVariant,
  EngSnpshtEBOM.BillOfMaterialVariantUsage AS BillOfMaterialVariantUsage,
  EngSnpshtEBOM.BillOfMaterial AS BillOfMaterial,
  EngSnpshtEBOM.BillOfMaterialVersion AS BillOfMaterialVersion,
  EngSnpshtEBOM.BOMVersionStatus AS BOMVersionStatus,
  EngSnpshtEBOM.BillOfMaterialStatus AS BillOfMaterialStatus,
  EngSnpshtEBOM.CreatedByUser AS CreatedByUser,
  EngSnpshtEBOM.CreationDateTime AS CreationDateTime,
  EngSnpshtEBOM.LastChangedByUser AS LastChangedByUser,
  EngSnpshtEBOM.LastChangeDateTime AS LastChangeDateTime,
  EngSnpshtEBOM.IsBOMHeader AS IsBOMHeader,
  _EngSnpshtVislDoc.DocumentInfoRecord AS DocumentInfoRecord,
  _EngSnpshtVislDoc.DocumentType AS DocumentType,
  _EngSnpshtVislDoc.DocumentPart AS DocumentPart,
  _EngSnpshtVislDoc.DocumentVersion AS DocumentVersion,
  _EngSnpshtVislDoc.DocumentDescription AS DocumentDescription,
  cast ('' as sdok_phid) AS PhysicalDocument,
  cast ('' as boole_d) AS EngSnpshtAddVislDocToChgRecd
FROM I_EngSnpshtEBOM AS EngSnpshtEBOM
INNER JOIN I_EngSnpshtEBOMLtstRevision AS LatestSnpshtRevEBOMHdr ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_EngSnpshtRefDoc AS _EngSnpshtVislDoc ON EngSnapshotUUID = _EngSnpshtVislDoc.EngSnapshotUUID AND _EngSnpshtVislDoc.EngSnpshtRefType = 'VDOC'  -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON EngSnpshtHdrEBOMMaterial = _MaterialText.Material  -- association [0..*]
LEFT OUTER JOIN I_Plant AS _Plant ON EngSnpshtHdrEBOMPlant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_BillOfMaterialUsageText AS _BOMVariantUsageText ON EngSnpshtHdrEBOMVariantUsage = _BOMVariantUsageText.BillOfMaterialVariantUsage  -- association [0..*]
LEFT OUTER JOIN C_EngSnpshtInitChgPrepEBOM AS _EngSnpshtEBOM ON EngSnapshotUUID = _EngSnpshtEBOM.EngSnapshotUUID  -- association [0..*]
LEFT OUTER JOIN I_DocumentInfoRecordDocTypeT AS _DocTypeText ON documenttype = _DocTypeText.DocumentInfoRecordDocType  -- association [0..*]
;