P_CN_GoldenTaxInvcMappingAgg1

DDL: P_CN_GOLDENTAXINVCMAPPINGAGG1 Type: view COMPOSITE Package: GLO_FIN_TAX_GTI_CN

Aggregation of Tax Invoice Mapping

P_CN_GoldenTaxInvcMappingAgg1 is a Composite CDS View that provides data about "Aggregation of Tax Invoice Mapping" in SAP S/4HANA. It reads from 1 data source (P_CN_GoldenTaxInvcMappingAgg) and exposes 5 fields. It has 1 association to related views. Part of development package GLO_FIN_TAX_GTI_CN.

Data Sources (1)

SourceAliasJoin Type
P_CN_GoldenTaxInvcMappingAgg P_CN_GoldenTaxInvcMappingAgg from

Associations (1)

CardinalityTargetAliasCondition
[1] P_CN_GoldenTaxInvcMappingAgg _Agg $projection.CN_GoldenTaxDocument = _Agg.CN_GoldenTaxDocument and $projection.CN_TaxInvcCode = _Agg.CN_TaxInvcCode and $projection.CN_TaxInvcNmbr = _Agg.CN_TaxInvcNmbr

Annotations (11)

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

Fields (5)

KeyFieldSource TableSource FieldDescription
CN_GoldenTaxDocument CN_GoldenTaxDocument
CN_TaxInvcCode CN_TaxInvcCode
CN_TaxInvcNmbr
LinesOfDoc
_Agg _Agg

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_GoldenTaxInvcMappingAgg1.
-- 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_GoldenTaxInvcMappingAgg1 AS
SELECT
  CN_GoldenTaxDocument,
  CN_TaxInvcCode,
  max(CN_TaxInvcNmbr) AS CN_TaxInvcNmbr,
  sum(LinesOfDoc) AS LinesOfDoc
FROM P_CN_GoldenTaxInvcMappingAgg
LEFT OUTER JOIN P_CN_GoldenTaxInvcMappingAgg AS _Agg ON CN_GoldenTaxDocument = _Agg.CN_GoldenTaxDocument AND CN_TaxInvcCode = _Agg.CN_TaxInvcCode AND CN_TaxInvcNmbr = _Agg.CN_TaxInvcNmbr  -- association [1]
;