I_TaxCode
Tax Code
I_TaxCode (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Public Edition with built-in and side-by-side extension capabilities.
Sales Tax Code · Accounting and Financial Close
I_TaxCode is a Basic CDS View (Dimension) that provides data about "Tax Code" in SAP S/4HANA. It reads from 1 data source (t007a) and exposes 19 fields with key fields TaxCalculationProcedure, TaxCode. It has 3 associations to related views. It is exposed through 4 OData services (ASQL_F2095, ASQL_F2096, ASQL_F4942, ...). Part of development package FINS_FIS_FICO.
SAP Help Documentation
| Category | CDS Views for Master Data |
|---|---|
| Data Category | Dimension |
This CDS view provides you with important information about your tax codes. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view don't need any special authorization.
Structure
Important Fields Important fields in this view include the following: Field Name Description TaxCalculationProcedure Procedure TaxCode Tax Code TaxType Tax Type TargetTaxCode Target Tax Code (for Deferred Tax) EUTaxClassification EU Code/Code IsSalesTaxes Indicator: Tax Code for Sales Taxes UnitedStatesTaxCategory Tax Category TaxReturnCountry Reporting Country/Region TaxTolerancePercent Tolerance Percentage Rate EUAcqnInputTaxCode Target Tax Code: EU Acquisition (Input Tax) EUAcqnOutputTaxCode Target Tax Code: EU Acquisition (Output Tax) TaxCodeIsInactive Inactive OneStopShopTaxReportingCountry OSS Country/Region OneStopShopScheme OSS Classification
Data Extraction
Data Extraction Type This CDS view is enabled for data extraction in full mode.
Constraints
The following fields must always be empty in SAP S/4HANA Cloud Public Edition : Indicator: Tax Code for Sales Taxes ( IsSalesTaxes ) Target Tax Code: EU Acquisition (Input Tax) ( EUAcqnInputTaxCode ) Target Tax Code: EU Acquisition (Output Tax) ( EUAcqnOutputTaxCode ) Tax Return Country ( TaxReturnCountry) OSS Classification ( OneStopShopScheme ) OSS Country/Region (OneStopShopTaxReportingCountry) The following fields are used only under specific circumstances: Target Tax Code (for Deferred Tax) ( TargetTaxCode ) is only used where deferred tax is active. Note This doesn't refer to either EUAcqnInputTaxCode or EUAcqnOutputTaxCode , both of which must always be empty. Tax Category for US Taxes ( UnitedStatesTaxCategory ) is only active where you've enabled external sales and use tax calculation. The EU Code/Code field ( EUTaxClassification ) is mainly used for classifying tax codes that are considered in the EC Sales List report. It's important to be aware that certain EU tax classifications have other functions that don't explicitly relate to EU tax regulations or to the EC Sales List report. Refer to the system documentation for this field for further information. When you use the Inactive ( TaxCodeIsInactive ) field to deactivate a tax code, that tax code no longer appears in the field search help.
SAP API Hub
| Category | Basic |
|---|---|
| State | C1 |
| Line of Business | Accounting and Financial Close |
| Application Component | FI-GL-GL-F-2CL |
| Capabilities | Data Source for Data Extraction,Analytical Dimension,Association Target for Defining CDS Entities,Data Source in SQL Select,Data Source for Defining CDS Entities |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Accounting and Financial Close for SAP S/4HANA Cloud Public Edition |
| Description | <p>This CDS view provides you with important information about your tax codes.</p> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| t007a | t007a | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_TaxCodeText | _Text | $projection.TaxCalculationProcedure = _Text.TaxCalculationProcedure and $projection.TaxCode = _Text.TaxCode |
| [0..1] | I_TaxType | _TaxType | $projection.TaxType = _TaxType.TaxType |
| [0..1] | I_TaxCalculationProcedure | _TaxCalculationProcedure | $projection.TaxCalculationProcedure = _TaxCalculationProcedure.TaxCalculationProcedure |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Analytics.technicalName | IFITAXCODE | view | |
| EndUserText.label | Tax Code | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ObjectModel.representativeKey | TaxCode | view | |
| ObjectModel.sapObjectNodeType.name | SalesTaxCode | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| Search.searchable | true | view | |
| VDM.viewType | #BASIC | view |
OData Services (4)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F2095 | ASQL_F2095 | C2 | NOT_RELEASED | |
| ASQL_F2096 | ASQL_F2096 | C2 | NOT_RELEASED | |
| ASQL_F4942 | ASQL_F4942 | C2 | NOT_RELEASED | |
| C_BILLGDOCREDACTED_SD | C_BILLGDOCREDACTED | V2 | C1 | NOT_RELEASED |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TaxCalculationProcedure | kalsm | Procedure (Pricing, Output Control, Acct. Det., Costing,...) | |
| KEY | TaxCode | Tax on Sales/Purchases Code | ||
| TaxType | mwart | Tax Type | ||
| TargetTaxCode | Target Tax Code (for Deferred Tax) | |||
| EUTaxClassification | egrkz | EU Code/Code | ||
| IsSalesTaxes | xslta | No Exch. Rate Diff. When Clearing in LC | ||
| TaxCategory | Tax Category in Account Master Record | |||
| UnitedStatesTaxCategory | Tax Category for US Taxes | |||
| TaxReturnCountry | lstml | Country/Region for Tax Report | ||
| TaxTolerancePercent | Tolerance Percentage Rate for Tax Calculation | |||
| EUAcqnInputTaxCode | zmwsk_ese | Target Tax Code for Deferred EU Acquisition Tax, Input Tax | ||
| EUAcqnOutputTaxCode | zmwsk_esa | Target Tax Code for Deferred EU Acquisition Tax, Output Tax | ||
| TaxCodeIsInactive | xinact | Set Tax Code to "Inactive" - No Further Use | ||
| MiniOneStopShopTxRptgCntry | mossc | One-Stop Shop Tax Reporting Country/Region | ||
| OneStopShopTaxReportingCountry | mossc | One-Stop Shop Tax Reporting Country/Region | ||
| OneStopShopScheme | oss_classification | One-Stop Shop Procedure | ||
| _TaxCalculationProcedure | _TaxCalculationProcedure | |||
| _TaxType | _TaxType | |||
| _Text | _Text |
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_TaxCode.
-- 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_TaxCode AS
SELECT
kalsm AS TaxCalculationProcedure,
cast(mwskz as fis_mwskz preserving type) AS TaxCode,
mwart AS TaxType,
cast(zmwsk as farp_dzmwsk preserving type) AS TargetTaxCode,
egrkz AS EUTaxClassification,
xslta AS IsSalesTaxes,
cast(txind as smwsk) AS TaxCategory,
cast(txind as txind_007a preserving type) AS UnitedStatesTaxCategory,
lstml AS TaxReturnCountry,
cast(tolerance as fot_tax_tolerance preserving type) AS TaxTolerancePercent,
zmwsk_ese AS EUAcqnInputTaxCode,
zmwsk_esa AS EUAcqnOutputTaxCode,
xinact AS TaxCodeIsInactive,
mossc AS MiniOneStopShopTxRptgCntry,
mossc AS OneStopShopTaxReportingCountry,
oss_classification AS OneStopShopScheme
FROM t007a
LEFT OUTER JOIN I_TaxCodeText AS _Text ON TaxCalculationProcedure = _Text.TaxCalculationProcedure AND TaxCode = _Text.TaxCode -- association [0..*]
LEFT OUTER JOIN I_TaxType AS _TaxType ON TaxType = _TaxType.TaxType -- association [0..1]
LEFT OUTER JOIN I_TaxCalculationProcedure AS _TaxCalculationProcedure ON TaxCalculationProcedure = _TaxCalculationProcedure.TaxCalculationProcedure -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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