I_CN_GoldenTaxDocumentItmBasic

DDL: I_CN_GOLDENTAXDOCUMENTITMBASIC Type: view BASIC

China Golden Tax Document Item

I_CN_GoldenTaxDocumentItmBasic is a Basic CDS View that provides data about "China Golden Tax Document Item" in SAP S/4HANA. It reads from 1 data source (eiv_gtd_itm) and exposes 25 fields with key field CN_GoldenTaxItemUUID. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
eiv_gtd_itm eiv_gtd_itm from

Associations (1)

CardinalityTargetAliasCondition
[1] I_CN_GoldenTaxDocumentBasic _GTDHeader $projection.CN_GoldenTaxUUID = _GTDHeader.CN_GoldenTaxUUID

Annotations (12)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName ICNGTDITEMBAS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label China Golden Tax Document Item view

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY CN_GoldenTaxItemUUID gtd_item_uuid GT Doc. Item UUID
CN_GoldenTaxUUID gtd_header_uuid GT Doc. Header UUID
CN_GoldenTaxDocument gtd_nmbr GT Doc No
CN_GoldenTaxDocumentItem gtd_item_nmbr Item Number
Product matl_nmbr Material
ProductGroup matl_group Material Group
ProductName matl_desc Goods Service Name
SizeOrDimensionText matl_spec Specification Model
BilledQuantityUnit unit_of_msr Base Unit
BilledQuantity blld_qty Quantity Billed
BilledQuantityUnitName unit_of_msr_desc Uni.Measure
NetAmount net_value Own Net Val
TaxAmount tax_amount VAT Amount Type
CN_TaxInvcDiscNetAmtInLoclCrcy disc_amount Discount
CN_TaxInvcDiscTaxAmtInLoclCrcy disc_tax_amount Tax Amount
CN_GoldenTaxDdctdAmtInLoclCrcy deductions Deduction Amount
CN_GoldenTaxUnitPrice unit_price Unit Price Bfr Disc
CN_GoldenTaxClassfctnNumber matl_code Tax Classificat. No.
CN_GoldenTaxPrfntlTreatment discount_flag Preferent. Treatment
CN_GoldenTaxIdentification zerotax_flag Zero Tax Rate Idn
CN_GoldenTxPrfntlTrtmtNote discount_note Pref. Treatment Desc
CN_GoldenTaxCommodityCode entrcomm_code Internal Matl No.
CN_GoldenTaxClassificationDesc matl_cat_name Desc. of Tax Cls. No
LocalCurrency _GTDHeader LocalCurrency Local Currency
_GTDHeader _GTDHeader

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 I_CN_GoldenTaxDocumentItmBasic.
-- 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 I_CN_GoldenTaxDocumentItmBasic AS
SELECT
  gtd_item_uuid AS CN_GoldenTaxItemUUID,
  gtd_header_uuid AS CN_GoldenTaxUUID,
  gtd_nmbr AS CN_GoldenTaxDocument,
  gtd_item_nmbr AS CN_GoldenTaxDocumentItem,
  matl_nmbr AS Product,
  matl_group AS ProductGroup,
  matl_desc AS ProductName,
  matl_spec AS SizeOrDimensionText,
  unit_of_msr AS BilledQuantityUnit,
  blld_qty AS BilledQuantity,
  unit_of_msr_desc AS BilledQuantityUnitName,
  net_value AS NetAmount,
  tax_amount AS TaxAmount,
  disc_amount AS CN_TaxInvcDiscNetAmtInLoclCrcy,
  disc_tax_amount AS CN_TaxInvcDiscTaxAmtInLoclCrcy,
  deductions AS CN_GoldenTaxDdctdAmtInLoclCrcy,
  unit_price AS CN_GoldenTaxUnitPrice,
  matl_code AS CN_GoldenTaxClassfctnNumber,
  discount_flag AS CN_GoldenTaxPrfntlTreatment,
  zerotax_flag AS CN_GoldenTaxIdentification,
  discount_note AS CN_GoldenTxPrfntlTrtmtNote,
  entrcomm_code AS CN_GoldenTaxCommodityCode,
  matl_cat_name AS CN_GoldenTaxClassificationDesc,
  _GTDHeader.LocalCurrency AS LocalCurrency
FROM eiv_gtd_itm
LEFT OUTER JOIN I_CN_GoldenTaxDocumentBasic AS _GTDHeader ON CN_GoldenTaxUUID = _GTDHeader.CN_GoldenTaxUUID  -- association [1]
;