P_SRVCConfForOrder

DDL: P_SRVCCONFFORORDER SQL: PSRVCCONFORDER Type: view COMPOSITE

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

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentItemEnhcd I_ServiceDocumentItemEnhcd from

Annotations (10)

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

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY ServiceObjectType ServiceObjectType
KEY ServiceDocument ServiceDocument
KEY ServiceDocumentItem ServiceDocumentItem
ServiceConfirmation
@AbapCatalog.sqlViewName: 'PSRVCCONFORDER'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@VDM.private: true
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #XL
//@EndUserText.label: 'Maps Maximun One confirmation per order'

define view P_SRVCConfForOrder
  as select from I_ServiceDocumentItemEnhcd
{
  key  ServiceObjectType,
  key  ServiceDocument,
  key  ServiceDocumentItem,
       max(_ServiceDocItmSuccssr_2._ServiceDocItm.ServiceDocument) as ServiceConfirmation
}
where
  ServiceObjectType = 'BUS2000116'
group by
  ServiceObjectType,
  ServiceDocument,
  ServiceDocumentItem