I_PlanningScopeExplodedBOM

DDL: I_PLANNINGSCOPEEXPLODEDBOM SQL: IPLNSCPEXPLBOM Type: view BASIC Package: VEP_HFE_MODEL

VMP Planning scope expanded materials

I_PlanningScopeExplodedBOM is a Basic CDS View that provides data about "VMP Planning scope expanded materials" in SAP S/4HANA. It reads from 1 data source (P_PlanningScopeExplodedBOM) and exposes 15 fields with key fields DocumentId, PlanningScopeAlternative, SourceMaterial, PlanningScopeItemCount. It has 2 associations to related views. Part of development package VEP_HFE_MODEL.

Data Sources (1)

SourceAliasJoin Type
P_PlanningScopeExplodedBOM PlanningScopeExplodedBOM from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_MaterialBOM _BOMHeader $projection.Material = _BOMHeader.Material and $projection.SourceBOMAlternative = _BOMHeader.BillOfMaterialVariant and $projection.SourceBOMUsage = _BOMHeader.BillOfMaterialVariantUsage and $projection.EBOMPlant = _BOMHeader.Plant and _BOMHeader.HeaderValidityStartDate <= $projection.EBOMValidity and _BOMHeader.HeaderValidityEndDate > $projection.EBOMValidity --
[1..1] I_BillOfMaterialUsage _BillOfMaterialVariantUsage $projection.SourceBOMUsage = _BillOfMaterialVariantUsage.BillOfMaterialVariantUsage and _BillOfMaterialVariantUsage.Language = $session.system_language

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPLNSCPEXPLBOM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label VMP Planning scope expanded materials view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #BASIC view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY DocumentId P_PlanningScopeExplodedBOM DocumentId Routing slip doc. ID
KEY PlanningScopeAlternative P_PlanningScopeExplodedBOM PlanningScopeAlternative Plan Scope Alternate
KEY SourceMaterial P_PlanningScopeExplodedBOM SourceMaterial Material
KEY PlanningScopeItemCount P_PlanningScopeExplodedBOM PlanningScopeItemCount INT4
Material P_PlanningScopeExplodedBOM Material Vehicle Model
ExplosionType P_PlanningScopeExplodedBOM ExplosionType Explosion type
SourceBOMType P_PlanningScopeExplodedBOM SourceBOMType EBom Type
EBOMPlant P_PlanningScopeExplodedBOM EBOMPlant Source plant
SourceBOMUsage P_PlanningScopeExplodedBOM SourceBOMUsage Usage
SourceBOMAlternative P_PlanningScopeExplodedBOM SourceBOMAlternative Source BOM alt
EBOMValidity P_PlanningScopeExplodedBOM EBOMValidity
AlignmentStatusValue
AlignmentStatusCriticality
_BOMHeader _BOMHeader
_BillOfMaterialVariantUsage _BillOfMaterialVariantUsage

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 I_PlanningScopeExplodedBOM.
-- 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: IPLNSCPEXPLBOM

CREATE VIEW I_PlanningScopeExplodedBOM AS
SELECT
  PlanningScopeExplodedBOM.DocumentId AS DocumentId,
  PlanningScopeExplodedBOM.PlanningScopeAlternative AS PlanningScopeAlternative,
  PlanningScopeExplodedBOM.SourceMaterial AS SourceMaterial,
  PlanningScopeExplodedBOM.PlanningScopeItemCount AS PlanningScopeItemCount,
  PlanningScopeExplodedBOM.Material AS Material,
  PlanningScopeExplodedBOM.ExplosionType AS ExplosionType,
  PlanningScopeExplodedBOM.SourceBOMType AS SourceBOMType,
  PlanningScopeExplodedBOM.EBOMPlant AS EBOMPlant,
  PlanningScopeExplodedBOM.SourceBOMUsage AS SourceBOMUsage,
  PlanningScopeExplodedBOM.SourceBOMAlternative AS SourceBOMAlternative,
  PlanningScopeExplodedBOM.EBOMValidity AS EBOMValidity,
  cast(' ' as hfe_alignment_status ) AS AlignmentStatusValue,
  cast('0' as int1) AS AlignmentStatusCriticality
FROM P_PlanningScopeExplodedBOM AS PlanningScopeExplodedBOM
LEFT OUTER JOIN I_MaterialBOM AS _BOMHeader ON Material = _BOMHeader.Material AND SourceBOMAlternative = _BOMHeader.BillOfMaterialVariant AND SourceBOMUsage = _BOMHeader.BillOfMaterialVariantUsage AND EBOMPlant = _BOMHeader.Plant AND _BOMHeader.HeaderValidityStartDate <= EBOMValidity AND _BOMHeader.HeaderValidityEndDate > EBOMValidity  -- association [1..1]
LEFT OUTER JOIN I_BillOfMaterialUsage AS _BillOfMaterialVariantUsage ON SourceBOMUsage = _BillOfMaterialVariantUsage.BillOfMaterialVariantUsage AND _BillOfMaterialVariantUsage.Language = $session.system_language  -- association [1..1]
;