R_SrvcContrDurationTP

DDL: R_SRVCCONTRDURATIONTP Type: view_entity TRANSACTIONAL

Service Contract Duration - TP

R_SrvcContrDurationTP is a Transactional CDS View that provides data about "Service Contract Duration - TP" in SAP S/4HANA. It reads from 2 data sources (I_ServiceDocument, I_ServiceDocumentDuration) and exposes 5 fields with key fields ServiceContract, SrvcDocDurationType.

Data Sources (2)

SourceAliasJoin Type
I_ServiceDocument ServiceContract inner
I_ServiceDocumentDuration ServiceDuration from

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
EndUserText.label Service Contract Duration - TP view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY ServiceContract I_ServiceDocumentDuration ServiceDocument
KEY SrvcDocDurationType I_ServiceDocumentDuration SrvcDocDurationType
SrvcDocDurationValue I_ServiceDocumentDuration SrvcDocDurationValue
SrvcDocDurationUnit I_ServiceDocumentDuration SrvcDocDurationUnit
_ServiceContractTP _ServiceContractTP
@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}
@VDM: {
  viewType: #TRANSACTIONAL,
  lifecycle.contract.type: #SAP_INTERNAL_API
}
@EndUserText.label: 'Service Contract Duration - TP'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel: {
  usageType: {dataClass:      #TRANSACTIONAL,
                serviceQuality: #B,
                sizeCategory:   #L}
}
define view entity R_SrvcContrDurationTP
  as select from I_ServiceDocumentDuration as ServiceDuration
//    inner join   R_ServiceContractTP       as ServiceContract on  ServiceDuration.ServiceDocument     = ServiceContract.ServiceContract

//                                                              and ServiceDuration.ServiceObjectType   = ServiceContract.ServiceObjectType

//                                                              and ServiceDuration.ServiceDocumentItem = '000000'

    inner join   I_ServiceDocument  as ServiceContract on  ServiceDuration.ServiceDocument     = ServiceContract.ServiceDocument
                                                       and ServiceDuration.ServiceObjectType   = ServiceContract.ServiceObjectType                                                          
                                                       and ServiceDuration.ServiceDocumentItem = '000000'
                                                       and ServiceContract.ServiceObjectType   = 'BUS2000112'
                                                       
  association to parent R_ServiceContractTP as _ServiceContractTP on $projection.ServiceContract = _ServiceContractTP.ServiceContract
{
  key ServiceDuration.ServiceDocument      as ServiceContract,
  key ServiceDuration.SrvcDocDurationType  as SrvcDocDurationType,
      ServiceDuration.SrvcDocDurationValue as SrvcDocDurationValue,
      ServiceDuration.SrvcDocDurationUnit  as SrvcDocDurationUnit,
      
 //Associations    

      _ServiceContractTP


}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SERVICEDOCUMENT",
"I_SERVICEDOCUMENTDURATION"
],
"ASSOCIATED":
[
"R_SERVICECONTRACTTP"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/