I_StRpExternalTaxItemDraftC
Ext Tx Itm for Statry Rptng - Cube
I_StRpExternalTaxItemDraftC is a Composite CDS View (Cube) that provides data about "Ext Tx Itm for Statry Rptng - Cube" in SAP S/4HANA. It reads from 1 data source (I_ExternalTaxItemDraft) and exposes 85 fields with key fields ExternalTaxHeaderUUID, ExternalTaxItemUUID, DraftUUID, CompanyCode, AccountingDocument. It has 1 association to related views. Part of development package GLO_FIN_EXT_TAX_GEN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ExternalTaxItemDraft | Item | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ExternalTaxHeaderDraft | _Header | _Header.ExternalTaxHeaderUUID = Item.ExternalTaxHeaderUUID and _Header.DraftUUID = Item.DraftUUID and _Header.CompanyCode = Item.CompanyCode and _Header.AccountingDocument = Item.AccountingDocument and _Header.FiscalYear = Item.FiscalYear |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #COMPOSITE | view | |
| Analytics.dataCategory | #CUBE | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Ext Tx Itm for Statry Rptng - Cube | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Metadata.allowExtensions | true | view | |
| Analytics.internalName | #LOCAL | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view |
Fields (85)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ExternalTaxHeaderUUID | I_ExternalTaxItemDraft | ExternalTaxHeaderUUID | |
| KEY | ExternalTaxItemUUID | I_ExternalTaxItemDraft | ExternalTaxItemUUID | |
| KEY | DraftUUID | I_ExternalTaxItemDraft | DraftUUID | UUID |
| KEY | CompanyCode | I_ExternalTaxItemDraft | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | I_ExternalTaxItemDraft | AccountingDocument | Journal Entry |
| KEY | FiscalYear | I_ExternalTaxItemDraft | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocumentItem | I_ExternalTaxItemDraft | AccountingDocumentItem | Posting View Item |
| TaxationType | I_ExternalTaxItemDraft | TaxationType | ||
| FiscalPeriod | _Header | FiscalPeriod | Tax period | |
| ReferenceDocumentType | _Header | ReferenceDocumentType | Reference Document Type | |
| OriginalReferenceDocument | _Header | OriginalReferenceDocument | Reference Key | |
| PostingDate | _Header | PostingDate | Posting Date for GR | |
| DocumentDate | _Header | DocumentDate | Journal Entry Date | |
| TaxReportingDate | _Header | TaxReportingDate | Tax Reporting Date | |
| TaxFulfillmentDate | _Header | TaxFulfillmentDate | Tax Settlement Date | |
| AccountingDocumentType | _Header | AccountingDocumentType | Journal Entry Type | |
| ReverseDocument | _Header | ReverseDocument | Reversed With | |
| ReverseDocumentFiscalYear | _Header | ReverseDocumentFiscalYear | Year | |
| IsReversed | _Header | IsReversed | Reversed? | |
| IsReversal | _Header | IsReversal | Reversal doc. | |
| AbsoluteExchangeRate | _Header | AbsoluteExchangeRate | Absolute Exchange Rate | |
| DocumentReferenceID | _Header | DocumentReferenceID | Reference | |
| AlternativeReferenceDocument | _Header | AlternativeReferenceDocument | Alternative Reference Document | |
| AccountingDocumentHeaderText | _Header | AccountingDocumentHeaderText | Doc.Header Text | |
| SenderCompanyCode | _Header | SenderCompanyCode | Sender Company Code | |
| SenderAccountingDocument | _Header | SenderAccountingDocument | Sender Journal Entry | |
| SenderFiscalYear | _Header | SenderFiscalYear | Sender FiscalYr | |
| SenderLogicalSystem | _Header | SenderLogicalSystem | Sender Logical System | |
| AccountingDocumentCategory | _Header | AccountingDocumentCategory | Journal Entry Category | |
| TaxSection | I_ExternalTaxItemDraft | TaxSection | Tax Section | |
| BusinessPlace | I_ExternalTaxItemDraft | BusinessPlace | Business place | |
| DebitCreditCode | I_ExternalTaxItemDraft | DebitCreditCode | Single-Character Flag | |
| FinancialAccountType | I_ExternalTaxItemDraft | FinancialAccountType | Fin. Account Type | |
| Supplier | I_ExternalTaxItemDraft | Supplier | Supplier | |
| Customer | I_ExternalTaxItemDraft | Customer | Sold-to Party | |
| BusinessPartner | I_ExternalTaxItemDraft | BusinessPartner | Issuing Authority | |
| DocumentItemText | I_ExternalTaxItemDraft | DocumentItemText | Text | |
| ClearingDate | I_ExternalTaxItemDraft | ClearingDate | Clearing Date | |
| ClearingJournalEntry | I_ExternalTaxItemDraft | ClearingJournalEntry | Clrng doc. | |
| ClearingJournalEntryFiscalYear | I_ExternalTaxItemDraft | ClearingJournalEntryFiscalYear | Fiscal Year of Clearing Journal Entry | |
| ClearingItem | I_ExternalTaxItemDraft | ClearingItem | Clearing Item | |
| Ledger | I_ExternalTaxItemDraft | Ledger | Ledger | |
| LedgerGroup | I_ExternalTaxItemDraft | LedgerGroup | Ledger Group | |
| GLAccount | I_ExternalTaxItemDraft | GLAccount | General Ledger | |
| SpecialGLCode | I_ExternalTaxItemDraft | SpecialGLCode | Special G/L Ind | |
| SpecialGLTransactionType | I_ExternalTaxItemDraft | SpecialGLTransactionType | Transact.Type | |
| Reference3IDByBusinessPartner | I_ExternalTaxItemDraft | Reference3IDByBusinessPartner | Reference Key 3 | |
| InvoiceReference | I_ExternalTaxItemDraft | InvoiceReference | Invoice Reference | |
| InvoiceReferenceFiscalYear | I_ExternalTaxItemDraft | InvoiceReferenceFiscalYear | Invoice Reference Fiscal Year | |
| InvoiceItemReference | I_ExternalTaxItemDraft | InvoiceItemReference | Item | |
| CompanyCodeCurrency | I_ExternalTaxItemDraft | CompanyCodeCurrency | Local Currency | |
| TransactionCurrency | I_ExternalTaxItemDraft | TransactionCurrency | Transaction Currency | |
| AdditionalCurrency1 | I_ExternalTaxItemDraft | AdditionalCurrency1 | Local curr. 2 | |
| AdditionalCurrency2 | I_ExternalTaxItemDraft | AdditionalCurrency2 | Local curr. 3 | |
| AmountInCompanyCodeCurrency | I_ExternalTaxItemDraft | AmountInCompanyCodeCurrency | Local Crcy Amt | |
| AmountInTransactionCurrency | I_ExternalTaxItemDraft | AmountInTransactionCurrency | Pt Crcy Amt | |
| CashDiscountAmtInCoCodeCrcy | I_ExternalTaxItemDraft | CashDiscountAmtInCoCodeCrcy | Discount Amt | |
| CashDiscountAmount | I_ExternalTaxItemDraft | CashDiscountAmount | CD Amount | |
| TaxCode | I_ExternalTaxItemDraft | TaxCode | Tax Code | |
| VATRegistration | I_ExternalTaxItemDraft | VATRegistration | VAT Registration No. | |
| TaxJurisdiction | I_ExternalTaxItemDraft | TaxJurisdiction | Tax Jurisdiction | |
| TaxRate | I_ExternalTaxItemDraft | TaxRate | Tax Rate | |
| TaxRateValidityStartDate | I_ExternalTaxItemDraft | TaxRateValidityStartDate | Tax Rate Validity Start Date | |
| TaxCountry | I_ExternalTaxItemDraft | TaxCountry | Tax Ctry/Reg. | |
| TaxReturnCountry | I_ExternalTaxItemDraft | TaxReturnCountry | Reporting C/R | |
| LowestLevelTaxJurisdiction | I_ExternalTaxItemDraft | LowestLevelTaxJurisdiction | Jurisdict. Code | |
| ConditionType | I_ExternalTaxItemDraft | ConditionType | Condition type | |
| TaxItemAcctgDocItemRef | I_ExternalTaxItemDraft | TaxItemAcctgDocItemRef | Tax doc. item number | |
| TaxItemGroup | I_ExternalTaxItemDraft | TaxItemGroup | Tax doc. item number | |
| CountryCurrency | I_ExternalTaxItemDraft | CountryCurrency | Currency | |
| TaxBaseAmountInCoCodeCrcy | I_ExternalTaxItemDraft | TaxBaseAmountInCoCodeCrcy | TxBaseAmt CoCodeCrcy | |
| TaxBaseAmountInTransCrcy | I_ExternalTaxItemDraft | TaxBaseAmountInTransCrcy | Value-Added Tax | |
| TaxAmountInCoCodeCrcy | I_ExternalTaxItemDraft | TaxAmountInCoCodeCrcy | Tax Amount in Company Code Currency | |
| TaxAmount | I_ExternalTaxItemDraft | TaxAmount | Tax Amt in Rptg Crcy | |
| TaxAmountInAdditionalCurrency1 | I_ExternalTaxItemDraft | TaxAmountInAdditionalCurrency1 | LC 2 Tax | |
| TaxAmountInAdditionalCurrency2 | I_ExternalTaxItemDraft | TaxAmountInAdditionalCurrency2 | LC 3 Tax | |
| TaxBaseAmtInAdditionalCrcy1 | I_ExternalTaxItemDraft | TaxBaseAmtInAdditionalCrcy1 | LC 2 Base | |
| TaxBaseAmtInAdditionalCrcy2 | I_ExternalTaxItemDraft | TaxBaseAmtInAdditionalCrcy2 | LC 3 Base | |
| TransactionTypeDetermination | I_ExternalTaxItemDraft | TransactionTypeDetermination | Transaction Key | |
| TaxBaseAmountInCountryCrcy | I_ExternalTaxItemDraft | TaxBaseAmountInCountryCrcy | Base Amount | |
| TaxAmountInCountryCrcy | I_ExternalTaxItemDraft | TaxAmountInCountryCrcy | Tax Rept. Crcy | |
| CreationDateTime | Creation Timestamp | |||
| CreatedByUser | I_ExternalTaxItemDraft | CreatedByUser | User Name | |
| LastChangeDateTime | Last Changed Timestamp | |||
| LastChangedByUser | I_ExternalTaxItemDraft | LastChangedByUser | User Name |
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_StRpExternalTaxItemDraftC.
-- 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_StRpExternalTaxItemDraftC AS
SELECT
Item.ExternalTaxHeaderUUID AS ExternalTaxHeaderUUID,
Item.ExternalTaxItemUUID AS ExternalTaxItemUUID,
Item.DraftUUID AS DraftUUID,
Item.CompanyCode AS CompanyCode,
Item.AccountingDocument AS AccountingDocument,
Item.FiscalYear AS FiscalYear,
Item.AccountingDocumentItem AS AccountingDocumentItem,
Item.TaxationType AS TaxationType,
_Header.FiscalPeriod AS FiscalPeriod,
_Header.ReferenceDocumentType AS ReferenceDocumentType,
_Header.OriginalReferenceDocument AS OriginalReferenceDocument,
_Header.PostingDate AS PostingDate,
_Header.DocumentDate AS DocumentDate,
_Header.TaxReportingDate AS TaxReportingDate,
_Header.TaxFulfillmentDate AS TaxFulfillmentDate,
_Header.AccountingDocumentType AS AccountingDocumentType,
_Header.ReverseDocument AS ReverseDocument,
_Header.ReverseDocumentFiscalYear AS ReverseDocumentFiscalYear,
_Header.IsReversed AS IsReversed,
_Header.IsReversal AS IsReversal,
_Header.AbsoluteExchangeRate AS AbsoluteExchangeRate,
_Header.DocumentReferenceID AS DocumentReferenceID,
_Header.AlternativeReferenceDocument AS AlternativeReferenceDocument,
_Header.AccountingDocumentHeaderText AS AccountingDocumentHeaderText,
_Header.SenderCompanyCode AS SenderCompanyCode,
_Header.SenderAccountingDocument AS SenderAccountingDocument,
_Header.SenderFiscalYear AS SenderFiscalYear,
_Header.SenderLogicalSystem AS SenderLogicalSystem,
_Header.AccountingDocumentCategory AS AccountingDocumentCategory,
Item.TaxSection AS TaxSection,
Item.BusinessPlace AS BusinessPlace,
Item.DebitCreditCode AS DebitCreditCode,
Item.FinancialAccountType AS FinancialAccountType,
Item.Supplier AS Supplier,
Item.Customer AS Customer,
Item.BusinessPartner AS BusinessPartner,
Item.DocumentItemText AS DocumentItemText,
Item.ClearingDate AS ClearingDate,
Item.ClearingJournalEntry AS ClearingJournalEntry,
Item.ClearingJournalEntryFiscalYear AS ClearingJournalEntryFiscalYear,
Item.ClearingItem AS ClearingItem,
Item.Ledger AS Ledger,
Item.LedgerGroup AS LedgerGroup,
Item.GLAccount AS GLAccount,
Item.SpecialGLCode AS SpecialGLCode,
Item.SpecialGLTransactionType AS SpecialGLTransactionType,
Item.Reference3IDByBusinessPartner AS Reference3IDByBusinessPartner,
Item.InvoiceReference AS InvoiceReference,
Item.InvoiceReferenceFiscalYear AS InvoiceReferenceFiscalYear,
Item.InvoiceItemReference AS InvoiceItemReference,
Item.CompanyCodeCurrency AS CompanyCodeCurrency,
Item.TransactionCurrency AS TransactionCurrency,
Item.AdditionalCurrency1 AS AdditionalCurrency1,
Item.AdditionalCurrency2 AS AdditionalCurrency2,
Item.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
Item.AmountInTransactionCurrency AS AmountInTransactionCurrency,
Item.CashDiscountAmtInCoCodeCrcy AS CashDiscountAmtInCoCodeCrcy,
Item.CashDiscountAmount AS CashDiscountAmount,
Item.TaxCode AS TaxCode,
Item.VATRegistration AS VATRegistration,
Item.TaxJurisdiction AS TaxJurisdiction,
Item.TaxRate AS TaxRate,
Item.TaxRateValidityStartDate AS TaxRateValidityStartDate,
Item.TaxCountry AS TaxCountry,
Item.TaxReturnCountry AS TaxReturnCountry,
Item.LowestLevelTaxJurisdiction AS LowestLevelTaxJurisdiction,
Item.ConditionType AS ConditionType,
Item.TaxItemAcctgDocItemRef AS TaxItemAcctgDocItemRef,
Item.TaxItemGroup AS TaxItemGroup,
Item.CountryCurrency AS CountryCurrency,
Item.TaxBaseAmountInCoCodeCrcy AS TaxBaseAmountInCoCodeCrcy,
Item.TaxBaseAmountInTransCrcy AS TaxBaseAmountInTransCrcy,
Item.TaxAmountInCoCodeCrcy AS TaxAmountInCoCodeCrcy,
Item.TaxAmount AS TaxAmount,
Item.TaxAmountInAdditionalCurrency1 AS TaxAmountInAdditionalCurrency1,
Item.TaxAmountInAdditionalCurrency2 AS TaxAmountInAdditionalCurrency2,
Item.TaxBaseAmtInAdditionalCrcy1 AS TaxBaseAmtInAdditionalCrcy1,
Item.TaxBaseAmtInAdditionalCrcy2 AS TaxBaseAmtInAdditionalCrcy2,
Item.TransactionTypeDetermination AS TransactionTypeDetermination,
Item.TaxBaseAmountInCountryCrcy AS TaxBaseAmountInCountryCrcy,
Item.TaxAmountInCountryCrcy AS TaxAmountInCountryCrcy,
cast( Item.CreationDateTime as rstimestmp ) AS CreationDateTime,
Item.CreatedByUser AS CreatedByUser,
cast( Item.LastChangeDateTime as rstimestmp ) AS LastChangeDateTime,
Item.LastChangedByUser AS LastChangedByUser
FROM I_ExternalTaxItemDraft AS Item
LEFT OUTER JOIN I_ExternalTaxHeaderDraft AS _Header ON _Header.ExternalTaxHeaderUUID = Item.ExternalTaxHeaderUUID AND _Header.DraftUUID = Item.DraftUUID AND _Header.CompanyCode = Item.CompanyCode AND _Header.AccountingDocument = Item.AccountingDocument AND _Header.FiscalYear = Item.FiscalYear -- association [1..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