I_CN_GoldenTaxInvoiceBasic
China Golden Tax Invoice Header
I_CN_GoldenTaxInvoiceBasic is a Basic CDS View that provides data about "China Golden Tax Invoice Header" in SAP S/4HANA. It reads from 1 data source (txi_hdr) and exposes 29 fields with key field CN_TaxInvcUUID. Part of development package GLO_FIN_TAX_GTI_CN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| txi_hdr | txi_hdr | from |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | ICNGTINVCHDBAC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | China Golden Tax Invoice Header | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CN_TaxInvcUUID | invc_uuid | Invoice UUID | |
| CN_TaxInvcCode | invc_code | VAT Invoice Code | ||
| CN_TaxInvcNmbr | invc_nmbr | VAT Invoice No. | ||
| CN_TaxSellerRegnNmbr | seller_tax_reg_nmbr | Unfd Socl Crdt Code | ||
| CN_TaxBuyerRegnNmbr | buyer_tax_reg_nmbr | Unfd Socl Crdt Code | ||
| CN_TaxInvcType | invc_type | VAT Invoice Type | ||
| CN_TaxInvcDate | invc_iss_date | VAT Invoice Date | ||
| LocalCurrency | invc_crcy_code | Currency | ||
| NetAmount | net_amount | Tax-Exclusive Amount | ||
| TaxAmount | tax_amount | VAT Amount Type | ||
| CN_TaxInvcDiscNetAmtInLoclCrcy | disc_net_amount | Net Amount | ||
| CN_TaxInvcDiscTaxAmtInLoclCrcy | disc_tax_amount | Tax Amount | ||
| CN_TaxInvcIsElectronic | is_elec_flag | E-invoice | ||
| TaxRate | tax_rate | WithholdingRate | ||
| CN_GoldenTaxIsGoodsList | is_goods_list | GT Goods List | ||
| CN_GoldenTaxLastPrintDate | print_date | Print Date | ||
| PayerParty | buyer_nmbr | Customer | ||
| PayerPartyName | buyer_name | Customer Name | ||
| CN_GoldenTaxPyrPtyBankText | buyer_bank | Customer Bank | ||
| CN_GoldenTaxPyrPtyAddrTelText | buyer_addr_tel | Customer Address | ||
| CN_GoldenTaxSellerBankText | seller_bank | Customer Bank | ||
| CN_GoldenTaxSellerAddrTelText | seller_addr_tel | Customer Address | ||
| CN_GoldenTaxRedNoteNumber | red_note_nmbr | Red-Ltr. Notif. No. | ||
| CN_GoldenTaxNote | note | TradeRequest Comment | ||
| CN_GoldenTaxDdctdAmtInLoclCrcy | deductions | Deduction Amount | ||
| CreatedByUser | create_user | User Name | ||
| CreationDateTime | create_time | Time | ||
| LastChangedByUser | change_user | User Name | ||
| ChangedDateTime | change_time | Time Stamp |
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_GoldenTaxInvoiceBasic.
-- 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_GoldenTaxInvoiceBasic AS
SELECT
invc_uuid AS CN_TaxInvcUUID,
invc_code AS CN_TaxInvcCode,
invc_nmbr AS CN_TaxInvcNmbr,
seller_tax_reg_nmbr AS CN_TaxSellerRegnNmbr,
buyer_tax_reg_nmbr AS CN_TaxBuyerRegnNmbr,
invc_type AS CN_TaxInvcType,
invc_iss_date AS CN_TaxInvcDate,
invc_crcy_code AS LocalCurrency,
net_amount AS NetAmount,
tax_amount AS TaxAmount,
disc_net_amount AS CN_TaxInvcDiscNetAmtInLoclCrcy,
disc_tax_amount AS CN_TaxInvcDiscTaxAmtInLoclCrcy,
is_elec_flag AS CN_TaxInvcIsElectronic,
tax_rate AS TaxRate,
is_goods_list AS CN_GoldenTaxIsGoodsList,
print_date AS CN_GoldenTaxLastPrintDate,
buyer_nmbr AS PayerParty,
buyer_name AS PayerPartyName,
buyer_bank AS CN_GoldenTaxPyrPtyBankText,
buyer_addr_tel AS CN_GoldenTaxPyrPtyAddrTelText,
seller_bank AS CN_GoldenTaxSellerBankText,
seller_addr_tel AS CN_GoldenTaxSellerAddrTelText,
red_note_nmbr AS CN_GoldenTaxRedNoteNumber,
note AS CN_GoldenTaxNote,
deductions AS CN_GoldenTaxDdctdAmtInLoclCrcy,
create_user AS CreatedByUser,
create_time AS CreationDateTime,
change_user AS LastChangedByUser,
change_time AS ChangedDateTime
FROM txi_hdr
;
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