I_SubscriptionContractDuration

DDL: I_SUBSCRIPTIONCONTRACTDURATION Type: view_entity COMPOSITE

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)

SourceAliasJoin Type
I_ServiceDocumentDuration I_ServiceDocumentDuration from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_SrvcDocDurationUnitText _SrvcDocDurationUnitText $projection.SubscrpnContrTimeDurnUnit = _SrvcDocDurationUnitText.SrvcDocDurationUnit and _SrvcDocDurationUnitText.Language = $session.system_language

Annotations (8)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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":""
}
}*/