P_CN_GoldenTaxStlmtDocITUnion
P_CN_GoldenTaxStlmtDocITUnion is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_CN_GoldenTaxSettlmtDocItem) and exposes 25 fields with key fields CN_GoldenTaxSourceDocument1, CN_GoldenTaxSourceDocument2, CN_GoldenTaxSourceDocument3, CN_GoldenTaxDataSourceType, CN_GoldenTaxDocument. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_CN_GoldenTaxSettlmtDocItem | P_CN_GoldenTaxSettlmtDocItem | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Currency | _LocalCurrency | $projection.LocalCurrency = _LocalCurrency.Currency |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AbapCatalog.sqlViewName | PCNGTSETDOCITUN | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view |
Fields (25)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CN_GoldenTaxSourceDocument1 | Settlement Doc. | ||
| KEY | CN_GoldenTaxSourceDocument2 | |||
| KEY | CN_GoldenTaxSourceDocument3 | |||
| KEY | CN_GoldenTaxDataSourceType | |||
| KEY | CN_GoldenTaxDocument | CN_GoldenTaxDocument | ||
| KEY | CN_GoldenTaxCombinationID | CN_GoldenTaxCombinationID | ||
| KEY | CN_GoldenTaxDocumentItem | Item | ||
| Product | Product | Product Sold | ||
| ProductName | ProductName | Description | ||
| SizeOrDimensionText | SizeOrDimensionText | Size/dimensions | ||
| ProductGroup | ProductGroup | Product Sold Group | ||
| BilledQuantityUnit | SettlmtQuantityUnit | Settlement Unit | ||
| BilledQuantity | SettlmtQuantity | SettlmtQuantity | ||
| BilledQuantityUnitName | BilledQuantityUnitName | |||
| LocalCurrency | LocalCurrency | Local Currency | ||
| CN_TaxInvcDiscNetAmtInLoclCrcy | ||||
| CN_TaxInvcDiscTaxAmtInLoclCrcy | ||||
| CN_GoldenTaxDdctdAmtInLoclCrcy | ||||
| CN_GoldenTaxClassfctnNumber | CN_GoldenTaxClassfctnNumber | |||
| CN_GoldenTaxPrfntlTreatment | CN_GoldenTaxPrfntlTreatment | |||
| CN_GoldenTaxIdentification | CN_GoldenTaxIdentification | |||
| CN_GoldenTxPrfntlTrtmtNote | CN_GoldenTxPrfntlTrtmtNote | |||
| CN_GoldenTaxCommodityCode | CN_GoldenTaxCommodityCode | |||
| CN_GoldenTaxClassificationDesc | CN_GoldenTaxClassificationDesc | |||
| _LocalCurrency | _LocalCurrency |
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_GoldenTaxStlmtDocITUnion.
-- 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_GoldenTaxStlmtDocITUnion AS
SELECT
cast(SettlmtDoc as eiv_doc_key1 ) AS CN_GoldenTaxSourceDocument1,
cast('' as eiv_doc_key2 ) AS CN_GoldenTaxSourceDocument2,
cast('' as eiv_doc_key3) AS CN_GoldenTaxSourceDocument3,
cast('B' as eiv_doc_type) AS CN_GoldenTaxDataSourceType,
CN_GoldenTaxDocument,
CN_GoldenTaxCombinationID,
cast(SettlmtDocItem as gtposnr) AS CN_GoldenTaxDocumentItem,
Product,
ProductName,
SizeOrDimensionText,
ProductGroup,
SettlmtQuantityUnit AS BilledQuantityUnit,
SettlmtQuantity AS BilledQuantity,
BilledQuantityUnitName,
LocalCurrency,
cast(0 as gtdisc) AS CN_TaxInvcDiscNetAmtInLoclCrcy,
cast(0 as gtdisctax) AS CN_TaxInvcDiscTaxAmtInLoclCrcy,
cast(0 as idgt_deduct_amt) AS CN_GoldenTaxDdctdAmtInLoclCrcy,
CN_GoldenTaxClassfctnNumber,
CN_GoldenTaxPrfntlTreatment,
CN_GoldenTaxIdentification,
CN_GoldenTxPrfntlTrtmtNote,
CN_GoldenTaxCommodityCode,
CN_GoldenTaxClassificationDesc
FROM P_CN_GoldenTaxSettlmtDocItem
LEFT OUTER JOIN I_Currency AS _LocalCurrency ON LocalCurrency = _LocalCurrency.Currency -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA