I_CN_GoldenTaxInvoiceBasic

DDL: I_CN_GOLDENTAXINVOICEBASIC Type: view BASIC

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.

Data Sources (1)

SourceAliasJoin Type
txi_hdr txi_hdr from

Annotations (12)

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

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