I_ChgRecdRefPlngScpHdr

DDL: I_CHGRECDREFPLNGSCPHDR SQL: ICRREFPLNGSCPHDR Type: view COMPOSITE Package: VDM_PLMB_CR_O

Change Record Planning Scope Header

I_ChgRecdRefPlngScpHdr is a Composite CDS View that provides data about "Change Record Planning Scope Header" in SAP S/4HANA. It reads from 1 data source (I_PlngScpHdr) and exposes 15 fields with key fields DocumentId, PlanningScopeAlternative. It has 3 associations to related views. Part of development package VDM_PLMB_CR_O.

Data Sources (1)

SourceAliasJoin Type
I_PlngScpHdr _PlngScpHdr from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_BillOfMaterialUsageText _TargetBOMUsageText $projection.MBOMUsage = _TargetBOMUsageText.BillOfMaterialVariantUsage and _TargetBOMUsageText.Language = $session.system_language
[0..1] I_Plant _TargetPlant $projection.Plant = _TargetPlant.Plant
[0..*] I_MaterialText _TargetMatlText $projection.TargetMaterial = _TargetMatlText.Material and _TargetMatlText.Language = $session.system_language

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName ICRREFPLNGSCPHDR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
EndUserText.label Change Record Planning Scope Header view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY DocumentId I_PlngScpHdr DocumentId Routing slip doc. ID
KEY PlanningScopeAlternative I_PlngScpHdr PlanningScopeAlternative
SourceMaterial
SourcePlant I_PlngScpHdr SourcePlant
SourceBOMUsage I_PlngScpHdr SourceBOMUsage
SourceBOMAlternative I_PlngScpHdr SourceBOMAlternative
Plant
ProductionPlantName _TargetPlant PlantName Plant Name
MBOMUsage I_PlngScpHdr MBOMUsage
TargetBOMUsageText _TargetBOMUsageText BillOfMaterialVariantUsageDesc
TargetMaterial I_PlngScpHdr TargetMaterial
TargetMaterialName _TargetMatlText MaterialName Material Description
IsVersionBillOfMaterial I_PlngScpHdr IsVersionBillOfMaterial Versioning Relevant
SourceBOMIsVersioned I_PlngScpHdr SourceBOMIsVersioned
_TargetBOMUsageText _TargetBOMUsageText

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_ChgRecdRefPlngScpHdr.
-- 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: ICRREFPLNGSCPHDR

CREATE VIEW I_ChgRecdRefPlngScpHdr AS
SELECT
  _PlngScpHdr.DocumentId AS DocumentId,
  _PlngScpHdr.PlanningScopeAlternative AS PlanningScopeAlternative,
  _PlngScpHdr.SourcePlant AS SourcePlant,
  _PlngScpHdr.SourceBOMUsage AS SourceBOMUsage,
  _PlngScpHdr.SourceBOMAlternative AS SourceBOMAlternative,
  _TargetPlant.PlantName AS ProductionPlantName,
  _PlngScpHdr.MBOMUsage AS MBOMUsage,
  _TargetBOMUsageText.BillOfMaterialVariantUsageDesc AS TargetBOMUsageText,
  _PlngScpHdr.TargetMaterial AS TargetMaterial,
  _TargetMatlText.MaterialName AS TargetMaterialName,
  _PlngScpHdr.IsVersionBillOfMaterial AS IsVersionBillOfMaterial,
  _PlngScpHdr.SourceBOMIsVersioned AS SourceBOMIsVersioned
FROM I_PlngScpHdr AS _PlngScpHdr
LEFT OUTER JOIN I_BillOfMaterialUsageText AS _TargetBOMUsageText ON MBOMUsage = _TargetBOMUsageText.BillOfMaterialVariantUsage AND _TargetBOMUsageText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _TargetPlant ON Plant = _TargetPlant.Plant  -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _TargetMatlText ON TargetMaterial = _TargetMatlText.Material AND _TargetMatlText.Language = $session.system_language  -- association [0..*]
;