I_PlanningScopeHeaderTP
Document and BOM Links
I_PlanningScopeHeaderTP is a Transactional CDS View that provides data about "Document and BOM Links" in SAP S/4HANA. It reads from 1 data source (I_PlanningScopeHeader) and exposes 47 fields with key fields DocumentId, PlanningScopeAlternative, SourceMaterial. It has 2 associations to related views. Part of development package VEP_HFE_MODEL.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PlanningScopeHeader | PlanningScopeHeader | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | I_PlanningScopeMBOMTP | _PlanningScopeMBOM | $projection.DocumentId = _PlanningScopeMBOM.DocumentId and $projection.PlanningScopeAlternative = _PlanningScopeMBOM.PlanningScopeAlternative and $projection.SourceMaterial = _PlanningScopeMBOM.SourceMaterial |
| [1..*] | I_PlanningScopeExplodedBOMTP | _PlanningScopeExplodedBOM | $projection.DocumentId = _PlanningScopeExplodedBOM.DocumentId and $projection.PlanningScopeAlternative = _PlanningScopeExplodedBOM.PlanningScopeAlternative and $projection.SourceMaterial = _PlanningScopeExplodedBOM.SourceMaterial |
Annotations (20)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPLNSCPHDRTP | 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 | |
| EndUserText.label | Document and BOM Links | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.modelCategory | #BUSINESS_OBJECT | view | |
| ObjectModel.writeDraftPersistence | VMP_HDR_DRAFT | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.transactionalProcessingEnabled | true | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.entityChangeStateId | LastChangeDateTime | view |
Fields (47)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DocumentId | I_PlanningScopeHeader | DocumentId | Routing slip doc. ID |
| KEY | PlanningScopeAlternative | I_PlanningScopeHeader | PlanningScopeAlternative | |
| KEY | SourceMaterial | I_PlanningScopeHeader | SourceMaterial | |
| PlanningScopeDescription | I_PlanningScopeHeader | PlanningScopeDescription | ||
| Plant | I_PlanningScopeHeader | Plant | Valuation Area | |
| LastChangeDateTime | I_PlanningScopeHeader | LastChangeDateTime | Timestamp | |
| ChangeNumber | I_PlanningScopeHeader | ChangeNumber | Change Number | |
| DocumentInfoRecordDocType | I_PlanningScopeHeader | DocumentInfoRecordDocType | Document Type | |
| DocumentInfoRecordDocNumber | I_PlanningScopeHeader | DocumentInfoRecordDocNumber | Document | |
| DocumentInfoRecordDocPart | I_PlanningScopeHeader | DocumentInfoRecordDocPart | Document Part | |
| DocumentInfoRecordDocVersion | I_PlanningScopeHeader | DocumentInfoRecordDocVersion | Doc. Version | |
| MBOMUsage | I_PlanningScopeHeader | MBOMUsage | ||
| Material | I_PlanningScopeHeader | Material | Vehicle Model | |
| MfgBillOfMaterialCategory | I_PlanningScopeHeader | MfgBillOfMaterialCategory | ||
| SourcePlant | I_PlanningScopeHeader | SourcePlant | ||
| EBOMValidity | I_PlanningScopeHeader | EBOMValidity | ||
| SourceBOMAlternative | I_PlanningScopeHeader | SourceBOMAlternative | ||
| SourceBOMUsage | I_PlanningScopeHeader | SourceBOMUsage | ||
| SourceBOMType | I_PlanningScopeHeader | SourceBOMType | ||
| CreatedByUser | I_PlanningScopeHeader | CreatedByUser | User Name | |
| LastChangedByUser | I_PlanningScopeHeader | LastChangedByUser | User Name | |
| PlanningSourceType | I_PlanningScopeHeader | PlanningSourceType | ||
| RecordCreationDate | I_PlanningScopeHeader | RecordCreationDate | Created On | |
| BOMIsActive | I_PlanningScopeHeader | BOMIsActive | ||
| SourceMaterialForEdit | I_PlanningScopeHeader | SourceMaterialForEdit | ||
| ConfigurationSimulationDate | I_PlanningScopeHeader | ConfigurationSimulationDate | Date | |
| ProductStructureNodeUUID | I_PlanningScopeHeader | ProductStructureNodeUUID | ||
| ProductStructureUsage | I_PlanningScopeHeader | ProductStructureUsage | ||
| ProductStructureNodeName | I_PlanningScopeHeader | ProductStructureNodeName | ||
| ProductStructureNodeType | I_PlanningScopeHeader | ProductStructureNodeType | ||
| ClassType | I_PlanningScopeHeader | ClassType | X Flag | |
| Class | I_PlanningScopeHeader | Class | User Group | |
| ValidityStartDate | I_PlanningScopeHeader | ValidityStartDate | Validity Start Date | |
| ValidityEndDate | I_PlanningScopeHeader | ValidityEndDate | ValidTo | |
| HeaderValidityEndDate | I_PlanningScopeHeader | HeaderValidityEndDate | to | |
| SourceChangeNumber | I_PlanningScopeHeader | SourceChangeNumber | ||
| AlignmentStatusValue | I_PlanningScopeHeader | AlignmentStatusValue | ||
| AlignmentStatusCriticality | I_PlanningScopeHeader | AlignmentStatusCriticality | ||
| BOPFonrootlevel_PlanningScopeMBOM | ||||
| BOPFonrootlevel_PlanningScopeExplodedBOM | ||||
| _TargetPlant | I_PlanningScopeHeader | _TargetPlant | ||
| _SourcePlant | I_PlanningScopeHeader | _SourcePlant | ||
| _SourceMaterial | I_PlanningScopeHeader | _SourceMaterial | ||
| _SourceBOMUsage | I_PlanningScopeHeader | _SourceBOMUsage | ||
| _MBOMUsage | I_PlanningScopeHeader | _MBOMUsage | ||
| _CreatedByUser | I_PlanningScopeHeader | _CreatedByUser | ||
| _LastChangedByUser | I_PlanningScopeHeader | _LastChangedByUser |
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_PlanningScopeHeaderTP.
-- 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: IPLNSCPHDRTP
CREATE VIEW I_PlanningScopeHeaderTP 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.Material AS Material,
PlanningScopeHeader.MfgBillOfMaterialCategory AS MfgBillOfMaterialCategory,
PlanningScopeHeader.SourcePlant AS SourcePlant,
PlanningScopeHeader.EBOMValidity AS EBOMValidity,
PlanningScopeHeader.SourceBOMAlternative AS SourceBOMAlternative,
PlanningScopeHeader.SourceBOMUsage AS SourceBOMUsage,
PlanningScopeHeader.SourceBOMType AS SourceBOMType,
PlanningScopeHeader.CreatedByUser AS CreatedByUser,
PlanningScopeHeader.LastChangedByUser AS LastChangedByUser,
PlanningScopeHeader.PlanningSourceType AS PlanningSourceType,
PlanningScopeHeader.RecordCreationDate AS RecordCreationDate,
PlanningScopeHeader.BOMIsActive AS BOMIsActive,
PlanningScopeHeader.SourceMaterialForEdit AS SourceMaterialForEdit,
PlanningScopeHeader.ConfigurationSimulationDate AS ConfigurationSimulationDate,
PlanningScopeHeader.ProductStructureNodeUUID AS ProductStructureNodeUUID,
PlanningScopeHeader.ProductStructureUsage AS ProductStructureUsage,
PlanningScopeHeader.ProductStructureNodeName AS ProductStructureNodeName,
PlanningScopeHeader.ProductStructureNodeType AS ProductStructureNodeType,
PlanningScopeHeader.ClassType AS ClassType,
PlanningScopeHeader.Class AS Class,
PlanningScopeHeader.ValidityStartDate AS ValidityStartDate,
PlanningScopeHeader.ValidityEndDate AS ValidityEndDate,
PlanningScopeHeader.HeaderValidityEndDate AS HeaderValidityEndDate,
PlanningScopeHeader.SourceChangeNumber AS SourceChangeNumber,
PlanningScopeHeader.AlignmentStatusValue AS AlignmentStatusValue,
PlanningScopeHeader.AlignmentStatusCriticality AS AlignmentStatusCriticality,
PlanningScopeHeader._TargetPlant AS _TargetPlant,
PlanningScopeHeader._SourcePlant AS _SourcePlant,
PlanningScopeHeader._SourceMaterial AS _SourceMaterial,
PlanningScopeHeader._SourceBOMUsage AS _SourceBOMUsage,
PlanningScopeHeader._MBOMUsage AS _MBOMUsage,
PlanningScopeHeader._CreatedByUser AS _CreatedByUser,
PlanningScopeHeader._LastChangedByUser AS _LastChangedByUser
FROM I_PlanningScopeHeader AS PlanningScopeHeader
LEFT OUTER JOIN I_PlanningScopeMBOMTP AS _PlanningScopeMBOM ON DocumentId = _PlanningScopeMBOM.DocumentId AND PlanningScopeAlternative = _PlanningScopeMBOM.PlanningScopeAlternative AND SourceMaterial = _PlanningScopeMBOM.SourceMaterial -- association [1..*]
LEFT OUTER JOIN I_PlanningScopeExplodedBOMTP AS _PlanningScopeExplodedBOM ON DocumentId = _PlanningScopeExplodedBOM.DocumentId AND PlanningScopeAlternative = _PlanningScopeExplodedBOM.PlanningScopeAlternative AND SourceMaterial = _PlanningScopeExplodedBOM.SourceMaterial -- association [1..*]
;
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