P_CN_GoldenTaxSettlmtDocItem

DDL: P_CN_GOLDENTAXSETTLMTDOCITEM Type: view COMPOSITE

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)

SourceAliasJoin Type
I_SettlmtDocItem I_SettlmtDocItem from

Associations (5)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;