I_ChgRecdRefPlngScpHdr
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)
| Source | Alias | Join Type |
|---|---|---|
| I_PlngScpHdr | _PlngScpHdr | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA