I_CN_GoldenTaxBillingDocument
Golden Tax Billing Document
I_CN_GoldenTaxBillingDocument is a Composite CDS View that provides data about "Golden Tax Billing Document" in SAP S/4HANA. It reads from 1 data source (P_CN_GoldenTaxBillingDocument) and exposes 36 fields with key fields BillingDocument, CN_GoldenTaxCombinationID. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_CN_GoldenTaxBillingDocument | P_CN_GoldenTaxBillingDocument | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Currency | _LocalCurrency | $projection.LocalCurrency = _LocalCurrency.Currency |
| [0..1] | I_Currency | _TaxInvcCrcy | $projection.CN_TaxInvcCrcy = _TaxInvcCrcy.Currency |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | false | view | |
| AbapCatalog.sqlViewName | ICNGTBILDOC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Golden Tax Billing Document | view |
Fields (36)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillingDocument | BillingDocument | SD Document | |
| KEY | CN_GoldenTaxCombinationID | CN_GoldenTaxCombinationID | ||
| CN_GoldenTaxDocumentStatus | CN_GoldenTaxDocumentStatus | |||
| CN_GoldenTaxCustomerType | CN_GoldenTaxCustomerType | |||
| CN_TaxInvcType | CN_TaxInvcType | |||
| CN_GoldenTaxInvoiceMedium | CN_GoldenTaxInvoiceMedium | |||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| PayerParty | PayerParty | Payer | ||
| PayerPartyName | PayerPartyName | Name of Customer | ||
| CN_TaxBuyerRegnNmbr | ||||
| CN_GoldenTaxPyrPtyBusinessType | ||||
| BillingDocumentType | BillingDocumentType | Billing Type | ||
| BillingDocumentCategory | BillingDocumentCategory | BillingCategory | ||
| SDDocumentCategory | SDDocumentCategory | Document Cat. | ||
| CN_GoldenTaxSignOfAmountField | CN_GoldenTaxSignOfAmountField | |||
| CancelledBillingDocument | CancelledBillingDocument | Canceld Bill.Dc | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| Division | Division | Internal Division ID | ||
| BillingDocumentDate | BillingDocumentDate | Billing Date | ||
| CN_GoldenTaxIssuer | CN_GoldenTaxIssuer | |||
| CN_GoldenTaxReceiver | CN_GoldenTaxReceiver | |||
| CN_GoldenTaxReviewer | CN_GoldenTaxReviewer | |||
| CN_GoldenTaxAdditionalNote | CN_GoldenTaxAdditionalNote | |||
| CN_GoldenTaxSendType | CN_GoldenTaxSendType | |||
| CN_TaxInvcNetAmtInInvcCrcy | CN_TaxInvcNetAmtInInvcCrcy | Total Net Amount | ||
| CN_TaxTotTaxAmtInInvcCrcy | CN_TaxTotTaxAmtInInvcCrcy | Tax Amount | ||
| CN_TaxInvcCrcy | CN_TaxInvcCrcy | Currency | ||
| AccountingExchangeRate | AccountingExchangeRate | Exch.Rate Acct. | ||
| ExchangeRateType | ExchangeRateType | Exch. Rate Type | ||
| ExchangeRateDate | ExchangeRateDate | Translatn Date | ||
| LocalCurrency | LocalCurrency | Local Currency | ||
| _LocalCurrency | _LocalCurrency | |||
| _TaxInvcCrcy | _TaxInvcCrcy | |||
| _GTPersonalSetting | _GTPersonalSetting |
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_GoldenTaxBillingDocument.
-- 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_GoldenTaxBillingDocument AS
SELECT
BillingDocument,
CN_GoldenTaxCombinationID,
CN_GoldenTaxDocumentStatus,
CN_GoldenTaxCustomerType,
CN_TaxInvcType,
CN_GoldenTaxInvoiceMedium,
CompanyCode,
SoldToParty,
PayerParty,
PayerPartyName,
cast(TaxNumber5 as ficntax_buyr_reg_nmbr) AS CN_TaxBuyerRegnNmbr,
cast( '' as eiv_ghfqylx ) AS CN_GoldenTaxPyrPtyBusinessType,
BillingDocumentType,
BillingDocumentCategory,
SDDocumentCategory,
CN_GoldenTaxSignOfAmountField,
CancelledBillingDocument,
SalesOrganization,
DistributionChannel,
Division,
BillingDocumentDate,
CN_GoldenTaxIssuer,
CN_GoldenTaxReceiver,
CN_GoldenTaxReviewer,
CN_GoldenTaxAdditionalNote,
CN_GoldenTaxSendType,
CN_TaxInvcNetAmtInInvcCrcy,
CN_TaxTotTaxAmtInInvcCrcy,
CN_TaxInvcCrcy,
AccountingExchangeRate,
ExchangeRateType,
ExchangeRateDate,
LocalCurrency
FROM P_CN_GoldenTaxBillingDocument
LEFT OUTER JOIN I_Currency AS _LocalCurrency ON LocalCurrency = _LocalCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _TaxInvcCrcy ON CN_TaxInvcCrcy = _TaxInvcCrcy.Currency -- association [0..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