P_PurchDocFiltered

DDL: P_PURCHDOCFILTERED SQL: PPURCHDOCFLTR Type: view CONSUMPTION Package: ODATA_MM_ANALYTICS

Purchasing Document filtered by date

P_PurchDocFiltered is a Consumption CDS View that provides data about "Purchasing Document filtered by date" in SAP S/4HANA. It reads from 1 data source (I_PurchasingDocument) and exposes 8 fields with key field PurchasingDocument. Part of development package ODATA_MM_ANALYTICS.

Data Sources (1)

SourceAliasJoin Type
I_PurchasingDocument PurchDoc from

Parameters (2)

NameTypeDefault
P_StartDate vdm_validitystart
P_EndDate vdm_validityend

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PPURCHDOCFLTR 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 (8)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument PurchasingDocument
PurchasingDocumentCategory I_PurchasingDocument PurchasingDocumentCategory
DocumentCurrency I_PurchasingDocument DocumentCurrency
PurchasingDocumentOrderDate I_PurchasingDocument PurchasingDocumentOrderDate
PurchasingGroup I_PurchasingDocument PurchasingGroup
CompanyCode I_PurchasingDocument CompanyCode
PurchasingOrganization I_PurchasingDocument PurchasingOrganization
_PurchasingDocumentCategory _PurchasingDocumentCategory
@AbapCatalog.sqlViewName: 'PPURCHDOCFLTR'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.personalData.blocking: #NOT_REQUIRED
@VDM.private : true
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType : #CONSUMPTION
@EndUserText.label: 'Purchasing Document filtered by date'
define view P_PurchDocFiltered 
with parameters

  P_StartDate       : vdm_validitystart,
  P_EndDate       : vdm_validityend  

as select from I_PurchasingDocument as PurchDoc {

  key  PurchasingDocument  as PurchasingDocument,
       PurchDoc.PurchasingDocumentCategory as PurchasingDocumentCategory,
       PurchDoc.DocumentCurrency as DocumentCurrency,
       PurchDoc.PurchasingDocumentOrderDate,
       PurchDoc.PurchasingGroup as PurchasingGroup,
       PurchDoc.CompanyCode as CompanyCode,
       PurchDoc.PurchasingOrganization as PurchasingOrganization,
       _PurchasingDocumentCategory
  
} where PurchDoc.PurchasingDocumentOrderDate between $parameters.P_StartDate and $parameters.P_EndDate and PurchDoc.IsEndOfPurposeBlocked = ''