P_SrvcContrDays

DDL: P_SRVCCONTRDAYS SQL: PSRVCCONTRCTDAYS Type: view COMPOSITE

P_SrvcContrDays is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 8 fields with key fields ServiceObjectType, ServiceDocument.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentEnhcd I_ServiceDocumentEnhcd from

Annotations (10)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PSRVCCONTRCTDAYS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY ServiceObjectType ServiceObjectType Object Type
KEY ServiceDocument ServiceDocument Transaction ID
ServiceDocumentDescription ServiceDocumentDescription
ServiceDocumentType ServiceDocumentType Transaction Type
ServiceDocumentStatus ServiceDocumentStatus
ServiceContractStartDate ServiceContractStartDate
ServiceContractEndDate ServiceContractEndDate
NumberOfDays

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_SrvcContrDays.
-- 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: PSRVCCONTRCTDAYS

CREATE VIEW P_SrvcContrDays AS
SELECT
  ServiceObjectType,
  ServiceDocument,
  ServiceDocumentDescription,
  ServiceDocumentType,
  ServiceDocumentStatus,
  ServiceContractStartDate,
  ServiceContractEndDate,
  DATS_DAYS_BETWEEN(ServiceContractStartDate,ServiceContractEndDate) AS NumberOfDays
FROM I_ServiceDocumentEnhcd
;