P_CN_GoldenTaxSettlmtDocItem
P_CN_GoldenTaxSettlmtDocItem is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_SettlmtDocItem) and exposes 27 fields with key fields SettlmtDoc, SettlmtDocItem. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SettlmtDocItem | I_SettlmtDocItem | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_CN_GoldenTaxSettlmtDocBasic | _Header | $projection.SettlmtDoc = _Header.SettlmtDoc |
| [0..1] | I_CN_GoldenTaxPersonalSetting | _GTPersonalSetting | _GTPersonalSetting.UserID = $session.user |
| [0..1] | I_CN_GoldenTaxMatlClsfctnNmbr | _MatClfnNmbrByGroupMatNmbr | $projection.Product = _MatClfnNmbrByGroupMatNmbr.Product and $projection.ProductGroup = _MatClfnNmbrByGroupMatNmbr.ProductGroup |
| [0..1] | I_CN_GoldenTaxMatlClsfctnNmbr | _MatClfnNmbrByGroup | $projection.ProductGroup = _MatClfnNmbrByGroup.ProductGroup and _MatClfnNmbrByGroup.Product is initial |
| [0..1] | I_CN_GoldenTaxMatlClsfctnNmbr | _MatClfnNmbrByMatNmbr | $projection.Product = _MatClfnNmbrByMatNmbr.Product and _MatClfnNmbrByMatNmbr.ProductGroup is initial |
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 | PCNGTSETDOCIT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view |
Fields (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SettlmtDoc | SettlmtDoc | Settlement Doc. | |
| KEY | SettlmtDocItem | SettlmtDocItem | Item | |
| CN_GoldenTaxDocument | _Header | CN_GoldenTaxDocument | ||
| CN_GoldenTaxCombinationID | _Header | CN_GoldenTaxCombinationID | ||
| Product | Product | Product Sold | ||
| ProductName | ||||
| SizeOrDimensionText | _Product | SizeOrDimensionText | Size/dimensions | |
| ProductGroup | ProductGroup | Product Sold Group | ||
| SettlmtQuantity | SettlmtQuantity | SettlmtQuantity | ||
| SettlmtQuantityUnit | SettlmtQuantityUnit | Settlement Unit | ||
| ExchangeRateDate | _Header | ExchangeRateDate | Translatn Date | |
| LocalCurrency | _Header | LocalCurrency | Local Currency | |
| CustomerItemNetAmount | CustomerItemNetAmount | Customer Item Net Amount | ||
| CustomerTaxCode | CustomerTaxCode | Customer Tax Code | ||
| CustomerItemTaxAmount | CustomerItemTaxAmount | Customer Item Tax Amount | ||
| SettlmtDocCurrency | SettlmtDocCurrency | Doc. Currency | ||
| NetPriceQuantity | NetPriceQuantity | Price Unit | ||
| CN_GoldenTaxCommodityCode | ||||
| ExchangeRateType | _Header | ExchangeRateType | Exch. Rate Type | |
| CN_GoldenTaxConditionType | _GTPersonalSetting | CN_GoldenTaxConditionType | ||
| _Product | _Product | |||
| _ProductText | _ProductText | |||
| _SettlmtQuantityUnit | _SettlmtQuantityUnit | |||
| _SettlmtDocCurrency | _SettlmtDocCurrency | |||
| _CustomerPricingElement | _CustomerPricingElement | |||
| _GTPersonalSetting | _GTPersonalSetting | |||
| _Header | _Header |
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_GoldenTaxSettlmtDocItem.
-- 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_GoldenTaxSettlmtDocItem AS
SELECT
SettlmtDoc,
SettlmtDocItem,
_Header.CN_GoldenTaxDocument AS CN_GoldenTaxDocument,
_Header.CN_GoldenTaxCombinationID AS CN_GoldenTaxCombinationID,
Product,
_ProductText[1:Language=$session.system_language].ProductName AS ProductName,
_Product.SizeOrDimensionText AS SizeOrDimensionText,
ProductGroup,
SettlmtQuantity,
SettlmtQuantityUnit,
_Header.ExchangeRateDate AS ExchangeRateDate,
_Header.LocalCurrency AS LocalCurrency,
CustomerItemNetAmount,
CustomerTaxCode,
CustomerItemTaxAmount,
SettlmtDocCurrency,
NetPriceQuantity,
cast('' as idgt_entrcomm_code ) AS CN_GoldenTaxCommodityCode,
_Header.ExchangeRateType AS ExchangeRateType,
_GTPersonalSetting.CN_GoldenTaxConditionType AS CN_GoldenTaxConditionType
FROM I_SettlmtDocItem
LEFT OUTER JOIN P_CN_GoldenTaxSettlmtDocBasic AS _Header ON SettlmtDoc = _Header.SettlmtDoc -- association [0..1]
LEFT OUTER JOIN I_CN_GoldenTaxPersonalSetting AS _GTPersonalSetting ON _GTPersonalSetting.UserID = $session.user -- association [0..1]
LEFT OUTER JOIN I_CN_GoldenTaxMatlClsfctnNmbr AS _MatClfnNmbrByGroupMatNmbr ON Product = _MatClfnNmbrByGroupMatNmbr.Product AND ProductGroup = _MatClfnNmbrByGroupMatNmbr.ProductGroup -- association [0..1]
LEFT OUTER JOIN I_CN_GoldenTaxMatlClsfctnNmbr AS _MatClfnNmbrByGroup ON ProductGroup = _MatClfnNmbrByGroup.ProductGroup AND _MatClfnNmbrByGroup.Product is initial -- association [0..1]
LEFT OUTER JOIN I_CN_GoldenTaxMatlClsfctnNmbr AS _MatClfnNmbrByMatNmbr ON Product = _MatClfnNmbrByMatNmbr.Product AND _MatClfnNmbrByMatNmbr.ProductGroup is initial -- 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