P_SrvcConfOpenPrdcssr

DDL: P_SRVCCONFOPENPRDCSSR SQL: PSRVCPRDCSSROPN Type: view COMPOSITE

P_SrvcConfOpenPrdcssr is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentItemEnhcd) and exposes 7 fields with key fields ServiceObjectType, ServiceConfirmation, ServiceOrder, ParentServiceDocumentItemUUID.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentItemEnhcd I_ServiceDocumentItemEnhcd from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PSRVCPRDCSSROPN 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 (7)

KeyFieldSource TableSource FieldDescription
KEY ServiceObjectType ServiceObjectType
KEY ServiceConfirmation ServiceDocument
KEY ServiceOrder
KEY ParentServiceDocumentItemUUID _ParentServiceDocItem ServiceDocumentItemUUID
ParentServiceDocumentItem _ParentServiceDocItem ServiceDocumentItem
ServiceOrderItem
ConfirmationIsAllowed
@AbapCatalog.sqlViewName: 'PSRVCPRDCSSROPN'
@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
define view P_SrvcConfOpenPrdcssr
  as select from I_ServiceDocumentItemEnhcd
{
  key ServiceObjectType,
  key ServiceDocument                                                 as ServiceConfirmation,
      // key ServiceDocumentItem                                             as ServiceConfirmationItem,

  key _ServiceDocItmPrdcssr_2._ServiceDocItm.ServiceDocument          as ServiceOrder,
  key _ParentServiceDocItem.ServiceDocumentItemUUID                   as ParentServiceDocumentItemUUID,
      _ParentServiceDocItem.ServiceDocumentItem                       as ParentServiceDocumentItem,
      max(_ServiceDocItmPrdcssr_2._ServiceDocItm.ServiceDocumentItem) as ServiceOrderItem,
      'N'                                                             as ConfirmationIsAllowed
}
where
      ServiceObjectType                                                = 'BUS2000117'
  and _ServiceDocItmPrdcssr_2._ServiceDocItm.ServiceDocumentItemIsOpen = 'X'
  and ServiceDocumentItemIsOpen != 'X'
  and _ParentServiceDocItem.ServiceDocumentItem != '000000'
group by
  ServiceObjectType,
  ServiceDocument,
  //ServiceDocumentItem,

  _ParentServiceDocItem.ServiceDocumentItem,
  _ServiceDocItmPrdcssr_2._ServiceDocItm.ServiceDocument,
  _ParentServiceDocItem.ServiceDocumentItemUUID
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SERVICEDOCUMENTITEMENHCD",
"I_SERVICEDOCUMENTITEMPRDCSSR_2"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/