C_ProcurementSmartFilter

DDL: C_PROCUREMENTSMARTFILTER SQL: CPROCMTSMRTFLT Type: view CONSUMPTION

Global Filter for Procurement Overview Page

C_ProcurementSmartFilter is a Consumption CDS View that provides data about "Global Filter for Procurement Overview Page" in SAP S/4HANA. It reads from 2 data sources (I_PurchasingDocumentItem, I_PurchasingDocument) and exposes 1 field. It has 9 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_PurchasingDocumentItem _PurchasingDocumentItem inner
I_PurchasingDocument PurchasingDocument from

Parameters (1)

NameTypeDefault
P_DisplayCurrency displaycurrency

Associations (9)

CardinalityTargetAliasCondition
[0..1] C_PurchasingGroupValueHelp _PurchasingGroup PurchasingDocument.PurchasingGroup = _PurchasingGroup.PurchasingGroup
[0..1] C_PurchasingOrgValueHelp _PurchasingOrganization PurchasingDocument.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[0..1] C_MM_CompanyCodeValueHelp _CompanyCode PurchasingDocument.CompanyCode = _CompanyCode.CompanyCode
[0..1] C_MM_PlantValueHelp _Plant _PurchasingDocumentItem.Plant = _Plant.Plant and PurchasingDocument.PurchasingOrganization = _Plant.PurchasingOrganization
[0..1] C_MM_SupplierValueHelp _Supplier PurchasingDocument.Supplier = _Supplier.Supplier and $projection.CompanyCode = _Supplier.CompanyCode
[1..1] C_MM_MaterialValueHelp _Material _PurchasingDocumentItem.Material = _Material.Material and _PurchasingDocumentItem.Plant = _Material.Plant
[0..1] C_MM_MaterialGroupValueHelp _MaterialGroup _PurchasingDocumentItem.MaterialGroup = _MaterialGroup.MaterialGroup
[0..1] C_PurchasingCategoryValueHelp _PurchasingCategory _PurchasingCategoryMatlGroup.PurgCatUUID = _PurchasingCategory.PurgCatUUID and $projection.purchasingcategory = _PurchasingCategory.PurchasingCategory
[0..1] I_Currency _DocumentCurrency $projection.DocumentCurrency = _DocumentCurrency.Currency

Annotations (11)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
AbapCatalog.sqlViewName CPROCMTSMRTFLT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Global Filter for Procurement Overview Page view
Metadata.allowExtensions true view
VDM.viewType #CONSUMPTION view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view

Fields (1)

KeyFieldSource TableSource FieldDescription
PurgCatName Purchasing Organization

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_ProcurementSmartFilter.
-- 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: CPROCMTSMRTFLT
-- Parameters: P_DisplayCurrency : displaycurrency

CREATE VIEW C_ProcurementSmartFilter AS
SELECT
  entity: { name:'I_Currency', element:'Currency' AS PurgCatName
FROM I_PurchasingDocument AS PurchasingDocument
INNER JOIN I_PurchasingDocumentItem AS _PurchasingDocumentItem ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN C_PurchasingGroupValueHelp AS _PurchasingGroup ON PurchasingDocument.PurchasingGroup = _PurchasingGroup.PurchasingGroup  -- association [0..1]
LEFT OUTER JOIN C_PurchasingOrgValueHelp AS _PurchasingOrganization ON PurchasingDocument.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization  -- association [0..1]
LEFT OUTER JOIN C_MM_CompanyCodeValueHelp AS _CompanyCode ON PurchasingDocument.CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN C_MM_PlantValueHelp AS _Plant ON _PurchasingDocumentItem.Plant = _Plant.Plant AND PurchasingDocument.PurchasingOrganization = _Plant.PurchasingOrganization  -- association [0..1]
LEFT OUTER JOIN C_MM_SupplierValueHelp AS _Supplier ON PurchasingDocument.Supplier = _Supplier.Supplier AND CompanyCode = _Supplier.CompanyCode  -- association [0..1]
LEFT OUTER JOIN C_MM_MaterialValueHelp AS _Material ON _PurchasingDocumentItem.Material = _Material.Material AND _PurchasingDocumentItem.Plant = _Material.Plant  -- association [1..1]
LEFT OUTER JOIN C_MM_MaterialGroupValueHelp AS _MaterialGroup ON _PurchasingDocumentItem.MaterialGroup = _MaterialGroup.MaterialGroup  -- association [0..1]
LEFT OUTER JOIN C_PurchasingCategoryValueHelp AS _PurchasingCategory ON _PurchasingCategoryMatlGroup.PurgCatUUID = _PurchasingCategory.PurgCatUUID AND purchasingcategory = _PurchasingCategory.PurchasingCategory  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _DocumentCurrency ON DocumentCurrency = _DocumentCurrency.Currency  -- association [0..1]
;