P_CN_GTDocumentMappingAgg2

DDL: P_CN_GTDOCUMENTMAPPINGAGG2 Type: view COMPOSITE

P_CN_GTDocumentMappingAgg2 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_CN_GTDocumentMappingAgg) and exposes 6 fields.

Data Sources (1)

SourceAliasJoin Type
P_CN_GTDocumentMappingAgg P_CN_GTDocumentMappingAgg from

Annotations (11)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.private true view
AbapCatalog.sqlViewName PCNGTDMAPAGG2 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view

Fields (6)

KeyFieldSource TableSource FieldDescription
CN_GoldenTaxDataSourceType CN_GoldenTaxDataSourceType
CN_GoldenTaxSourceDocument1 CN_GoldenTaxSourceDocument1
CN_GoldenTaxSourceDocument2 CN_GoldenTaxSourceDocument2
CN_GoldenTaxSourceDocument3 CN_GoldenTaxSourceDocument3
BillingDocument BillingDocument SD Document
LinesOfDoc

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_CN_GTDocumentMappingAgg2.
-- 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.

CREATE VIEW P_CN_GTDocumentMappingAgg2 AS
SELECT
  CN_GoldenTaxDataSourceType,
  CN_GoldenTaxSourceDocument1,
  CN_GoldenTaxSourceDocument2,
  CN_GoldenTaxSourceDocument3,
  BillingDocument,
  sum(LinesOfDoc) AS LinesOfDoc
FROM P_CN_GTDocumentMappingAgg
;