R_SrvcContrDurationTP
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)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocument | ServiceContract | inner |
| I_ServiceDocumentDuration | ServiceDuration | from |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA