R_SrvcOrdItemReferenceObjectTP

DDL: R_SRVCORDITEMREFERENCEOBJECTTP Type: view_entity TRANSACTIONAL Package: CRMS4_SERVICE_ORDER_RAP

Service Order Item Reference Object - TP

R_SrvcOrdItemReferenceObjectTP is a Transactional CDS View that provides data about "Service Order Item Reference Object - TP" in SAP S/4HANA. It reads from 2 data sources (I_ServiceDocumentRefObject, I_ServiceDocumentItem) and exposes 10 fields with key fields ServiceOrder, ServiceOrderItem, ServiceRefObjectSequenceNumber. Part of development package CRMS4_SERVICE_ORDER_RAP.

Data Sources (2)

SourceAliasJoin Type
I_ServiceDocumentRefObject ReferenceObject from
I_ServiceDocumentItem ServiceOrderItem inner

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Service Order Item Reference Object - TP view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY ServiceOrder I_ServiceDocumentRefObject ServiceDocument
KEY ServiceOrderItem I_ServiceDocumentRefObject ServiceDocumentItem
KEY ServiceRefObjectSequenceNumber I_ServiceDocumentRefObject ServiceRefObjectSequenceNumber
SerialNumber I_ServiceDocumentRefObject SerialNumber
ServiceReferenceEquipment I_ServiceDocumentRefObject Equipment
ServiceRefFunctionalLocation
ServiceReferenceProduct I_ServiceDocumentRefObject ProductID
SrvcRefObjIsMainObject I_ServiceDocumentRefObject SrvcRefObjIsMainObject
_ServiceOrderItemTP _ServiceOrderItemTP
_ServiceOrderTP _ServiceOrderTP
@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}
@VDM: {
  viewType: #TRANSACTIONAL,
  lifecycle.contract.type: #SAP_INTERNAL_API
}
@Metadata:
{
  ignorePropagatedAnnotations: true
}
@EndUserText.label: 'Service Order Item Reference Object - TP'
@ObjectModel: {
   usageType: {dataClass:      #TRANSACTIONAL,
                serviceQuality: #B,
                sizeCategory:   #L}
}

define view entity R_SrvcOrdItemReferenceObjectTP
  as select from I_ServiceDocumentRefObject as ReferenceObject
    inner join   I_ServiceDocumentItem      as ServiceOrderItem on  ServiceOrderItem.ServiceDocument                = ReferenceObject.ServiceDocument
                                                                and ServiceOrderItem.ServiceDocumentItem            = ReferenceObject.ServiceDocumentItem
                                                                and ServiceOrderItem.ServiceObjectType              = 'BUS2000116'
                                                                and ServiceOrderItem.ServiceDocumentItemIsQuotation is initial
                                                                and ServiceOrderItem.ServiceDocumentTemplateType    is initial
  association to parent R_ServiceOrderItemTP as _ServiceOrderItemTP on  $projection.ServiceOrder     = _ServiceOrderItemTP.ServiceOrder
                                                                    and $projection.ServiceOrderItem = _ServiceOrderItemTP.ServiceOrderItem
  //added for strict

  association to R_ServiceOrderTP            as _ServiceOrderTP     on  $projection.ServiceOrder = _ServiceOrderTP.ServiceOrder

{

  key ReferenceObject.ServiceDocument                                                  as ServiceOrder,

  key ReferenceObject.ServiceDocumentItem                                              as ServiceOrderItem,

  key ReferenceObject.ServiceRefObjectSequenceNumber                                   as ServiceRefObjectSequenceNumber,

      ReferenceObject.SerialNumber                                                     as SerialNumber,

      ReferenceObject.Equipment                                                        as ServiceReferenceEquipment,

      cast( ReferenceObject.FunctionalLocation as functionallocation preserving type ) as ServiceRefFunctionalLocation,

      ReferenceObject.ProductID                                                        as ServiceReferenceProduct,

      ReferenceObject.SrvcRefObjIsMainObject,

      //Associations


      _ServiceOrderItemTP,

      _ServiceOrderTP //added for strict


}

where
      ReferenceObject.ServiceDocumentItem is not initial