I_CN_GoldenTaxBillingDocument

DDL: I_CN_GOLDENTAXBILLINGDOCUMENT Type: view COMPOSITE Package: GLO_FIN_TAX_GTI_CN

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. Part of development package GLO_FIN_TAX_GTI_CN.

Data Sources (1)

SourceAliasJoin Type
P_CN_GoldenTaxBillingDocument P_CN_GoldenTaxBillingDocument from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Currency _LocalCurrency $projection.LocalCurrency = _LocalCurrency.Currency
[0..1] I_Currency _TaxInvcCrcy $projection.CN_TaxInvcCrcy = _TaxInvcCrcy.Currency

Annotations (13)

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

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