C_PurOrderItemHierFactSheet
Purchase Order Item Hierarchy information
C_PurOrderItemHierFactSheet is a Consumption CDS View that provides data about "Purchase Order Item Hierarchy information" in SAP S/4HANA. It reads from 1 data source (I_PurchaseorderItemEnhanced) and exposes 37 fields with key fields PurchaseOrder, PurchaseOrderItem. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchaseorderItemEnhanced | I_PurchaseorderItemEnhanced | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | C_MM_PlantValueHelp | _PlantValHelp | _PlantValHelp.Plant = $projection.Plant and _PlantValHelp.PurchasingOrganization = $projection.PurchasingOrganization |
| [1..1] | C_PurOrdItemCO2eqFootprint | _PurOrdItemCO2eqFootprint | _PurOrdItemCO2eqFootprint.PurchaseOrder = $projection.PurchaseOrder and _PurOrdItemCO2eqFootprint.PurchaseOrderItem = $projection.PurchaseOrderItem |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | CPURORDITEMHIER | view | |
| EndUserText.label | Purchase Order Item Hierarchy information | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| UI.headerInfo.typeName | Purchase Order Item | view | |
| UI.headerInfo.typeNamePlural | Purchase Order Items | view | |
| UI.headerInfo.title.value | PurchaseOrderItem | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| UI.textArrangement | #TEXT_ONLY | view | |
| ObjectModel.query.implementedBy | ABAP:CL_MM_PUR_PO_QC_HIERACHY_ITEMS | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view |
Fields (37)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchaseOrder | Purchasing Document | |
| KEY | PurchaseOrderItem | Purchasing Document Item | ||
| PurgConfigurableItemNumber | PurgConfigurableItemNumber | Hierarchy Number | ||
| PurchaseOrderItemCategory | PurchaseOrderItemCategory | Item Category | ||
| Material | Material | Vehicle Model | ||
| ManufacturerMaterial | ManufacturerMaterial | MPN: Material | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| Plant | Plant | Valuation Area | ||
| AccountAssignmentCategory | ||||
| PurchaseOrderItemText | PurchaseOrderItemText | Short Text | ||
| PurchasingHierarchyNode | PurchasingHierarchyNode | Hier.node | ||
| HierarchyParentNode | HierarchyParentNode | Hier.node | ||
| HierarchyLevel | HierarchyLevel | Hierarchy Level | ||
| HierarchyNodeSubTreeSize | HierarchyNodeSubTreeSize | Descendant Count | ||
| HierarchyDrillState | HierarchyDrillState | Drill State | ||
| PurchasingIsItemSet | PurchasingIsItemSet | Item Set | ||
| HierarchyNodeOrdinalNumber | HierarchyNodeOrdinalNumber | Node Number | ||
| OrderQuantity | OrderQuantity | Quantity | ||
| PurchaseOrderQuantityUnit | PurchaseOrderQuantityUnit | Order Unit | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| NetPriceAmount | NetPriceAmount | Net Price | ||
| OrderPriceUnit | OrderPriceUnit | Order Price Un. | ||
| NetAmount | NetAmount | Stated Amount | ||
| RequisitionerName | RequisitionerName | Requisitioner | ||
| PurchasingDocumentDeletionCode | PurchasingDocumentDeletionCode | Del. Indicator | ||
| ServicePerformer | ServicePerformer | Service Performer | ||
| PurchaseOrderType | PurchaseOrderType | PO Type | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| SupplierConfirmationControlKey | SupplierConfirmationControlKey | Conf. Control | ||
| PurgDocOrderAcknNumber | PurgDocOrderAcknNumber | Order Acknowl. | ||
| IsOrderAcknRqd | IsOrderAcknRqd | Acknowl. Reqd. | ||
| ItemIsRejectedBySupplier | ItemIsRejectedBySupplier | Rejection Ind. | ||
| PFMTransDataFootprintUUID | PFMTransDataFootprintUUID | Transaction Data Footprint | ||
| PFMFootprintQuantity | _PurOrdItemCO2eqFootprint | PFMFootprintQuantity | CO2e Footprint | |
| PFMFootprintUnit | _PurOrdItemCO2eqFootprint | PFMFootprintUnit | Unit | |
| _PlantValHelp | _PlantValHelp |
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 C_PurOrderItemHierFactSheet.
-- 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: CPURORDITEMHIER
CREATE VIEW C_PurOrderItemHierFactSheet AS
SELECT
PurchaseOrder,
cast (PurchaseOrderItem as ebelp preserving type) AS PurchaseOrderItem,
PurgConfigurableItemNumber,
PurchaseOrderItemCategory,
Material,
ManufacturerMaterial,
MaterialGroup,
Plant,
cast (I_PurchaseorderItemEnhanced.AccountAssignmentCategory as knttp_ll preserving type) AS AccountAssignmentCategory,
PurchaseOrderItemText,
PurchasingHierarchyNode,
HierarchyParentNode,
HierarchyLevel,
HierarchyNodeSubTreeSize,
HierarchyDrillState,
PurchasingIsItemSet,
HierarchyNodeOrdinalNumber,
OrderQuantity,
PurchaseOrderQuantityUnit,
DocumentCurrency,
NetPriceAmount,
OrderPriceUnit,
NetAmount,
RequisitionerName,
PurchasingDocumentDeletionCode,
ServicePerformer,
PurchaseOrderType,
PurchasingOrganization,
PurchasingGroup,
SupplierConfirmationControlKey,
PurgDocOrderAcknNumber,
IsOrderAcknRqd,
ItemIsRejectedBySupplier,
PFMTransDataFootprintUUID,
_PurOrdItemCO2eqFootprint.PFMFootprintQuantity AS PFMFootprintQuantity,
_PurOrdItemCO2eqFootprint.PFMFootprintUnit AS PFMFootprintUnit
FROM I_PurchaseorderItemEnhanced
LEFT OUTER JOIN C_MM_PlantValueHelp AS _PlantValHelp ON _PlantValHelp.Plant = Plant AND _PlantValHelp.PurchasingOrganization = PurchasingOrganization -- association [0..1]
LEFT OUTER JOIN C_PurOrdItemCO2eqFootprint AS _PurOrdItemCO2eqFootprint ON _PurOrdItemCO2eqFootprint.PurchaseOrder = PurchaseOrder AND _PurOrdItemCO2eqFootprint.PurchaseOrderItem = PurchaseOrderItem -- association [1..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