P_ServiceDocumentRefObject

DDL: P_SERVICEDOCUMENTREFOBJECT Type: view CONSUMPTION

P_ServiceDocumentRefObject is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentRefObject) and exposes 14 fields with key fields ServiceObjectType, ServiceDocument, ServiceDocumentItem.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentRefObject I_ServiceDocumentRefObject from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PSERVDOCREFOBJ view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
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
ClientHandling.algorithm #SESSION_VARIABLE 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
@AbapCatalog:{
sqlViewName: 'PSERVDOCREFOBJ',
compiler.compareFilter: true,
preserveKey:true
}
@AccessControl.authorizationCheck: #NOT_REQUIRED
//@EndUserText.label: 'Service Document Reference Object'

@ObjectModel: {
   representativeKey: 'ServiceDocumentItem',
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #B,
     sizeCategory:   #XL
   }
}
@VDM.private: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #CONSUMPTION

//@VDM: {

//  viewType: #BASIC

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

//}

define view 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'