P_PurchaseOrderCalc

DDL: P_PURCHASEORDERCALC SQL: PPURCHORDERCALC Type: view CONSUMPTION

PurchaseOrderCalc

P_PurchaseOrderCalc is a Consumption CDS View that provides data about "PurchaseOrderCalc" in SAP S/4HANA. It reads from 1 data source (P_PurchasingGroupAnalysis1) and exposes 12 fields with key fields PurchasingOrganization, PurchasingGroup, Supplier, CompanyCode.

Data Sources (1)

SourceAliasJoin Type
P_PurchasingGroupAnalysis1 P_PurchasingGroupAnalysis1 from

Parameters (3)

NameTypeDefault
P_DisplayCurrency displaycurrency
P_StartDate bedat
P_EndDate bedat

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PPURCHORDERCALC view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #CONSUMPTION view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label PurchaseOrderCalc view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY PurchasingOrganization PurchasingOrganization Purchasing Organization
KEY PurchasingGroup PurchasingGroup Purchasing Group
KEY Supplier Supplier Supplier
KEY CompanyCode CompanyCode Receiver Company Code
PurchasingDocumentCategory PurchasingDocumentCategory Doc. Category
PurchasingDocumentStatus PurchasingDocumentStatus Short Description
CalendarYear CalendarYear Year
CalendarMonth CalendarMonth Calendar Month
CalendarQuarter CalendarQuarter Calendar Quarter
CalendarWeek CalendarWeek Calendar Week
PurchasingDocument
PurchasingDocumentItem

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_PurchaseOrderCalc.
-- 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: PPURCHORDERCALC
-- Parameters: P_DisplayCurrency : displaycurrency, P_StartDate : bedat, P_EndDate : bedat

CREATE VIEW P_PurchaseOrderCalc AS
SELECT
  PurchasingOrganization,
  PurchasingGroup,
  Supplier,
  CompanyCode,
  PurchasingDocumentCategory,
  PurchasingDocumentStatus,
  CalendarYear,
  CalendarMonth,
  CalendarQuarter,
  CalendarWeek,
  count( distinct PurchaseOrderItem.PurchasingDocument ) AS PurchasingDocument,
  count( distinct PurchaseOrderItem.PurchasingDocumentItemNo ) AS PurchasingDocumentItem
FROM P_PurchasingGroupAnalysis1
;