C_ProductObjPgPurchaseOrder

DDL: C_PRODUCTOBJPGPURCHASEORDER SQL: CPRODOBJPGPRCHOR Type: view CONSUMPTION Package: VDM_MD_PRODUCT_OBJPAGE_APP

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)

SourceAliasJoin Type
I_PurchaseOrderByProduct I_PurchaseOrderByProduct from

Associations (2)

CardinalityTargetAliasCondition
[1..1] C_ProductObjPg _ProductObjPg $projection.Product = _ProductObjPg.Product
[0..1] E_PurchasingDocument _PurchaseOrderExt $projection.PurchaseOrder = _PurchaseOrderExt.PurchasingDocument

Annotations (13)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;