P_SrvcOrdRefServiceContract

DDL: P_SRVCORDREFSERVICECONTRACT SQL: PSRVCORDREFCONTR Type: view COMPOSITE

P_SrvcOrdRefServiceContract is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentPredecessor) and exposes 5 fields with key fields ServiceOrder, ReferenceServiceContract. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentPredecessor I_ServiceDocumentPredecessor from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_ServiceDocumentEnhcd _ServiceOrder $projection.ServiceOrderUUID = _ServiceOrder.ServiceDocumentUUID

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PSRVCORDREFCONTR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY ServiceOrder _ServiceOrder ServiceDocument
KEY ReferenceServiceContract _ServiceDoc ServiceDocument
ServiceOrderUUID ServiceDocumentUUID
ServiceObjectType ServiceObjectType
ServiceDocumentIsQuotation _ServiceOrder ServiceDocumentIsQuotation
@AbapCatalog.sqlViewName: 'PSRVCORDREFCONTR'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE

@ObjectModel: {
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #B,
     sizeCategory:   #XL
   }
}

@VDM: {
    viewType: #COMPOSITE,
    private: true
}
define view P_SrvcOrdRefServiceContract
  as select from I_ServiceDocumentPredecessor
  association [0..1] to I_ServiceDocumentEnhcd as _ServiceOrder on $projection.ServiceOrderUUID = _ServiceOrder.ServiceDocumentUUID
{

  key _ServiceOrder.ServiceDocument as ServiceOrder,
  key _ServiceDoc.ServiceDocument   as ReferenceServiceContract,
      ServiceDocumentUUID           as ServiceOrderUUID,
      ServiceObjectType,
      _ServiceOrder.ServiceDocumentIsQuotation

}
where
      ServiceDocPrdcssrBusObjType              = 'BUS2000112'
  and ServiceObjectType                        = 'BUS2000116'
  and _ServiceOrder.ServiceDocumentIsQuotation is initial
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SERVICEDOCUMENTENHCD",
"I_SERVICEDOCUMENTPREDECESSOR"
],
"ASSOCIATED":
[
"I_SERVICEDOCUMENTENHCD"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/