I_TaxCode

DDL: I_TAXCODE Type: view_entity BASIC Package: FINS_FIS_FICO

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

CategoryCDS Views for Master Data
Data CategoryDimension
Purpose
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.

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessAccounting and Financial Close
Application ComponentFI-GL-GL-F-2CL
CapabilitiesData 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
PackageAccounting 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

Data Sources (1)

SourceAliasJoin Type
t007a t007a from

Associations (3)

CardinalityTargetAliasCondition
[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)

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

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

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