P_PlanningScopeHeader
P_PlanningScopeHeader is a Composite CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 98 fields with key fields DocumentId, PlanningScopeAlternative, SourceMaterial, PlanningScopeAlternative, SourceMaterial.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| I_MaterialBOM | BomHeader | union_all |
| I_PlanningScopeHeaderDetail | PlanningScopeHeader | from |
| I_ProductStructureNodeVariant | ProductStructure | union_all |
| I_PlanningScopeHeaderDetail | PSEbom | left_outer |
| I_ProductStructureNodeVariant | PSMNode | left_outer |
| I_PlanningScopeHeaderDetail | PSProductStructure | left_outer |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPLNSCPHDR | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (98)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DocumentId | I_PlanningScopeHeaderDetail | DocumentId | Routing slip doc. ID |
| KEY | PlanningScopeAlternative | I_PlanningScopeHeaderDetail | PlanningScopeAlternative | Plan Scope Alternate |
| KEY | SourceMaterial | I_PlanningScopeHeaderDetail | SourceMaterial | Vehicle Model |
| PlanningScopeDescription | I_PlanningScopeHeaderDetail | PlanningScopeDescription | Well Code Des. | |
| Plant | I_PlanningScopeHeaderDetail | Plant | Valuation Area | |
| LastChangeDateTime | I_PlanningScopeHeaderDetail | LastChangeDateTime | Timestamp | |
| ChangeNumber | I_PlanningScopeHeaderDetail | ChangeNumber | Change Number | |
| DocumentInfoRecordDocType | I_PlanningScopeHeaderDetail | DocumentInfoRecordDocType | Document Type | |
| DocumentInfoRecordDocNumber | I_PlanningScopeHeaderDetail | DocumentInfoRecordDocNumber | Document | |
| DocumentInfoRecordDocPart | I_PlanningScopeHeaderDetail | DocumentInfoRecordDocPart | Document Part | |
| DocumentInfoRecordDocVersion | I_PlanningScopeHeaderDetail | DocumentInfoRecordDocVersion | Doc. Version | |
| MBOMUsage | I_PlanningScopeHeaderDetail | MBOMUsage | Usage | |
| LastChangedByUser | I_PlanningScopeHeaderDetail | LastChangedByUser | User Name | |
| Material | I_PlanningScopeHeaderDetail | Material | Vehicle Model | |
| MfgBillOfMaterialCategory | I_PlanningScopeHeaderDetail | MfgBillOfMaterialCategory | ||
| RecordCreationDate | I_PlanningScopeHeaderDetail | RecordCreationDate | Created On | |
| CreatedByUser | I_PlanningScopeHeaderDetail | CreatedByUser | User Name | |
| SourcePlant | I_PlanningScopeHeaderDetail | SourcePlant | Valuation Area | |
| SourceBOMAlternative | I_PlanningScopeHeaderDetail | SourceBOMAlternative | AlternativeBOM | |
| SourceBOMUsage | I_PlanningScopeHeaderDetail | SourceBOMUsage | Usage | |
| EBOMValidity | I_PlanningScopeHeaderDetail | EBOMValidity | Source validity date | |
| SourceBOMType | I_PlanningScopeHeaderDetail | SourceBOMType | BOM category | |
| BOMIsActive | I_PlanningScopeHeaderDetail | BOMIsActive | BOM Status | |
| PlanningSourceType | I_PlanningScopeHeaderDetail | PlanningSourceType | ||
| ConfigurationSimulationDate | I_PlanningScopeHeaderDetail | ConfigurationSimulationDate | Date | |
| ProductStructureNodeUUID | I_ProductStructureNodeVariant | ProductStructureNodeUUID | PSM Node Name | |
| ProductStructureUsage | I_ProductStructureNodeVariant | ProductStructureUsage | Usage | |
| ProductStructureNodeName | I_ProductStructureNodeVariant | ProductStructureNodeName | ||
| ProductStructureNodeType | I_ProductStructureNodeVariant | ProductStructureNodeType | ||
| ClassType | I_ProductStructureNodeVariant | ClassType | X Flag | |
| Class | I_ProductStructureNodeVariant | Class | User Group | |
| ValidityStartDate | Valid From | |||
| ValidityEndDate | to | |||
| KEY | PlanningScopeAlternative | Plan Scope Alternate | ||
| KEY | SourceMaterial | I_MaterialBOM | Material | Vehicle Model |
| PlanningScopeDescription | I_PlanningScopeHeaderDetail | PlanningScopeDescription | Well Code Des. | |
| Plant | Valuation Area | |||
| LastChangeDateTime | Timestamp | |||
| ChangeNumber | Change Number | |||
| DocumentInfoRecordDocType | Document Type | |||
| DocumentInfoRecordDocNumber | Document | |||
| DocumentInfoRecordDocPart | Document Part | |||
| DocumentInfoRecordDocVersion | Doc. Version | |||
| MBOMUsage | Usage | |||
| LastChangedByUser | User Name | |||
| Material | Vehicle Model | |||
| MfgBillOfMaterialCategory | ||||
| RecordCreationDate | I_MaterialBOM | RecordCreationDate | Created On | |
| CreatedByUser | User Name | |||
| SourcePlant | I_MaterialBOM | Plant | Valuation Area | |
| SourceBOMAlternative | I_MaterialBOM | BillOfMaterialVariant | AlternativeBOM | |
| SourceBOMUsage | I_MaterialBOM | BillOfMaterialVariantUsage | Usage | |
| EBOMValidity | Source validity date | |||
| SourceBOMType | I_MaterialBOM | BillOfMaterialCategory | BOM category | |
| BOMIsActive | I_MaterialBOM | BillOfMaterialStatus | BOM Status | |
| PlanningSourceType | ||||
| ConfigurationSimulationDate | Date | |||
| ProductStructureNodeUUID | PSM Node Name | |||
| ProductStructureUsage | Usage | |||
| ProductStructureNodeName | I_PlanningScopeHeaderDetail | SourceMaterial | ||
| ProductStructureNodeType | ||||
| ClassType | X Flag | |||
| Class | User Group | |||
| ValidityStartDate | I_MaterialBOM | HeaderValidityStartDate | Valid From | |
| ValidityEndDate | I_MaterialBOM | HeaderValidityEndDate | to | |
| KEY | PlanningScopeAlternative | Plan Scope Alternate | ||
| KEY | SourceMaterial | I_ProductStructureNodeVariant | Material | Vehicle Model |
| PlanningScopeDescription | I_PlanningScopeHeaderDetail | PlanningScopeDescription | Well Code Des. | |
| Plant | Valuation Area | |||
| LastChangeDateTime | Timestamp | |||
| ChangeNumber | Change Number | |||
| DocumentInfoRecordDocType | Document Type | |||
| DocumentInfoRecordDocNumber | Document | |||
| DocumentInfoRecordDocPart | Document Part | |||
| DocumentInfoRecordDocVersion | Doc. Version | |||
| MBOMUsage | Usage | |||
| LastChangedByUser | User Name | |||
| Material | Vehicle Model | |||
| MfgBillOfMaterialCategory | ||||
| RecordCreationDate | Created On | |||
| CreatedByUser | User Name | |||
| SourcePlant | I_ProductStructureNodeVariant | Plant | Valuation Area | |
| SourceBOMAlternative | AlternativeBOM | |||
| SourceBOMUsage | Usage | |||
| EBOMValidity | Source validity date | |||
| SourceBOMType | BOM category | |||
| BOMIsActive | BOM Status | |||
| PlanningSourceType | ||||
| ConfigurationSimulationDate | I_PlanningScopeHeaderDetail | ConfigurationSimulationDate | Date | |
| ProductStructureNodeUUID | I_ProductStructureNodeVariant | ProductStructureNodeUUID | PSM Node Name | |
| ProductStructureUsage | I_ProductStructureNodeVariant | ProductStructureUsage | Usage | |
| ProductStructureNodeName | I_ProductStructureNodeVariant | ProductStructureNodeName | ||
| ProductStructureNodeType | I_ProductStructureNodeVariant | ProductStructureNodeType | ||
| ClassType | I_ProductStructureNodeVariant | ClassType | X Flag | |
| Class | I_ProductStructureNodeVariant | Class | User Group | |
| ValidityStartDate | Valid From | |||
| ValidityEndDate | to | |||
| SourceChangeNumber |
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_PlanningScopeHeader.
-- 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: PPLNSCPHDR
CREATE VIEW P_PlanningScopeHeader AS
SELECT
PlanningScopeHeader.DocumentId AS DocumentId,
PlanningScopeHeader.PlanningScopeAlternative AS PlanningScopeAlternative,
PlanningScopeHeader.SourceMaterial AS SourceMaterial,
PlanningScopeHeader.PlanningScopeDescription AS PlanningScopeDescription,
PlanningScopeHeader.Plant AS Plant,
PlanningScopeHeader.LastChangeDateTime AS LastChangeDateTime,
PlanningScopeHeader.ChangeNumber AS ChangeNumber,
PlanningScopeHeader.DocumentInfoRecordDocType AS DocumentInfoRecordDocType,
PlanningScopeHeader.DocumentInfoRecordDocNumber AS DocumentInfoRecordDocNumber,
PlanningScopeHeader.DocumentInfoRecordDocPart AS DocumentInfoRecordDocPart,
PlanningScopeHeader.DocumentInfoRecordDocVersion AS DocumentInfoRecordDocVersion,
PlanningScopeHeader.MBOMUsage AS MBOMUsage,
PlanningScopeHeader.LastChangedByUser AS LastChangedByUser,
PlanningScopeHeader.Material AS Material,
PlanningScopeHeader.MfgBillOfMaterialCategory AS MfgBillOfMaterialCategory,
PlanningScopeHeader.RecordCreationDate AS RecordCreationDate,
PlanningScopeHeader.CreatedByUser AS CreatedByUser,
PlanningScopeHeader.SourcePlant AS SourcePlant,
PlanningScopeHeader.SourceBOMAlternative AS SourceBOMAlternative,
PlanningScopeHeader.SourceBOMUsage AS SourceBOMUsage,
PlanningScopeHeader.EBOMValidity AS EBOMValidity,
PlanningScopeHeader.SourceBOMType AS SourceBOMType,
PlanningScopeHeader.BOMIsActive AS BOMIsActive,
PlanningScopeHeader.PlanningSourceType AS PlanningSourceType,
PlanningScopeHeader.ConfigurationSimulationDate AS ConfigurationSimulationDate,
PSMNode.ProductStructureNodeUUID AS ProductStructureNodeUUID,
PSMNode.ProductStructureUsage AS ProductStructureUsage,
PSMNode.ProductStructureNodeName AS ProductStructureNodeName,
PSMNode.ProductStructureNodeType AS ProductStructureNodeType,
PSMNode.ClassType AS ClassType,
PSMNode.Class AS Class,
cast ('19000101' as vmp_source_datum) AS ValidityStartDate,
cast ('99991231' as vmp_source_datum) AS ValidityEndDate,
cast('' as aennr) AS SourceChangeNumber
FROM I_PlanningScopeHeaderDetail AS PlanningScopeHeader
LEFT OUTER JOIN I_ProductStructureNodeVariant AS PSMNode ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PlanningScopeHeaderDetail AS PSEbom ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PlanningScopeHeaderDetail AS PSProductStructure ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_MaterialBOM, I_ProductStructureNodeVariant
;
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