P_CN_GTDocumentMappingAgg

DDL: P_CN_GTDOCUMENTMAPPINGAGG Type: view COMPOSITE

P_CN_GTDocumentMappingAgg is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CN_GoldenTaxDocumentMapping) and exposes 9 fields. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CN_GoldenTaxDocumentMapping I_CN_GoldenTaxDocumentMapping from

Associations (2)

CardinalityTargetAliasCondition
[1] I_CN_GoldenTaxDocument _GTDocument $projection.CN_GoldenTaxDocument = _GTDocument.CN_GoldenTaxDocument
[1..*] I_CN_GoldenTaxDocumentItmBasic _GTDocumentItemBasic $projection.CN_GoldenTaxDocument = _GTDocumentItemBasic.CN_GoldenTaxDocument

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 PCNGTDMAPAGG view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view

Fields (9)

KeyFieldSource TableSource FieldDescription
CN_GoldenTaxDocument CN_GoldenTaxDocument GT Doc No
CN_GoldenTaxCombinationID CN_GoldenTaxCombinationID Combine ID
CN_GoldenTaxDataSourceType CN_GoldenTaxDataSourceType VAT Document Type
CN_GoldenTaxSourceDocument1 CN_GoldenTaxSourceDocument1
CN_GoldenTaxSourceDocument2 CN_GoldenTaxSourceDocument2
CN_GoldenTaxSourceDocument3 CN_GoldenTaxSourceDocument3
LinesOfDoc 1
_GTDocument _GTDocument
_GTDocumentItemBasic _GTDocumentItemBasic

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_GTDocumentMappingAgg.
-- 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_GTDocumentMappingAgg AS
SELECT
  CN_GoldenTaxDocument,
  CN_GoldenTaxCombinationID,
  CN_GoldenTaxDataSourceType,
  CN_GoldenTaxSourceDocument1,
  CN_GoldenTaxSourceDocument2,
  CN_GoldenTaxSourceDocument3,
  1 AS LinesOfDoc
FROM I_CN_GoldenTaxDocumentMapping
LEFT OUTER JOIN I_CN_GoldenTaxDocument AS _GTDocument ON CN_GoldenTaxDocument = _GTDocument.CN_GoldenTaxDocument  -- association [1]
LEFT OUTER JOIN I_CN_GoldenTaxDocumentItmBasic AS _GTDocumentItemBasic ON CN_GoldenTaxDocument = _GTDocumentItemBasic.CN_GoldenTaxDocument  -- association [1..*]
;