I_TW_FixedAssetTaxCube
Analytical Cube for Asset Tax Items
I_TW_FixedAssetTaxCube is a Composite CDS View (Cube) that provides data about "Analytical Cube for Asset Tax Items" in SAP S/4HANA. It reads from 3 data sources (I_Branch, I_FixedAssetTaxItem, I_TW_TaxCode) and exposes 31 fields with key fields AccountingDocument, CompanyCode, FiscalYear, TaxItemGroup, AccountingDocumentItem. Part of development package GLO_FIN_IS_VAT_TW.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_Branch | BusPlace | left_outer |
| I_FixedAssetTaxItem | I_FixedAssetTaxItem | from |
| I_TW_TaxCode | taxCode | inner |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id | |
| P_StatryRptRunID | srf_report_run_id | |
| P_StatryRptRunType | srf_report_run_type | |
| P_StatryRptRefNmbrPrefixValue | idtw_ref_num_prefix |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ITWFATAXCUBE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| EndUserText.label | Analytical Cube for Asset Tax Items | view | |
| Analytics.dataCategory | #CUBE | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.allowExtensions | true | view |
Fields (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AccountingDocument | taxItem | AccountingDocument | Journal Entry |
| KEY | CompanyCode | taxItem | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | taxItem | FiscalYear | G/L Fiscal Year |
| KEY | TaxItemGroup | taxItem | TaxItemGroup | Tax doc. item number |
| KEY | AccountingDocumentItem | taxItem | AccountingDocumentItem | Posting View Item |
| KEY | TaxGroup | taxItem | TaxGroup | Tax Group |
| TaiwaneseCalendarYear | taxItem | TaiwaneseCalendarYear | ||
| FiscalPeriod | taxItem | FiscalPeriod | Tax period | |
| DistrictTaxOffice | ||||
| SupplierTaxID1 | ||||
| SupplierTaxID2 | ||||
| DocumentDate | taxItem | DocumentDate | Journal Entry Date | |
| PostingDate | taxItem | PostingDate | Posting Date for GR | |
| ReportingDate | taxItem | ReportingDate | ||
| DocumentReferenceID | ||||
| FixedAssetDescription | taxItem | FixedAssetDescription | Description | |
| Quantity | ||||
| CompanyCodeCurrency | taxItem | CompanyCodeCurrency | Local Currency | |
| AmountInCompanyCodeCurrency | ||||
| TaxAmountInCoCodeCrcy | ||||
| AssetAdditionalDescription | taxItem | AssetAdditionalDescription | ||
| TaxAmount | taxItem | TaxAmount | Tax Amt in Rptg Crcy | |
| BusinessPlace | taxItem | BusinessPlace | Business place | |
| Supplier | taxItem | Supplier | Supplier | |
| Customer | taxItem | Customer | Sold-to Party | |
| CustomerCountry | taxItem | CustomerCountry | ||
| SupplierCountry | taxItem | SupplierCountry | ||
| AccountingDocumentClass | taxItem | AccountingDocumentClass | ||
| TaxCode | taxItem | TaxCode | Tax Code | |
| TaxRateValidityStartDate | taxItem | TaxRateValidityStartDate | Tax Rate Validity Start Date | |
| TaxRate | taxItem | TaxRate | Tax Rate |
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_TW_FixedAssetTaxCube.
-- 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.
-- SQL view name: ITWFATAXCUBE
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id, P_StatryRptRunType : srf_report_run_type, P_StatryRptRefNmbrPrefixValue : idtw_ref_num_prefix
CREATE VIEW I_TW_FixedAssetTaxCube AS
SELECT
taxItem.AccountingDocument AS AccountingDocument,
taxItem.CompanyCode AS CompanyCode,
taxItem.FiscalYear AS FiscalYear,
taxItem.TaxItemGroup AS TaxItemGroup,
taxItem.AccountingDocumentItem AS AccountingDocumentItem,
taxItem.TaxGroup AS TaxGroup,
taxItem.TaiwaneseCalendarYear AS TaiwaneseCalendarYear,
taxItem.FiscalPeriod AS FiscalPeriod,
left(BusPlace.DistrictTaxOffice, 1) AS DistrictTaxOffice,
left(BusPlace.TaxNumber1, 8) AS SupplierTaxID1,
left(BusPlace.TaxNumber2, 9) AS SupplierTaxID2,
taxItem.DocumentDate AS DocumentDate,
taxItem.PostingDate AS PostingDate,
taxItem.ReportingDate AS ReportingDate,
left(taxItem.DocumentReferenceID, 14) AS DocumentReferenceID,
taxItem.FixedAssetDescription AS FixedAssetDescription,
cast(cast(taxItem.Quantity as abap.quan( 12, 0 )) as sstring) AS Quantity,
taxItem.CompanyCodeCurrency AS CompanyCodeCurrency,
cast(taxItem.AmountInCompanyCodeCurrency as sstring) AS AmountInCompanyCodeCurrency,
cast( cast( taxItem.AmountInCompanyCodeCurrency*TaxRate*(fltp_to_dec(0.01 as abap.dec(3,2))) as abap.curr(8, 3) ) as sstring) AS TaxAmountInCoCodeCrcy,
taxItem.AssetAdditionalDescription AS AssetAdditionalDescription,
taxItem.TaxAmount AS TaxAmount,
taxItem.BusinessPlace AS BusinessPlace,
taxItem.Supplier AS Supplier,
taxItem.Customer AS Customer,
taxItem.CustomerCountry AS CustomerCountry,
taxItem.SupplierCountry AS SupplierCountry,
taxItem.AccountingDocumentClass AS AccountingDocumentClass,
taxItem.TaxCode AS TaxCode,
taxItem.TaxRateValidityStartDate AS TaxRateValidityStartDate,
taxItem.TaxRate AS TaxRate
FROM I_FixedAssetTaxItem
INNER JOIN I_TW_TaxCode AS taxCode ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Branch AS BusPlace ON /* join condition not captured in parsed metadata */
;
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