P_TH_TaxCodeRate2

DDL: P_TH_TAXCODERATE2 SQL: PTHTAXCODERATE2 Type: view COMPOSITE

P_TH_TaxCodeRate2 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_TaxItem) and exposes 8 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, TaxCode.

Data Sources (1)

SourceAliasJoin Type
I_TaxItem I_TaxItem from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PTHTAXCODERATE2 view
AbapCatalog.preserveKey true view
VDM.viewType #COMPOSITE view
VDM.private true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #CUSTOMIZING view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY TaxItem TaxItem Tax Item
KEY TaxCode I_TaxItem TaxCode Tax Code
KEY TaxCalculationProcedure I_TaxCode TaxCalculationProcedure Tax Procedure
TaxType I_TaxCode TaxType Tax Type
TaxRate

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_TH_TaxCodeRate2.
-- 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: PTHTAXCODERATE2

CREATE VIEW P_TH_TaxCodeRate2 AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  TaxItem,
  I_TaxItem.TaxCode AS TaxCode,
  I_TaxCode.TaxCalculationProcedure AS TaxCalculationProcedure,
  I_TaxCode.TaxType AS TaxType,
  division ( I_TaxItem.TaxRate , 10, 2 ) AS TaxRate
FROM I_TaxItem
;