P_BusSolnQtanItemAccptcStatus

DDL: P_BUSSOLNQTANITEMACCPTCSTATUS Type: view_entity COMPOSITE

P_BusSolnQtanItemAccptcStatus is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_BusSolutionQuotationType, I_ServiceDocumentItemEnhcd) and exposes 4 fields with key fields BusinessSolutionQuotation, ServiceDocumentItem, ServiceObjectType.

Data Sources (2)

SourceAliasJoin Type
I_BusSolutionQuotationType BusSolutionQuotationType inner
I_ServiceDocumentItemEnhcd ServiceDocumentItemEnhcd from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY BusinessSolutionQuotation I_ServiceDocumentItemEnhcd ServiceDocument
KEY ServiceDocumentItem I_ServiceDocumentItemEnhcd ServiceDocumentItem
KEY ServiceObjectType I_ServiceDocumentItemEnhcd ServiceObjectType
QuotationIsAccepted I_ServiceDocumentItemEnhcd QuotationIsAccepted
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType:{
  serviceQuality: #X,
  sizeCategory: #S,
  dataClass: #MIXED
}
define view entity P_BusSolnQtanItemAccptcStatus
    as select from I_ServiceDocumentItemEnhcd as ServiceDocumentItemEnhcd
       inner join I_BusSolutionQuotationType   as BusSolutionQuotationType on BusSolutionQuotationType.BusSolutionQuotationType = ServiceDocumentItemEnhcd.ServiceDocumentType
{
  key ServiceDocumentItemEnhcd.ServiceDocument                  as BusinessSolutionQuotation,
  key ServiceDocumentItemEnhcd.ServiceDocumentItem,
  key ServiceDocumentItemEnhcd.ServiceObjectType,
  ServiceDocumentItemEnhcd.QuotationIsAccepted,
  case ServiceDocumentItemEnhcd.QuotationIsAccepted
    when 'N'
       then count(distinct(ServiceDocumentItemEnhcd.ServiceDocumentItem))
       else 0
    end as acceptance_status
}
 group by ServiceDocumentItemEnhcd.ServiceDocument,
          ServiceDocumentItemEnhcd.ServiceDocumentItem,
          ServiceDocumentItemEnhcd.ServiceObjectType,
          ServiceDocumentItemEnhcd.QuotationIsAccepted
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BUSSOLUTIONQUOTATIONTYPE",
"I_SERVICEDOCUMENTITEMENHCD"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/