P_ServiceDocumentRefObject

DDL: P_SERVICEDOCUMENTREFOBJECT Type: view_entity CONSUMPTION Package: CRMS4_SERV_FIORI_UI

Service Document Reference Object

P_ServiceDocumentRefObject is a Consumption CDS View that provides data about "Service Document Reference Object" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentRefObject) and exposes 14 fields with key fields ServiceObjectType, ServiceDocument, ServiceDocumentItem. Part of development package CRMS4_SERV_FIORI_UI.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentRefObject I_ServiceDocumentRefObject from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.representativeKey ServiceDocumentItem view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY ServiceObjectType ServiceObjectType
KEY ServiceDocument ServiceDocument
KEY ServiceDocumentItem ServiceDocumentItem
ServiceReferenceObjectType ServiceReferenceObjectType
ServiceReferenceObjectUUID ServiceReferenceObjectUUID
ProductID ProductID
SrvcRefObjIsMainObject SrvcRefObjIsMainObject
ProductUUID ProductUUID
SerialNumber SerialNumber
Equipment Equipment
FunctionalLocation FunctionalLocation
_Equipment _Equipment
_Product _Product
_FunctionalLocation _FunctionalLocation
@AccessControl.authorizationCheck: #NOT_REQUIRED
//@EndUserText.label: 'Service Document Reference Object'

@ObjectModel: {
   representativeKey: 'ServiceDocumentItem',
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #B,
     sizeCategory:   #XL
   }
}
//@Analytics.technicalName: 'PSERVDOCREFOBJ'

@VDM.private: true
@VDM.viewType: #CONSUMPTION

//@VDM: {

//  viewType: #BASIC

//  //lifecycle.contract.type: #PUBLIC_LOCAL_API

//}

define view entity P_ServiceDocumentRefObject
  as select from I_ServiceDocumentRefObject
{
  key ServiceObjectType,
  key ServiceDocument,
  key ServiceDocumentItem,
      ServiceReferenceObjectType,
      case  ServiceReferenceObjectType
      when 'B' then 'EAMS_FL'
      when 'C' then 'EAMS_EQUI'
      end as TechObjIsEquipOrFuncnlLoc,
      ServiceReferenceObjectUUID,
      ProductID,
      SrvcRefObjIsMainObject,
      ProductUUID,
      SerialNumber,
      Equipment,
      FunctionalLocation,
      _Equipment,
      _Product,
      _FunctionalLocation
}
where
  SrvcRefObjIsMainObject = 'X'