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 Document Number
AuthorizationGroup
IsBusinessPurposeCompleted
CANumberOfAuthorizationGroups

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_CADocumentIsBlocked.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PCADOCISBLOCK

CREATE VIEW P_CADocumentIsBlocked AS
SELECT
  CADocumentNumber,
  max(AuthorizationGroup) AS AuthorizationGroup,
  max(IsBusinessPurposeCompleted) AS IsBusinessPurposeCompleted,
  count(distinct AuthorizationGroup) AS CANumberOfAuthorizationGroups
FROM P_CADocumentBPItem
;