P_RequirementTrackingPurOrd
P view for Purchase Orders by Requirement Tracking
P_RequirementTrackingPurOrd is a Consumption CDS View that provides data about "P view for Purchase Orders by Requirement Tracking" in SAP S/4HANA. It reads from 1 data source (I_PurchaseOrderItem) and exposes 44 fields with key fields PurchaseOrder, PurchaseOrderItem. It has 8 associations to related views. Part of development package ODATA_MM_PUR_REQUIREMENT_TRACK.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchaseOrderItem | I_PurchaseOrderItem | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | P_PurReqTrkAggrGRInv | _PurReqTrkAggrGRInv | _PurReqTrkAggrGRInv.PurchaseOrder = $projection.PurchaseOrder and _PurReqTrkAggrGRInv.PurchaseOrderItem = $projection.PurchaseOrderItem |
| [1..1] | I_PurchasingCategoryMatlGroup | _PurchasingCategoryMatlGrp | $projection.MaterialGroup = _PurchasingCategoryMatlGrp.MaterialGroup |
| [1..1] | R_POItemNextDeliveryCalc | _POItemNextDeliveryCalc | $projection.PurchaseOrder = _POItemNextDeliveryCalc.PurchaseOrder and $projection.PurchaseOrderItem = _POItemNextDeliveryCalc.PurchaseOrderItem |
| [0..1] | C_MM_AccountAssignCatValueHelp | _AccAssignValHelp | _AccAssignValHelp.AccountAssignmentCategory = $projection.AccountAssignmentCategory |
| [1..1] | I_ProcmtBlockedSupplier | _ProcmtBlockedSupplier | _ProcmtBlockedSupplier.PurchasingIsBlockedForSupplier = 'X' |
| [1..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [1..1] | I_PurchasingOrganization | _PurchasingOrganization | $projection.purchasingorganization = _PurchasingOrganization.PurchasingOrganization |
| [1..1] | I_PurchasingGroup | _PurchasingGroup | $projection.purchasinggroup = _PurchasingGroup.PurchasingGroup |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| EndUserText.label | P view for Purchase Orders by Requirement Tracking | view |
Fields (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchaseOrder | Purchasing Document | |
| KEY | PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | |
| FormattedPurchaseOrderItem | ||||
| RequirementTracking | RequirementTracking | Tracking Number | ||
| Material | Material | Vehicle Model | ||
| OrderQuantity | Quantity | |||
| PurchaseOrderQuantityUnit | PurchaseOrderQuantityUnit | Order Unit | ||
| OrderPriceUnit | OrderPriceUnit | Order Price Un. | ||
| NetAmount | Stated Amount | |||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| Supplier | ||||
| MaterialGroup | MaterialGroup | Product Group | ||
| PurchasingText | PurchaseOrderItemText | Short Text | ||
| PurchasingOrganization | ||||
| PurchasingGroup | ||||
| Plant | Plant | Valuation Area | ||
| AccountAssignmentCategory | AccountAssignmentCategory | Acct Assgmt Cat | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| PurchasingCategory | ||||
| PurgCatName | ||||
| PurchasingDocumentType | ||||
| PurchasingDocumentCategory | ||||
| PurchasingDocumentTypeName | ||||
| PurgDocExternalItemCategory | ||||
| PurchaseOrderItemCategory | PurchaseOrderItemCategory | Item Category | ||
| PurgDocItemCategoryName | ||||
| PurchaseOrderDate | ||||
| CreatedByUser | ||||
| UserDescription | ||||
| NetPriceAmount | NetPriceAmount | Net Price | ||
| OpenPurchaseOrderQuantity | ||||
| NetPriceQuantity | Price Unit | |||
| CreationDate | ||||
| _PurchasingCategoryMatlGrp | _PurchasingCategoryMatlGrp | |||
| _AccAssignValHelp | _AccAssignValHelp | |||
| _Material | _Material | |||
| _MaterialGroup | _MaterialGroup | |||
| _Plant | _Plant | |||
| _CompanyCode | _CompanyCode | |||
| _StorageLocation | _StorageLocation | |||
| _Supplier | _Supplier | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _PurchasingGroup | _PurchasingGroup |
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_RequirementTrackingPurOrd.
-- 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.
CREATE VIEW P_RequirementTrackingPurOrd AS
SELECT
PurchaseOrder,
PurchaseOrderItem,
concat(PurchaseOrder, concat('/', PurchaseOrderItem)) AS FormattedPurchaseOrderItem,
RequirementTracking,
Material,
cast(OrderQuantity as vdm_po_orderquantity) AS OrderQuantity,
PurchaseOrderQuantityUnit,
OrderPriceUnit,
cast(NetAmount as vdm_ponetamount) AS NetAmount,
DocumentCurrency,
I_PurchaseOrderItem._PurchaseOrder.Supplier AS Supplier,
MaterialGroup,
PurchaseOrderItemText AS PurchasingText,
I_PurchaseOrderItem._PurchaseOrder.PurchasingOrganization AS PurchasingOrganization,
I_PurchaseOrderItem._PurchaseOrder.PurchasingGroup AS PurchasingGroup,
Plant,
AccountAssignmentCategory,
CompanyCode,
StorageLocation,
_PurchasingCategoryMatlGrp._PurchasingCategory.PurchasingCategory AS PurchasingCategory,
_PurchasingCategoryMatlGrp._PurchasingCategory.PurgCatName AS PurgCatName,
I_PurchaseOrderItem._PurchaseOrder._PurchaseOrderType.PurchasingDocumentType AS PurchasingDocumentType,
I_PurchaseOrderItem._PurchaseOrder._PurchaseOrderType.PurchasingDocumentCategory AS PurchasingDocumentCategory,
_PurchaseOrder._PurchaseOrderType._Text[1: Language = $session.system_language ].PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
_PurgDocumentItemCategory._Text[1: Language = $session.system_language].PurgDocExternalItemCategory AS PurgDocExternalItemCategory,
PurchaseOrderItemCategory,
_PurgDocumentItemCategory._Text[1: Language = $session.system_language ].PurgDocItemCategoryName AS PurgDocItemCategoryName,
I_PurchaseOrderItem._PurchaseOrder.PurchaseOrderDate AS PurchaseOrderDate,
I_PurchaseOrderItem._PurchaseOrder.CreatedByUser AS CreatedByUser,
I_PurchaseOrderItem._PurchaseOrder._CreatedByUser.UserDescription AS UserDescription,
NetPriceAmount,
cast(_POItemNextDeliveryCalc.ScheduleLineOpenQuantity as vdm_openpurchaseorderquantity) AS OpenPurchaseOrderQuantity,
cast(NetPriceQuantity as vdm_netpricequantity) AS NetPriceQuantity,
I_PurchaseOrderItem._PurchaseOrder.CreationDate AS CreationDate
FROM I_PurchaseOrderItem
LEFT OUTER JOIN P_PurReqTrkAggrGRInv AS _PurReqTrkAggrGRInv ON _PurReqTrkAggrGRInv.PurchaseOrder = PurchaseOrder AND _PurReqTrkAggrGRInv.PurchaseOrderItem = PurchaseOrderItem -- association [1..1]
LEFT OUTER JOIN I_PurchasingCategoryMatlGroup AS _PurchasingCategoryMatlGrp ON MaterialGroup = _PurchasingCategoryMatlGrp.MaterialGroup -- association [1..1]
LEFT OUTER JOIN R_POItemNextDeliveryCalc AS _POItemNextDeliveryCalc ON PurchaseOrder = _POItemNextDeliveryCalc.PurchaseOrder AND PurchaseOrderItem = _POItemNextDeliveryCalc.PurchaseOrderItem -- association [1..1]
LEFT OUTER JOIN C_MM_AccountAssignCatValueHelp AS _AccAssignValHelp ON _AccAssignValHelp.AccountAssignmentCategory = AccountAssignmentCategory -- association [0..1]
LEFT OUTER JOIN I_ProcmtBlockedSupplier AS _ProcmtBlockedSupplier ON _ProcmtBlockedSupplier.PurchasingIsBlockedForSupplier = 'X' -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [1..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON purchasingorganization = _PurchasingOrganization.PurchasingOrganization -- association [1..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON purchasinggroup = _PurchasingGroup.PurchasingGroup -- 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