I_PRATstCombinedTaxCompare
TV - Combined Run Tax - Compare
I_PRATstCombinedTaxCompare is a Composite CDS View that provides data about "TV - Combined Run Tax - Compare" in SAP S/4HANA. It reads from 3 data sources (I_PRATstBslnCombinedTax, I_PRATstCombinedTax, I_PRATstValnTol) and exposes 41 fields with key fields CurrentValnDocument, CurrentValnDocumentYear, DeliveryNetwork, SalesDate, PRAJointVenture. Part of development package OIU_TV.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_PRATstBslnCombinedTax | baseline | inner |
| I_PRATstCombinedTax | current | from |
| I_PRATstValnTol | tol | inner |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPRATVCOMTAXC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.dataMaintenance | #DISPLAY_ONLY | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | TV - Combined Run Tax - Compare | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (41)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CurrentValnDocument | I_PRATstCombinedTax | CurrentValnDocument | DocNr |
| KEY | CurrentValnDocumentYear | I_PRATstCombinedTax | CurrentValnDocumentYear | Document year |
| KEY | DeliveryNetwork | I_PRATstCombinedTax | DeliveryNetwork | Delivery network ID |
| KEY | SalesDate | I_PRATstCombinedTax | SalesDate | Sales Date |
| KEY | PRAJointVenture | I_PRATstCombinedTax | PRAJointVenture | Ext vent name |
| KEY | DivisionOfInterest | I_PRATstCombinedTax | DivisionOfInterest | Venture/DOI |
| KEY | PRAContract | I_PRATstCombinedTax | PRAContract | Contract |
| KEY | Well | I_PRATstCombinedTax | Well | Well |
| KEY | WellCompletion | I_PRATstCombinedTax | WellCompletion | Well Completion |
| KEY | OriginatingMeasurementPt | I_PRATstCombinedTax | OriginatingMeasurementPt | |
| KEY | Material | I_PRATstCombinedTax | Material | Vehicle Model |
| KEY | CombinedHdrSqncNumber | I_PRATstCombinedTax | CombinedHdrSqncNumber | |
| KEY | SeveranceTaxType | I_PRATstCombinedTax | SeveranceTaxType | Tax Type |
| ActualStateTaxAmount | I_PRATstCombinedTax | ActualStateTaxAmount | Act st tx amt | |
| BaselineActualStateTaxAmt | I_PRATstBslnCombinedTax | ActualStateTaxAmount | Act st tx amt | |
| ActualStateTaxDiffVal | ||||
| EntitledStateTaxAmount | I_PRATstCombinedTax | EntitledStateTaxAmount | Entl st tx amt | |
| BaselineEntitledStateTaxAmt | I_PRATstBslnCombinedTax | EntitledStateTaxAmount | Entl st tx amt | |
| EntitledStateTaxDiffVal | ||||
| ActualStateTaxReimbmtAmt | I_PRATstCombinedTax | ActualStateTaxReimbmtAmt | Act st tx reimb | |
| BslnActlTaxReimbmtAmt | I_PRATstBslnCombinedTax | ActualStateTaxReimbmtAmt | Act st tx reimb | |
| ActlStateTaxReimbmtDiffVal | ||||
| EntitledStateTaxReimbmtAmt | I_PRATstCombinedTax | EntitledStateTaxReimbmtAmt | Entl st tax rmb | |
| BslnEntitledTaxReimbmtAmt | I_PRATstBslnCombinedTax | EntitledStateTaxReimbmtAmt | Entl st tax rmb | |
| EntldTaxReimbmtDiffVal | ||||
| ActualGrossStateTaxAmt | I_PRATstCombinedTax | ActualGrossStateTaxAmt | Act grst tx amt | |
| BaselineActlGrssStateTaxAmt | I_PRATstBslnCombinedTax | ActualGrossStateTaxAmt | Act grst tx amt | |
| ActlGrssStateTaxDiffVal | ||||
| EntitledGrossStateTaxAmt | I_PRATstCombinedTax | EntitledGrossStateTaxAmt | Entl GrSt Tx Amt | |
| BaselineEntldGrssStateTaxAmt | I_PRATstBslnCombinedTax | EntitledGrossStateTaxAmt | Entl GrSt Tx Amt | |
| EntldGrssStateTaxDiffVal | ||||
| CompanyCodeCurrency | I_PRATstCombinedTax | CompanyCodeCurrency | Local Currency | |
| VolumeUnit | I_PRATstCombinedTax | VolumeUnit | Volume Unit | |
| EnergyUnit | I_PRATstCombinedTax | EnergyUnit | ||
| SequenceNumber | I_PRATstValnTol | SequenceNumber | Sort sequence | |
| ActualStateTaxTolVal | I_PRATstValnTol | ActualStateTaxTolVal | Actual State Tax | |
| EntitledStateTaxTolVal | I_PRATstValnTol | EntitledStateTaxTolVal | Entitled State Tax | |
| ActlStateTaxReimbmtTolVal | I_PRATstValnTol | ActlStateTaxReimbmtTolVal | Act St Tx Reimb | |
| EntitledStateTaxReimbmtTolVal | I_PRATstValnTol | EntitledStateTaxReimbmtTolVal | Ent St Tx Reimb | |
| ActlGrssStateTaxTolVal | I_PRATstValnTol | ActlGrssStateTaxTolVal | Actl Gr St Tax | |
| EntldGrssStateTaxTolVal | I_PRATstValnTol | EntldGrssStateTaxTolVal | Entl Gr St Tax |
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_PRATstCombinedTaxCompare.
-- 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: IPRATVCOMTAXC
CREATE VIEW I_PRATstCombinedTaxCompare AS
SELECT
current.CurrentValnDocument AS CurrentValnDocument,
current.CurrentValnDocumentYear AS CurrentValnDocumentYear,
current.DeliveryNetwork AS DeliveryNetwork,
current.SalesDate AS SalesDate,
current.PRAJointVenture AS PRAJointVenture,
current.DivisionOfInterest AS DivisionOfInterest,
current.PRAContract AS PRAContract,
current.Well AS Well,
current.WellCompletion AS WellCompletion,
current.OriginatingMeasurementPt AS OriginatingMeasurementPt,
current.Material AS Material,
current.CombinedHdrSqncNumber AS CombinedHdrSqncNumber,
current.SeveranceTaxType AS SeveranceTaxType,
current.ActualStateTaxAmount AS ActualStateTaxAmount,
baseline.ActualStateTaxAmount AS BaselineActualStateTaxAmt,
abs(cast(baseline.ActualStateTaxAmount as abap.dec( 13, 3 )) - cast(current.ActualStateTaxAmount as abap.dec( 13,3) ) ) AS ActualStateTaxDiffVal,
current.EntitledStateTaxAmount AS EntitledStateTaxAmount,
baseline.EntitledStateTaxAmount AS BaselineEntitledStateTaxAmt,
abs(cast(baseline.EntitledStateTaxAmount as abap.dec( 13, 3 )) - cast(current.EntitledStateTaxAmount as abap.dec( 13,3) ) ) AS EntitledStateTaxDiffVal,
current.ActualStateTaxReimbmtAmt AS ActualStateTaxReimbmtAmt,
baseline.ActualStateTaxReimbmtAmt AS BslnActlTaxReimbmtAmt,
abs(cast(baseline.ActualStateTaxReimbmtAmt as abap.dec( 13, 3 )) - cast(current.ActualStateTaxReimbmtAmt as abap.dec( 13,3) ) ) AS ActlStateTaxReimbmtDiffVal,
current.EntitledStateTaxReimbmtAmt AS EntitledStateTaxReimbmtAmt,
baseline.EntitledStateTaxReimbmtAmt AS BslnEntitledTaxReimbmtAmt,
abs(cast(baseline.EntitledStateTaxReimbmtAmt as abap.dec( 13, 3 )) - cast(current.EntitledStateTaxReimbmtAmt as abap.dec( 13,3) ) ) AS EntldTaxReimbmtDiffVal,
current.ActualGrossStateTaxAmt AS ActualGrossStateTaxAmt,
baseline.ActualGrossStateTaxAmt AS BaselineActlGrssStateTaxAmt,
abs(cast(baseline.ActualGrossStateTaxAmt as abap.dec( 13, 3 )) - cast(current.ActualGrossStateTaxAmt as abap.dec( 13,3) ) ) AS ActlGrssStateTaxDiffVal,
current.EntitledGrossStateTaxAmt AS EntitledGrossStateTaxAmt,
baseline.EntitledGrossStateTaxAmt AS BaselineEntldGrssStateTaxAmt,
abs(cast(baseline.EntitledGrossStateTaxAmt as abap.dec( 13, 3 )) - cast(current.EntitledGrossStateTaxAmt as abap.dec( 13,3) ) ) AS EntldGrssStateTaxDiffVal,
current.CompanyCodeCurrency AS CompanyCodeCurrency,
current.VolumeUnit AS VolumeUnit,
current.EnergyUnit AS EnergyUnit,
tol.SequenceNumber AS SequenceNumber,
tol.ActualStateTaxTolVal AS ActualStateTaxTolVal,
tol.EntitledStateTaxTolVal AS EntitledStateTaxTolVal,
tol.ActlStateTaxReimbmtTolVal AS ActlStateTaxReimbmtTolVal,
tol.EntitledStateTaxReimbmtTolVal AS EntitledStateTaxReimbmtTolVal,
tol.ActlGrssStateTaxTolVal AS ActlGrssStateTaxTolVal,
tol.EntldGrssStateTaxTolVal AS EntldGrssStateTaxTolVal
FROM I_PRATstCombinedTax AS current
INNER JOIN I_PRATstBslnCombinedTax AS baseline ON /* join condition not captured in parsed metadata */
INNER JOIN I_PRATstValnTol AS tol 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