P_SourcesOfSupplyMaxDateCount

DDL: P_SOURCESOFSUPPLYMAXDATECOUNT SQL: PSOSMAXDATECOUNT Type: view COMPOSITE Package: VDM_MM_PUR_SOS

Calc. of latest creat. date and max count on match level

P_SourcesOfSupplyMaxDateCount is a Composite CDS View that provides data about "Calc. of latest creat. date and max count on match level" in SAP S/4HANA. Part of development package VDM_MM_PUR_SOS.

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PSOSMAXDATECOUNT view
ClientDependent true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY Supplier Supplier Supplier
KEY Plant Plant Valuation Area
KEY PurchasingOrganization PurchasingOrganization Purchasing Organization
KEY Material Material Vehicle Model
PurchasingDocumentCount
LastSuppliedDate

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_SourcesOfSupplyMaxDateCount.
-- 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: PSOSMAXDATECOUNT

CREATE VIEW P_SourcesOfSupplyMaxDateCount AS
SELECT
  Supplier,
  Plant,
  PurchasingOrganization,
  Material,
  count(*) AS PurchasingDocumentCount,
  max(CreationDate) AS LastSuppliedDate
;