C_SiteObjPgPurchaseOrder

DDL: C_SITEOBJPGPURCHASEORDER Type: view CONSUMPTION

Site Object Page - Purchase Order

C_SiteObjPgPurchaseOrder is a Consumption CDS View that provides data about "Site Object Page - Purchase Order" in SAP S/4HANA. It reads from 1 data source (I_PurchaseOrderByReceivingSite) and exposes 16 fields with key fields Site, PurchaseOrder.

Data Sources (1)

SourceAliasJoin Type
I_PurchaseOrderByReceivingSite I_PurchaseOrderByReceivingSite from

Annotations (13)

NameValueLevelField
EndUserText.label Site Object Page - Purchase Order view
AbapCatalog.sqlViewName CSTEOBJPGPRCHORD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.semanticKey PurchaseOrder view
ObjectModel.representativeKey PurchaseOrder view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY Site ReceivingSite Valuation Area
KEY PurchaseOrder PurchaseOrder Purchasing Document
Supplier _PurchaseOrder Supplier Supplier
SupplierName
SupplyingSite
SupplyingSiteName
PurchasingOrganization _PurchaseOrder PurchasingOrganization Purchasing Organization
PurchasingGroup _PurchaseOrder PurchasingGroup Purchasing Group
PurchaseOrderDate _PurchaseOrder PurchaseOrderDate PO Date
PurchaseOrderType _PurchaseOrder PurchaseOrderType PO Type
PurchaseOrderTypeName
_PurchaseOrder _PurchaseOrder
_Supplier _PurchaseOrder _Supplier
_SupplyingPlant _PurchaseOrder _SupplyingPlant
_PurchasingOrganization _PurchaseOrder _PurchasingOrganization
_PurchasingGroup _PurchaseOrder _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 C_SiteObjPgPurchaseOrder.
-- 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 C_SiteObjPgPurchaseOrder AS
SELECT
  ReceivingSite AS Site,
  PurchaseOrder,
  _PurchaseOrder.Supplier AS Supplier,
  _PurchaseOrder._Supplier.SupplierName AS SupplierName,
  cast(_PurchaseOrder.SupplyingPlant as loclb preserving type) AS SupplyingSite,
  _PurchaseOrder._SupplyingPlant.PlantName AS SupplyingSiteName,
  _PurchaseOrder.PurchasingOrganization AS PurchasingOrganization,
  _PurchaseOrder.PurchasingGroup AS PurchasingGroup,
  _PurchaseOrder.PurchaseOrderDate AS PurchaseOrderDate,
  _PurchaseOrder.PurchaseOrderType AS PurchaseOrderType,
  _PurchaseOrder._PurchaseOrderType._Text[1: Language=$session.system_language].PurchasingDocumentTypeName AS PurchaseOrderTypeName,
  _PurchaseOrder._Supplier AS _Supplier,
  _PurchaseOrder._SupplyingPlant AS _SupplyingPlant,
  _PurchaseOrder._PurchasingOrganization AS _PurchasingOrganization,
  _PurchaseOrder._PurchasingGroup AS _PurchasingGroup
FROM I_PurchaseOrderByReceivingSite
;