P_CanceledDocWthGRIRFlagNotSet

DDL: P_CANCELEDDOCWTHGRIRFLAGNOTSET SQL: PDOCGRCANCELLED Type: view CONSUMPTION Package: ODATA_MM_ANALYTICS

Purchasing Document filtered by date

P_CanceledDocWthGRIRFlagNotSet is a Consumption CDS View that provides data about "Purchasing Document filtered by date" in SAP S/4HANA. It reads from 2 data sources (P_MatDocHavingRetOrCancel, P_PurchDocWthGRIRFlagNotSet) and exposes 19 fields with key fields PurchasingDocument, PurchasingDocumentItem. It has 6 associations to related views. Part of development package ODATA_MM_ANALYTICS.

Data Sources (2)

SourceAliasJoin Type
P_MatDocHavingRetOrCancel P_MatDocHavingRetOrCancel inner
P_PurchDocWthGRIRFlagNotSet P_PurchDocWthGRIRFlagNotSet from

Parameters (2)

NameTypeDefault
P_StartDate vdm_validitystart
P_EndDate vdm_validityend

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_Material _Material $projection.Material = _Material.Material
[1..1] I_MaterialGroup _MaterialGroup $projection.MaterialGroup = _MaterialGroup.MaterialGroup
[1..1] I_PurchasingOrganization _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[1..1] I_PurchasingGroup _PurchasingGroup $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PDOCGRCANCELLED view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
EndUserText.label Purchasing Document filtered by date view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument PurchDoc PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem PurchDoc PurchasingDocumentItem Purchasing Doc. Item
PurchasingDocumentItemUniqueID PurchDoc PurchasingDocumentItemUniqueID Document Item
Supplier PurchDoc Supplier Supplier
PurchasingOrganization PurchDoc PurchasingOrganization Purchasing Organization
PurchasingDocumentCategory PurchDoc PurchasingDocumentCategory Doc. Category
PurchasingGroup PurchDoc PurchasingGroup Purchasing Group
Material PurchDoc Material Vehicle Model
MaterialGroup PurchDoc MaterialGroup Product Group
Plant PurchDoc Plant Valuation Area
NetPriceAmount NetPriceAmount Net Price
DocumentCurrency DocumentCurrency Document Currency
_Material _Material
_MaterialGroup _MaterialGroup
_PurchasingDocumentCategory _PurchasingDocumentCategory
_Plant _Plant
_PurchasingGroup _PurchasingGroup
_PurchasingOrganization _PurchasingOrganization
_Supplier _Supplier

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_CanceledDocWthGRIRFlagNotSet.
-- 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: PDOCGRCANCELLED
-- Parameters: P_StartDate : vdm_validitystart, P_EndDate : vdm_validityend

CREATE VIEW P_CanceledDocWthGRIRFlagNotSet AS
SELECT
  PurchDoc.PurchasingDocument AS PurchasingDocument,
  PurchDoc.PurchasingDocumentItem AS PurchasingDocumentItem,
  PurchDoc.PurchasingDocumentItemUniqueID AS PurchasingDocumentItemUniqueID,
  PurchDoc.Supplier AS Supplier,
  PurchDoc.PurchasingOrganization AS PurchasingOrganization,
  PurchDoc.PurchasingDocumentCategory AS PurchasingDocumentCategory,
  PurchDoc.PurchasingGroup AS PurchasingGroup,
  PurchDoc.Material AS Material,
  PurchDoc.MaterialGroup AS MaterialGroup,
  PurchDoc.Plant AS Plant,
  NetPriceAmount,
  DocumentCurrency
FROM P_PurchDocWthGRIRFlagNotSet
INNER JOIN P_MatDocHavingRetOrCancel ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [1..1]
LEFT OUTER JOIN I_MaterialGroup AS _MaterialGroup ON MaterialGroup = _MaterialGroup.MaterialGroup  -- association [1..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization  -- association [1..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [1..1]
;