C_DspDocFlwServiceContract

DDL: C_DSPDOCFLWSERVICECONTRACT Type: view_entity CONSUMPTION

Service Contract Attributes

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

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocument I_ServiceDocument from

Annotations (6)

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

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY ServiceDocument I_ServiceDocument ServiceDocument
SalesOrganization I_ServiceDocument SalesOrganization
SoldToParty I_ServiceDocument SoldToParty
ServiceContractStartDate
ServiceContractEndDate
ServiceDocGrossAmount I_ServiceDocument ServiceDocGrossAmount
TransactionCurrency I_ServiceDocument TransactionCurrency
ServiceDocumentCreationDate
_ServiceDocument _ServiceDocument
_SalesOrganization _SalesOrganization
_SoldToParty _SoldToParty
_SoldToPartyToCustomer _SoldToPartyToCustomer
@AccessControl.authorizationCheck: #MANDATORY

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

@VDM.viewType: #CONSUMPTION
@EndUserText.label: 'Service Contract Attributes'
define view entity C_DspDocFlwServiceContract
  as select from I_ServiceDocument
  
  association[1..1] to I_ServiceDocument as _ServiceDocument 
      on $projection.ServiceDocument = _ServiceDocument.ServiceDocument
  
{
  key I_ServiceDocument.ServiceDocument,
      I_ServiceDocument.SalesOrganization,
      I_ServiceDocument.SoldToParty,
      tstmp_to_dats(I_ServiceDocument.ServiceContractStartDateTime, $session.user_timezone, $session.client, 'NULL') 
          as ServiceContractStartDate,
      tstmp_to_dats(I_ServiceDocument.ServiceContractEndDateTime, $session.user_timezone, $session.client, 'NULL') 
          as ServiceContractEndDate,
      I_ServiceDocument.ServiceDocGrossAmount,
      I_ServiceDocument.TransactionCurrency,
      tstmp_to_dats(I_ServiceDocument.ServiceDocCreationDateTime , $session.user_timezone, $session.client, 'NULL')
          as ServiceDocumentCreationDate,
      
      cast( I_ServiceDocument._ServiceDocumentType._ServiceDocumentTypeText[1:Language = $session.system_language].
            ServiceDocumentTypeName as fac_network_graph_description )  as  UI5NetworkGraphDescription,
      
      _ServiceDocument,
      _SalesOrganization,
      _SoldToParty,
      _SoldToPartyToCustomer
}
where
  ServiceObjectType = 'BUS2000112'
  and ServiceDocumentTemplateType = ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SERVICEDOCUMENT",
"I_SERVICEDOCUMENTTYPE",
"I_SERVICEDOCUMENTTYPETEXT"
],
"ASSOCIATED":
[
"I_BUSINESSPARTNER",
"I_BUSINESSPARTNERCUSTOMER",
"I_SALESORGANIZATION",
"I_SERVICEDOCUMENT"
],
"BASE":
[
"I_SERVICEDOCUMENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/