C_DspDocFlwServiceContractItem

DDL: C_DSPDOCFLWSERVICECONTRACTITEM Type: view_entity CONSUMPTION

Service Contract Item Attributes

C_DspDocFlwServiceContractItem is a Consumption CDS View that provides data about "Service Contract Item Attributes" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentItem) and exposes 12 fields with key fields ServiceDocument, ServiceDocumentItem.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentItem ServiceContractItem from

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
EndUserText.label Service Contract Item Attributes view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY ServiceDocument I_ServiceDocumentItem ServiceDocument
KEY ServiceDocumentItem I_ServiceDocumentItem ServiceDocumentItem
SalesOrganization I_ServiceDocumentItem SalesOrganization
SoldToParty I_ServiceDocumentItem SoldToParty
ServiceContractStartDate
ServiceContractEndDate
ServiceDocItemGrossAmount I_ServiceDocumentItem ServiceDocItemGrossAmount
TransactionCurrency I_ServiceDocumentItem TransactionCurrency
ServiceDocumentCreationDate
_ServiceContractItem _ServiceContractItem
_SalesOrganization _SalesOrganization
_SoldToParty _SoldToParty
@AccessControl.authorizationCheck: #MANDATORY

@ObjectModel.usageType:{
  serviceQuality: #B,
  sizeCategory: #XXL,
  dataClass: #MIXED }

@VDM.viewType: #CONSUMPTION
@EndUserText.label: 'Service Contract Item Attributes'
define view entity C_DspDocFlwServiceContractItem
  as select from I_ServiceDocumentItem as ServiceContractItem
  
  association[1..1] to I_ServiceDocumentItem as _ServiceContractItem 
      on  _ServiceContractItem.ServiceDocument     = $projection.ServiceDocument 
      and _ServiceContractItem.ServiceDocumentItem = $projection.ServiceDocumentItem
      and _ServiceContractItem.ServiceObjectType   = 'BUS2000112'
  
{
  key ServiceContractItem.ServiceDocument,
  key ServiceContractItem.ServiceDocumentItem,
      ServiceContractItem.SalesOrganization,
      ServiceContractItem.SoldToParty,
      tstmp_to_dats(ServiceContractItem.SrvcDocItmValdtyStartDateTime, $session.user_timezone, $session.client, 'NULL') 
          as ServiceContractStartDate,
      tstmp_to_dats(ServiceContractItem.SrvcDocItmValdtyEndDateTime, $session.user_timezone, $session.client, 'NULL') 
          as ServiceContractEndDate,
      ServiceContractItem.ServiceDocItemGrossAmount,
      ServiceContractItem.TransactionCurrency,
      tstmp_to_dats(ServiceContractItem.ServiceDocItemCreationDateTime , $session.user_timezone, $session.client, 'NULL')
          as ServiceDocumentCreationDate,
      
      cast( ServiceContractItem._ServiceDocumentType._ServiceDocumentTypeText[1:Language = $session.system_language].
            ServiceDocumentTypeName as fac_network_graph_description )  as  UI5NetworkGraphDescription,
      
      _ServiceContractItem,
      _SalesOrganization,
      _SoldToParty
}
where
  ServiceObjectType = 'BUS2000112'
  and ServiceDocumentTemplateType = ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SERVICEDOCUMENTITEM",
"I_SERVICEDOCUMENTTYPE",
"I_SERVICEDOCUMENTTYPETEXT"
],
"ASSOCIATED":
[
"I_BUSINESSPARTNER",
"I_SALESORGANIZATION",
"I_SERVICEDOCUMENTITEM"
],
"BASE":
[
"I_SERVICEDOCUMENTITEM"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/