C_ProductObjPgPurchaseOrder
Product Object Page - Purchase Order
C_ProductObjPgPurchaseOrder is a Consumption CDS View that provides data about "Product Object Page - Purchase Order" in SAP S/4HANA. It reads from 1 data source (I_PurchaseOrderByProduct) and exposes 20 fields with key fields Product, PurchaseOrder. It has 2 associations to related views. Part of development package VDM_MD_PRODUCT_OBJPAGE_APP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchaseOrderByProduct | I_PurchaseOrderByProduct | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_ProductObjPg | _ProductObjPg | $projection.Product = _ProductObjPg.Product |
| [0..1] | E_PurchasingDocument | _PurchaseOrderExt | $projection.PurchaseOrder = _PurchaseOrderExt.PurchasingDocument |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPRODOBJPGPRCHOR | view | |
| EndUserText.label | Product Object Page - Purchase Order | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Consumption.semanticObject | PurchaseOrder | view | |
| UI.presentationVariant.sortOrder.by | PurchaseOrderDate | view | |
| UI.presentationVariant.sortOrder.direction | #DESC | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | Product | Product Sold | |
| KEY | PurchaseOrder | PurchaseOrder | Purchasing Document | |
| Supplier | _PurchaseOrder | Supplier | Supplier | |
| SupplierName | ||||
| SupplyingPlant | _PurchaseOrder | SupplyingPlant | Supplying Plant | |
| SupplyingPlantName | ||||
| PurchasingOrganization | _PurchaseOrder | PurchasingOrganization | Purchasing Organization | |
| PurchaseOrderType | _PurchaseOrder | PurchaseOrderType | PO Type | |
| PurchaseOrderTypeName | ||||
| PurchaseOrderDate | _PurchaseOrder | PurchaseOrderDate | Order Date | |
| DocumentCurrency | _PurchaseOrder | DocumentCurrency | Document Currency | |
| PurchasingGroup | _PurchaseOrder | PurchasingGroup | Purchasing Group | |
| _ProductObjPg | _ProductObjPg | |||
| _PurchaseOrder | _PurchaseOrder | |||
| _Product | _Product | |||
| _Supplier | _PurchaseOrder | _Supplier | ||
| _PurchasingOrganization | _PurchaseOrder | _PurchasingOrganization | ||
| PurchasingOrganizationName | ||||
| CurrencyShortName | ||||
| _DocumentCurrency | _PurchaseOrder | _DocumentCurrency |
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_ProductObjPgPurchaseOrder.
-- 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: CPRODOBJPGPRCHOR
CREATE VIEW C_ProductObjPgPurchaseOrder AS
SELECT
Product,
PurchaseOrder,
_PurchaseOrder.Supplier AS Supplier,
_PurchaseOrder._Supplier.SupplierName AS SupplierName,
_PurchaseOrder.SupplyingPlant AS SupplyingPlant,
_PurchaseOrder._SupplyingPlant.PlantName AS SupplyingPlantName,
_PurchaseOrder.PurchasingOrganization AS PurchasingOrganization,
_PurchaseOrder.PurchaseOrderType AS PurchaseOrderType,
_PurchaseOrder._PurchaseOrderType._Text[1: Language=$session.system_language].PurchasingDocumentTypeName AS PurchaseOrderTypeName,
_PurchaseOrder.PurchaseOrderDate AS PurchaseOrderDate,
_PurchaseOrder.DocumentCurrency AS DocumentCurrency,
_PurchaseOrder.PurchasingGroup AS PurchasingGroup,
_PurchaseOrder._Supplier AS _Supplier,
_PurchaseOrder._PurchasingOrganization AS _PurchasingOrganization,
_PurchaseOrder._PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
_PurchaseOrder._DocumentCurrency._Text[ 1: Language = $session.system_language ].CurrencyShortName AS CurrencyShortName,
_PurchaseOrder._DocumentCurrency AS _DocumentCurrency
FROM I_PurchaseOrderByProduct
LEFT OUTER JOIN C_ProductObjPg AS _ProductObjPg ON Product = _ProductObjPg.Product -- association [1..1]
LEFT OUTER JOIN E_PurchasingDocument AS _PurchaseOrderExt ON PurchaseOrder = _PurchaseOrderExt.PurchasingDocument -- association [0..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