P_SubcontrgCockpitHierarchy
Subcontracting Cockpit Root View
P_SubcontrgCockpitHierarchy is a Composite CDS View that provides data about "Subcontracting Cockpit Root View" in SAP S/4HANA. It reads from 3 data sources (P_ProcmtdocSubcontrg_BB_Items, P_ProcmtDocSubcontrgV1, P_ProcmtDocSubcontrgV1) and exposes 143 fields with key fields MaterialComponent, Plant, Subcontractor, RequirementType, Plant. It has 1 association to related views. Part of development package ODATA_MM_PUR_SUBCONTRG_COCKPIT.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| P_ProcmtdocSubcontrg_BB_Items | P_ProcmtdocSubcontrg_BB_Items | union_all |
| P_ProcmtDocSubcontrgV1 | P_ProcmtDocSubcontrgV1 | from |
| P_ProcmtDocSubcontrgV1 | P_ProcmtDocSubcontrgV1 | union_all |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_ReqdDelivDteRngeFrmDte | vdm_shippingdate | |
| P_ReqdDelivDteRngeToDte | vdm_shippingdate |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_PendingQuantity1 | _PendingQuantity | $projection.Reservation = _PendingQuantity.Reservation and $projection.ReservationItem = _PendingQuantity.ReservationItem and $projection.MaterialComponent = _PendingQuantity.Material and $projection.Plant = _PendingQuantity.Plant and $projection.Subcontractor = _PendingQuantity.Supplier and $projection.ShipmentCompletionDate = _PendingQuantity.RequirementDate |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (143)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaterialComponent | MaterialComponent | Vehicle Model | |
| KEY | Plant | Plant | Valuation Area | |
| KEY | Subcontractor | Subcontractor | Supplier | |
| KEY | RequirementType | RequirementType | ||
| SuplrMatlPlnt | SuplrMatlPlnt | |||
| ScheduleLine | Schedule Line | |||
| Reservation | Reservation | |||
| ReservationItem | Reservation Item | |||
| MasterDataNode | ||||
| ParentNode | Parent Node | |||
| HierarchyNodeLevel | Hierarchy Node Level | |||
| HierarchyDrillState | Drill State | |||
| PurchaseOrder | Purchasing Document | |||
| PurchaseOrderItem | Purchasing Document Item | |||
| FormattedPurchaseOrderItem | ||||
| ShipmentCompletionDate | Reqmts date | |||
| Assembly | Pegged Reqmt | |||
| ScheduleLineDeliveryDate | Delivery Date | |||
| PurchasingGroup | Purchasing Group | |||
| PurchasingOrganization | Purchasing Organization | |||
| Batch | Lot No. | |||
| SupplyingPlant | Supplying Plant | |||
| StillToBeDeliveredQuantity | ||||
| OrderQuantityUnit | Sales Unit | |||
| DebitCreditCode | Single-Character Flag | |||
| StorageLocation | StorageLocation | |||
| DistributionChannel | RefDistCh-Cust/Mat. | |||
| SalesOrganization | Sales Organization | |||
| Division | Internal Division ID | |||
| ShippingCondition | Shipping Conditions | |||
| NumberOfItems | Count | |||
| PurchasingDocumentType | RFQ Type | |||
| GoodsMovementType | Movement Type | |||
| RequiredQuantity | Requirement qty | |||
| BaseUnit | Unit of Measure | |||
| PurchasingDocumentCategory | Doc. Category | |||
| AssemblyName | ||||
| StorageLocationName | Storage Loc. Name | |||
| PurchasingGroupName | Purchasing Grp. Name | |||
| PurchasingOrganizationName | Purch. Org. Name | |||
| CompanyCode | Receiver Company Code | |||
| ReservationItmIsMarkedForDeltn | Deleted | |||
| SpecialStockIdfgWBSElement | WBS Internal ID | |||
| WBSDescription | WBS Element Name | |||
| InventorySpecialStockType | Special Stock Type | |||
| InventorySpecialStockTypeName | ||||
| SalesOrder | SD Document | |||
| P_ReqdDelivDteRngeFrmDte | ||||
| RequirementDatekeyMaterialComponent | ||||
| KEY | Plant | Plant | Valuation Area | |
| KEY | Subcontractor | Subcontractor | Supplier | |
| KEY | RequirementType | RequirementType | RequirementType | |
| SuplrMatlPlnt | SuplrMatlPlntResv | |||
| ScheduleLine | ScheduleLine | Schedule Line | ||
| Reservation | Reservation | Reservation | ||
| ReservationItem | ReservationItem | Reservation Item | ||
| MasterDataNode | MasterDataNode | |||
| ParentNode | ParentNode | Parent Node | ||
| HierarchyNodeLevel | Hierarchy Node Level | |||
| HierarchyDrillState | Drill State | |||
| PurchaseOrder | PurchaseOrder | Purchasing Document | ||
| PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | ||
| FormattedPurchaseOrderItem | FormattedPurchaseOrderItem | |||
| ShipmentCompletionDate | ShipmentCompletionDate | Reqmts date | ||
| Assembly | Assembly | Pegged Reqmt | ||
| ScheduleLineDeliveryDate | ScheduleLineDeliveryDate | Delivery Date | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| Batch | Batch | Lot No. | ||
| SupplyingPlant | SupplyingPlant | Supplying Plant | ||
| StillToBeDeliveredQuantity | _PendingQuantity | StillToBeDeliveredQuantity | ||
| OrderQuantityUnit | _PendingQuantity | OrderQuantityUnit | Sales Unit | |
| DebitCreditCode | DebitCreditCode | Single-Character Flag | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| Division | Division | Internal Division ID | ||
| ShippingCondition | ShippingCondition | Shipping Conditions | ||
| NumberOfItems | NumberOfItems | |||
| PurchasingDocumentType | PurchasingDocumentType | RFQ Type | ||
| GoodsMovementType | GoodsMovementType | Movement Type | ||
| RequiredQuantity | RequiredQuantity | Requirement qty | ||
| BaseUnit | BaseUnit | Unit of Measure | ||
| PurchasingDocumentCategory | PurchasingDocumentCategory | Doc. Category | ||
| AssemblyName | AssemblyName | |||
| StorageLocationName | StorageLocationName | Storage Loc. Name | ||
| PurchasingGroupName | PurchasingGroupName | Purchasing Grp. Name | ||
| PurchasingOrganizationName | PurchasingOrganizationName | Purch. Org. Name | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| ReservationItmIsMarkedForDeltn | ReservationItmIsMarkedForDeltn | Deleted | ||
| SpecialStockIdfgWBSElement | SpecialStockIdfgWBSElement | WBS Internal ID | ||
| WBSDescription | WBSDescription | WBS Element Name | ||
| InventorySpecialStockType | InventorySpecialStockType | Special Stock Type | ||
| InventorySpecialStockTypeName | InventorySpecialStockTypeName | |||
| SalesOrder | SalesOrder | SD Document | ||
| P_ReqdDelivDteRngeFrmDte | ||||
| KEY | Plant | Plant | Valuation Area | |
| KEY | Subcontractor | Subcontractor | Supplier | |
| KEY | RequirementType | RequirementType | RequirementType | |
| SuplrMatlPlnt | SuplrMatlPlnt | |||
| ScheduleLine | ScheduleLine | Schedule Line | ||
| Reservation | Reservation | Reservation | ||
| ReservationItem | ReservationItem | Reservation Item | ||
| MasterDataNode | MasterDataNode | |||
| ParentNode | ParentNode | Parent Node | ||
| HierarchyNodeLevel | HierarchyNodeLevel | Hierarchy Node Level | ||
| HierarchyDrillState | HierarchyDrillState | Drill State | ||
| PurchaseOrder | PurchaseOrder | Purchasing Document | ||
| PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | ||
| FormattedPurchaseOrderItem | FormattedPurchaseOrderItem | |||
| ShipmentCompletionDate | ShipmentCompletionDate | Reqmts date | ||
| Assembly | Assembly | Pegged Reqmt | ||
| ScheduleLineDeliveryDate | ScheduleLineDeliveryDate | Delivery Date | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| Batch | Batch | Lot No. | ||
| SupplyingPlant | SupplyingPlant | Supplying Plant | ||
| StillToBeDeliveredQuantity | StillToBeDeliveredQuantity | |||
| OrderQuantityUnit | OrderQuantityUnit | Sales Unit | ||
| DebitCreditCode | DebitCreditCode | Single-Character Flag | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| Division | Division | Internal Division ID | ||
| ShippingCondition | ShippingCondition | Shipping Conditions | ||
| NumberOfItems | NumberOfItems | |||
| PurchasingDocumentType | PurchasingDocumentType | RFQ Type | ||
| GoodsMovementType | GoodsMovementType | Movement Type | ||
| RequiredQuantity | RequiredQuantity | Requirement qty | ||
| BaseUnit | BaseUnit | Unit of Measure | ||
| PurchasingDocumentCategory | PurchasingDocumentCategory | Doc. Category | ||
| AssemblyName | AssemblyName | |||
| StorageLocationName | StorageLocationName | Storage Loc. Name | ||
| PurchasingGroupName | PurchasingGroupName | Purchasing Grp. Name | ||
| PurchasingOrganizationName | PurchasingOrganizationName | Purch. Org. Name | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| ReservationItmIsMarkedForDeltn | ReservationItmIsMarkedForDeltn | Deleted | ||
| SpecialStockIdfgWBSElement | WBS Internal ID | |||
| WBSDescription | WBSDescription | WBS Element Name | ||
| InventorySpecialStockType | InventorySpecialStockType | Special Stock Type | ||
| InventorySpecialStockTypeName | InventorySpecialStockTypeName | |||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item |
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_SubcontrgCockpitHierarchy.
-- 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.
-- Parameters: P_ReqdDelivDteRngeFrmDte : vdm_shippingdate, P_ReqdDelivDteRngeToDte : vdm_shippingdate
CREATE VIEW P_SubcontrgCockpitHierarchy AS
SELECT
MaterialComponent,
Plant,
Subcontractor,
cast( '' as bdart ) AS RequirementType,
SuplrMatlPlnt,
cast ('' as etenr) AS ScheduleLine,
cast ('' as rsnum) AS Reservation,
cast ('' as pph_rspos) AS ReservationItem,
cast('' as abap.char( 250 )) AS MasterDataNode,
cast('' as abap.char( 250 )) AS ParentNode,
cast('0' as abap.char(1)) AS HierarchyNodeLevel,
cast('expanded' as abap.char(22)) AS HierarchyDrillState,
cast('' as abap.char(15)) AS PurchaseOrder,
cast('' as ebelp) AS PurchaseOrderItem,
cast('' as abap.char(16)) AS FormattedPurchaseOrderItem,
cast ('00000000' as bdter) AS ShipmentCompletionDate,
cast('' as matnr) AS Assembly,
cast('00000000' as eindt) AS ScheduleLineDeliveryDate,
cast('' as ekgrp) AS PurchasingGroup,
cast('' as ekorg) AS PurchasingOrganization,
cast('' as charg_d) AS Batch,
cast('' as reswk) AS SupplyingPlant,
cast(0 as abap.quan( 13, 3 )) AS StillToBeDeliveredQuantity,
cast ('' as meins) AS OrderQuantityUnit,
cast ( '' as shkzg ) AS DebitCreditCode,
cast ('' as pph_lgort) AS StorageLocation,
cast('' as vtweg) AS DistributionChannel,
cast ('' as vkorg) AS SalesOrganization,
cast ( '' as spaiv) AS Division,
cast ('' as vsbed) AS ShippingCondition,
cast( 0 as abap.int4) AS NumberOfItems,
cast ('' as bstyp) AS PurchasingDocumentType,
cast('' as bwart) AS GoodsMovementType,
cast (0 as abap.quan( 13, 3 )) AS RequiredQuantity,
cast ('' as meins) AS BaseUnit,
cast ( '' as bstyp ) AS PurchasingDocumentCategory,
cast ('' as maktx) AS AssemblyName,
cast('' as lgort_name) AS StorageLocationName,
cast('' as mm_a_purg_grp_name ) AS PurchasingGroupName,
cast( '' as mm_a_purg_org_name ) AS PurchasingOrganizationName,
cast ('' as bukrs) AS CompanyCode,
cast ('' as xloek) AS ReservationItmIsMarkedForDeltn,
cast ('' as nsdm_wbselement_internal_id ) AS SpecialStockIdfgWBSElement,
cast ('' as ps_post1) AS WBSDescription,
cast ('' as umsok ) AS InventorySpecialStockType,
cast ( '' as sotxt_d ) AS InventorySpecialStockTypeName,
cast( '' as kdauf ) AS SalesOrder,
cast( '' as kdpos ) as SalesOrderItem AS P_ReqdDelivDteRngeFrmDte,
SalesOrderItem
FROM P_ProcmtDocSubcontrgV1
LEFT OUTER JOIN P_PendingQuantity1 AS _PendingQuantity ON Reservation = _PendingQuantity.Reservation AND ReservationItem = _PendingQuantity.ReservationItem AND MaterialComponent = _PendingQuantity.Material AND Plant = _PendingQuantity.Plant AND Subcontractor = _PendingQuantity.Supplier AND ShipmentCompletionDate = _PendingQuantity.RequirementDate -- association [0..1]
-- UNION ALL with additional select branch(es): P_ProcmtDocSubcontrgV1, P_ProcmtdocSubcontrg_BB_Items
;
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