P_PlanningScopeExplodedBOM

DDL: P_PLANNINGSCOPEEXPLODEDBOM SQL: PPLNSCPEXPLBOM Type: view BASIC Package: VEP_HFE_MODEL

VMP Planning scope expanded materials

P_PlanningScopeExplodedBOM is a Basic CDS View that provides data about "VMP Planning scope expanded materials" in SAP S/4HANA. It reads from 3 data sources (vmp_exploded_mat, I_PlanningScopeHeaderDetail, vmp_plnscp_hdr) and exposes 20 fields with key fields DocumentId, PlanningScopeAlternative, SourceMaterial, PlanningScopeItemCount, PlanningScopeAlternative. Part of development package VEP_HFE_MODEL.

Data Sources (3)

SourceAliasJoin Type
vmp_exploded_mat PlanningScopeExplodedBOM from
I_PlanningScopeHeaderDetail PlanningScopeHeader inner
vmp_plnscp_hdr PlanningScopeHeader union_all

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PPLNSCPEXPLBOM view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #BASIC view
VDM.private true view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY DocumentId vmp_exploded_mat documentid Routing slip doc. ID
KEY PlanningScopeAlternative vmp_exploded_mat plan_scope_alt Plan Scope Alternate
KEY SourceMaterial vmp_plnscp_hdr SourceMaterial Material
KEY PlanningScopeItemCount vmp_exploded_mat item_counter INT4
Material vmp_exploded_mat material_id Material
ExplosionType vmp_exploded_mat explosion_type VMP Explosion type
SourceBOMType vmp_exploded_mat source_bom_type EBom Type
EBOMPlant vmp_exploded_mat source_bom_plant Source plant
SourceBOMUsage vmp_exploded_mat source_bom_usage Usage
SourceBOMAlternative vmp_exploded_mat source_bom_alt Source BOM alt
documentidasDocumentId
KEY PlanningScopeAlternative vmp_plnscp_hdr plan_scope_alt Plan Scope Alternate
KEY SourceMaterial vmp_plnscp_hdr src_matnr Material
KEY PlanningScopeItemCount INT4
Material vmp_plnscp_hdr src_matnr Material
SourceBOMType vmp_plnscp_hdr source_bom_type EBom Type
EBOMPlant vmp_plnscp_hdr source_plant Source plant
SourceBOMUsage vmp_plnscp_hdr source_bom_usage Usage
SourceBOMAlternative vmp_plnscp_hdr source_bom_alt Source BOM alt
psm_explosion_dateendasEBOMValidity

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 P_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: PPLNSCPEXPLBOM

CREATE VIEW P_PlanningScopeExplodedBOM AS
SELECT
  PlanningScopeExplodedBOM.documentid AS DocumentId,
  PlanningScopeExplodedBOM.plan_scope_alt AS PlanningScopeAlternative,
  PlanningScopeHeader.SourceMaterial AS SourceMaterial,
  PlanningScopeExplodedBOM.item_counter AS PlanningScopeItemCount,
  PlanningScopeExplodedBOM.material_id AS Material,
  PlanningScopeExplodedBOM.explosion_type AS ExplosionType,
  PlanningScopeExplodedBOM.source_bom_type AS SourceBOMType,
  PlanningScopeExplodedBOM.source_bom_plant AS EBOMPlant,
  PlanningScopeExplodedBOM.source_bom_usage AS SourceBOMUsage,
  PlanningScopeExplodedBOM.source_bom_alt AS SourceBOMAlternative,
  case PlanningScopeHeader.ProductStructureUsage when '' then PlanningScopeHeader.EBOMValidity else PlanningScopeHeader.ConfigurationSimulationDate end as EBOMValidity AS documentidasDocumentId,
  case PlanningScopeHeader.psm_usage when '' then PlanningScopeHeader.source_validity else PlanningScopeHeader.psm_explosion_date end as EBOMValidity AS psm_explosion_dateendasEBOMValidity
FROM vmp_exploded_mat AS PlanningScopeExplodedBOM
INNER JOIN I_PlanningScopeHeaderDetail AS PlanningScopeHeader ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): vmp_plnscp_hdr
;