P_AR_TaxItem
P_AR_TaxItem is a Consumption CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 42 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| I_AR_TaxClassIdentification | AR_TaxClassIdentification1 | left_outer |
| I_AR_TaxClassIdentification | AR_TaxClassIdentification2 | left_outer |
| I_CompanyCode | I_CompanyCode | inner |
| I_Country | I_Country | inner |
| I_TaxCode | I_TaxCode | inner |
| I_TaxItem | I_TaxItem | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PARTAXITEM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view |
Fields (42)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_TaxItem | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | I_TaxItem | AccountingDocument | Journal Entry |
| KEY | FiscalYear | I_TaxItem | FiscalYear | G/L Fiscal Year |
| KEY | TaxItem | I_TaxItem | TaxItem | Tax Item |
| TaxCalculationProcedure | I_TaxCode | TaxCalculationProcedure | Tax Procedure | |
| TaxType | I_TaxCode | TaxType | Tax Type | |
| TaxCode | I_TaxCode | TaxCode | Tax Code | |
| TransactionTypeDetermination | I_TaxItem | TransactionTypeDetermination | Transaction Key | |
| TaxRate | ||||
| StRpTaxClassification | ||||
| TransTypeDeterminationTaxClass | ||||
| TaxIsProRated | ||||
| AddressRegion | ||||
| MunicipalJurisdiction | ||||
| GLAccount | I_TaxItem | GLAccount | General Ledger | |
| TaxItemGroup | I_TaxItem | TaxItemGroup | Tax doc. item number | |
| ConditionRecord | I_TaxItem | ConditionRecord | Cond.Record No. | |
| ConditionType | I_TaxItem | ConditionType | Condition type | |
| TaxReturnDate | I_TaxItem | TaxReturnDate | ||
| TaxReportingDate | I_TaxItem | TaxReportingDate | Tax Reporting Date | |
| VATRegistration | I_TaxItem | VATRegistration | VAT Registration No. | |
| DestinationCountry | I_TaxItem | DestinationCountry | Dest. Ctry/Reg | |
| SupplyingCountry | I_TaxItem | SupplyingCountry | Supplying Ctry/Reg. | |
| TaxJurisdiction | I_TaxItem | TaxJurisdiction | Tax Jurisdiction | |
| TaxDeterminationDate | I_TaxItem | TaxDeterminationDate | Tx Determination Dte | |
| BusinessPlace | I_TaxItem | BusinessPlace | Business place | |
| LowestLevelTaxJurisdiction | I_TaxItem | LowestLevelTaxJurisdiction | Jurisdict. Code | |
| TaxJurisdictionLevel | I_TaxItem | TaxJurisdictionLevel | Jurisdiction level | |
| TaxResultManualModification | I_TaxItem | TaxResultManualModification | Tax Modified | |
| CompanyCodeCountry | I_TaxItem | CompanyCodeCountry | Reporting Ctry/Reg. | |
| CompanyCodeCurrency | ||||
| TransactionCurrency | ||||
| AdditionalCurrency1 | I_TaxItem | AdditionalCurrency1 | Local curr. 2 | |
| AdditionalCurrency2 | I_TaxItem | AdditionalCurrency2 | Local curr. 3 | |
| CountryCurrency | I_TaxItem | CountryCurrency | Currency | |
| _CompanyCodeCountry | I_TaxItem | _CompanyCodeCountry | ||
| _CompanyCodeCurrency | I_TaxItem | _CompanyCodeCurrency | ||
| _GLAccount | I_TaxItem | _GLAccount | ||
| _ReceivablesPayablesItem | I_TaxItem | _ReceivablesPayablesItem | ||
| _TaxJurisdiction | I_TaxItem | _TaxJurisdiction | ||
| _TaxType | I_TaxCode | _TaxType | ||
| _TaxCodeText | I_TaxCode | _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 P_AR_TaxItem.
-- 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: PARTAXITEM
CREATE VIEW P_AR_TaxItem AS
SELECT
I_TaxItem.CompanyCode AS CompanyCode,
I_TaxItem.AccountingDocument AS AccountingDocument,
I_TaxItem.FiscalYear AS FiscalYear,
I_TaxItem.TaxItem AS TaxItem,
I_TaxCode.TaxCalculationProcedure AS TaxCalculationProcedure,
I_TaxCode.TaxType AS TaxType,
I_TaxCode.TaxCode AS TaxCode,
I_TaxItem.TransactionTypeDetermination AS TransactionTypeDetermination,
cast( division( I_TaxItem.TaxRate,10,2 ) as kbetr_tax ) AS TaxRate,
cast( substring( coalesce( AR_TaxClassIdentification1.StRpTaxClassification, AR_TaxClassIdentification2.StRpTaxClassification ), 1, 2 ) as j_1ataxid_ ) AS StRpTaxClassification,
coalesce( AR_TaxClassIdentification1.TransactionTypeDetermination, AR_TaxClassIdentification2.TransactionTypeDetermination ) AS TransTypeDeterminationTaxClass,
cast( coalesce( AR_TaxClassIdentification1.TaxIsProRated, AR_TaxClassIdentification2.TaxIsProRated ) as figlar_prorated preserving type ) AS TaxIsProRated,
cast( coalesce( AR_TaxClassIdentification1.AddressRegion, AR_TaxClassIdentification2.AddressRegion ) as regio preserving type ) AS AddressRegion,
cast( coalesce( AR_TaxClassIdentification1.MunicipalJurisdiction, AR_TaxClassIdentification2.MunicipalJurisdiction ) as j_1amjc preserving type ) AS MunicipalJurisdiction,
I_TaxItem.GLAccount AS GLAccount,
I_TaxItem.TaxItemGroup AS TaxItemGroup,
I_TaxItem.ConditionRecord AS ConditionRecord,
I_TaxItem.ConditionType AS ConditionType,
I_TaxItem.TaxReturnDate AS TaxReturnDate,
I_TaxItem.TaxReportingDate AS TaxReportingDate,
I_TaxItem.VATRegistration AS VATRegistration,
I_TaxItem.DestinationCountry AS DestinationCountry,
I_TaxItem.SupplyingCountry AS SupplyingCountry,
I_TaxItem.TaxJurisdiction AS TaxJurisdiction,
I_TaxItem.TaxDeterminationDate AS TaxDeterminationDate,
I_TaxItem.BusinessPlace AS BusinessPlace,
I_TaxItem.LowestLevelTaxJurisdiction AS LowestLevelTaxJurisdiction,
I_TaxItem.TaxJurisdictionLevel AS TaxJurisdictionLevel,
I_TaxItem.TaxResultManualModification AS TaxResultManualModification,
I_TaxItem.CompanyCodeCountry AS CompanyCodeCountry,
cast( I_TaxItem.CompanyCodeCurrency as fis_hwaer preserving type ) AS CompanyCodeCurrency,
cast( I_TaxItem.DocumentCurrency as fis_rwcur preserving type ) AS TransactionCurrency,
I_TaxItem.AdditionalCurrency1 AS AdditionalCurrency1,
I_TaxItem.AdditionalCurrency2 AS AdditionalCurrency2,
I_TaxItem.CountryCurrency AS CountryCurrency,
I_TaxItem._CompanyCodeCountry AS _CompanyCodeCountry,
I_TaxItem._CompanyCodeCurrency AS _CompanyCodeCurrency,
I_TaxItem._GLAccount AS _GLAccount,
I_TaxItem._ReceivablesPayablesItem AS _ReceivablesPayablesItem,
I_TaxItem._TaxJurisdiction AS _TaxJurisdiction,
I_TaxCode._TaxType AS _TaxType,
I_TaxCode._Text AS _TaxCodeText
FROM I_TaxItem
INNER JOIN I_CompanyCode ON /* join condition not captured in parsed metadata */
INNER JOIN I_Country ON /* join condition not captured in parsed metadata */
INNER JOIN I_TaxCode ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_AR_TaxClassIdentification AS AR_TaxClassIdentification1 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_AR_TaxClassIdentification AS AR_TaxClassIdentification2 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