C_DspDocFlwServiceOrderItem

DDL: C_DSPDOCFLWSERVICEORDERITEM Type: view_entity CONSUMPTION Package: ODATA_GL_DSP_DOC_FLW

Service Order Item Attributes

C_DspDocFlwServiceOrderItem is a Consumption CDS View that provides data about "Service Order Item Attributes" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentItem) and exposes 12 fields with key fields ServiceOrder, ServiceDocumentItem. Part of development package ODATA_GL_DSP_DOC_FLW.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentItem ServiceOrderItem 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 Order Item Attributes view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY ServiceOrder 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
_ServiceOrderItem _ServiceOrderItem
_SalesOrganization _SalesOrganization
_SoldToParty _SoldToParty
@AccessControl.authorizationCheck: #MANDATORY

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

@VDM.viewType: #CONSUMPTION
@EndUserText.label: 'Service Order Item Attributes'
define view entity C_DspDocFlwServiceOrderItem
  as select from I_ServiceDocumentItem as ServiceOrderItem
  
  association[1..1] to I_ServiceDocumentItem as _ServiceOrderItem 
      on  _ServiceOrderItem.ServiceDocument     = $projection.ServiceOrder 
      and _ServiceOrderItem.ServiceDocumentItem = $projection.ServiceDocumentItem
      and _ServiceOrderItem.ServiceObjectType   = 'BUS2000116'
  
{
  key ServiceOrderItem.ServiceDocument                                  as ServiceOrder,
  key ServiceOrderItem.ServiceDocumentItem,
      ServiceOrderItem.SalesOrganization,
      ServiceOrderItem.SoldToParty,
      tstmp_to_dats(ServiceOrderItem.SrvcDocItmValdtyStartDateTime, $session.user_timezone, $session.client, 'NULL') 
          as ServiceContractStartDate,
      tstmp_to_dats(ServiceOrderItem.SrvcDocItmValdtyEndDateTime, $session.user_timezone, $session.client, 'NULL') 
          as ServiceContractEndDate,
      ServiceOrderItem.ServiceDocItemGrossAmount,
      ServiceOrderItem.TransactionCurrency,
      tstmp_to_dats(ServiceOrderItem.ServiceDocItemCreationDateTime , $session.user_timezone, $session.client, 'NULL')
          as ServiceDocumentCreationDate,
      
      cast( ServiceOrderItem._ServiceDocumentType._ServiceDocumentTypeText[1:Language = $session.system_language].
            ServiceDocumentTypeName as fac_network_graph_description )  as  UI5NetworkGraphDescription,
      
      _ServiceOrderItem,
      _SalesOrganization,
      _SoldToParty
}
where
  ServiceObjectType = 'BUS2000116'
  and ServiceDocumentTemplateType = ''