I_SubscriptionContractDuration
Duration of Subscription Contract
I_SubscriptionContractDuration is a Composite CDS View that provides data about "Duration of Subscription Contract" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentDuration) and exposes 6 fields with key fields SubscriptionContract, SubscrpnContrTmeDurnType. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentDuration | I_ServiceDocumentDuration | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SrvcDocDurationUnitText | _SrvcDocDurationUnitText | $projection.SubscrpnContrTimeDurnUnit = _SrvcDocDurationUnitText.SrvcDocDurationUnit and _SrvcDocDurationUnitText.Language = $session.system_language |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | Duration of Subscription Contract | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SubscriptionContract | ServiceDocument | ||
| KEY | SubscrpnContrTmeDurnType | SrvcDocDurationType | ||
| SubscrpnContrTmeDurnValue | SrvcDocDurationValue | |||
| SubscrpnContrTimeDurnUnit | SrvcDocDurationUnit | |||
| _DurationText | _DurationText | |||
| _SrvcDocDurationUnitText | _SrvcDocDurationUnitText |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
@EndUserText.label: 'Duration of Subscription Contract'
@VDM: {
viewType: #COMPOSITE,
lifecycle.contract.type: #SAP_INTERNAL_API
}
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #C,
sizeCategory: #L,
dataClass: #TRANSACTIONAL
}
/*+[hideWarning] { "IDS" : [ "CARDINALITY_CHECK" ] } */
define view entity I_SubscriptionContractDuration
as select from I_ServiceDocumentDuration
association [0..1] to I_SrvcDocDurationUnitText as _SrvcDocDurationUnitText on $projection.SubscrpnContrTimeDurnUnit = _SrvcDocDurationUnitText.SrvcDocDurationUnit
and _SrvcDocDurationUnitText.Language = $session.system_language
{
key ServiceDocument as SubscriptionContract,
key SrvcDocDurationType as SubscrpnContrTmeDurnType,
SrvcDocDurationValue as SubscrpnContrTmeDurnValue,
SrvcDocDurationUnit as SubscrpnContrTimeDurnUnit,
/* ASSOCIATION */
_DurationText,
_SrvcDocDurationUnitText
}
where
ServiceObjectType = 'BUS2000266'
and ServiceDocumentItem is initial
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SERVICEDOCUMENTDURATION"
],
"ASSOCIATED":
[
"I_SRVCDOCDURATIONTYPETEXT",
"I_SRVCDOCDURATIONUNITTEXT"
],
"BASE":
[
"I_SERVICEDOCUMENTDURATION"
],
"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