P_CADocumentIsBlocked

DDL: P_CADOCUMENTISBLOCKED SQL: PCADOCISBLOCK Type: view COMPOSITE

P_CADocumentIsBlocked is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_CADocumentBPItem) and exposes 4 fields with key field CADocumentNumber.

Data Sources (1)

SourceAliasJoin Type
P_CADocumentBPItem P_CADocumentBPItem from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PCADOCISBLOCK view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY CADocumentNumber CADocumentNumber
AuthorizationGroup
IsBusinessPurposeCompleted
CANumberOfAuthorizationGroups
@AbapCatalog.sqlViewName: 'PCADOCISBLOCK'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
@VDM.private: true


define view P_CADocumentIsBlocked
  as select from P_CADocumentBPItem
{

  key CADocumentNumber,

      max(AuthorizationGroup)            as AuthorizationGroup,
      max(IsBusinessPurposeCompleted)    as IsBusinessPurposeCompleted,

      count(distinct AuthorizationGroup) as CANumberOfAuthorizationGroups
}
group by
  CADocumentNumber
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_CADOCUMENTBPITEM"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/