I_CN_GoldenTaxDocumentItmBasic
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)
| Source | Alias | Join Type |
|---|---|---|
| eiv_gtd_itm | eiv_gtd_itm | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_CN_GoldenTaxDocumentBasic | _GTDHeader | $projection.CN_GoldenTaxUUID = _GTDHeader.CN_GoldenTaxUUID |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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