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
KEY ServiceDocument ServiceDocument
ServiceDocumentDescription ServiceDocumentDescription
ServiceDocumentType ServiceDocumentType
ServiceDocumentStatus ServiceDocumentStatus
ServiceContractStartDate ServiceContractStartDate
ServiceContractEndDate ServiceContractEndDate
NumberOfDays
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.sqlViewName: 'PSRVCCONTRCTDAYS'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}
//@EndUserText.label: 'Service Contract Days'

@ObjectModel: {
   usageType: {
     dataClass:      #MIXED,
     serviceQuality: #D,
     sizeCategory:   #XXL
   }
   }
@VDM: {
  viewType: #COMPOSITE,
  private:true
}

define view P_SrvcContrDays
  as select from I_ServiceDocumentEnhcd
{
  key ServiceObjectType,
  key ServiceDocument,
      ServiceDocumentDescription,
      ServiceDocumentType,
      ServiceDocumentStatus,
      ServiceContractStartDate,
      ServiceContractEndDate,
      DATS_DAYS_BETWEEN(ServiceContractStartDate,ServiceContractEndDate) as NumberOfDays
}
where
      ServiceObjectType      = 'BUS2000112'
  and ServiceContractEndDate is not initial
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SERVICEDOCUMENTENHCD"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/