P_Tax_Declar05
P_Tax_Declar05 is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (P_TaxRecon07, P_TaxRecon07) and exposes 57 fields.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_TaxRecon07 | P_TaxRecon07 | from |
| P_TaxRecon07 | P_TaxRecon07 | union |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PTAXDECLA05 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view |
Fields (57)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| bukrs | bseg | bukrs | Value | |
| belnr | bseg | belnr | SD Document | |
| mwskz | bseg | mwskz | Tax Code | |
| txdat_from | bseg | txdat_from | Tax Rate Valid-From | |
| gjahr | bseg | gjahr | Settlement Year | |
| txbhw | txbhw | Original Tax Base Amount | ||
| hwbas | bset | hwbas | LC Base Amt | |
| buzei | bseg | buzei | Posting View Item | |
| hwste | hwste | LC Tax | ||
| kbetr | kbetr | Tax Rate | ||
| kbetr_calc | kbetr_calc | |||
| hkont | hkont | Transfer acct | ||
| lokkt | lokkt | Local Acct No. | ||
| altkt | altkt | Group Account Number | ||
| stazf | stazf | Not deductible | ||
| stbkz | stbkz | Posting indic. | ||
| mwart | mwart | Tax Type | ||
| xmwsn | bseg | xmwsn | Net Tax Base | |
| xskfn | bseg | xskfn | Net Discount Base | |
| zbd1p | ||||
| h_monat | h_monat | Period | ||
| h_blart | h_blart | Document Type | ||
| h_budat | h_budat | Posting Date | ||
| h_bldat | h_bldat | Document Date | ||
| h_hwaer | h_hwaer | Local Currency | ||
| ktosl | ||||
| land1 | t001 | land1 | Trip Ctry/Reg | |
| bukrs | Value | |||
| belnr | bseg | belnr | SD Document | |
| mwskz | bseg | mwskz | Tax Code | |
| txdat_from | bseg | txdat_from | Tax Rate Valid-From | |
| gjahr | bseg | gjahr | Settlement Year | |
| dmbtr | ||||
| txbhw | txbhw | Original Tax Base Amount | ||
| hwbas | bset | hwbas | LC Base Amt | |
| buzei | bseg | buzei | Posting View Item | |
| hwste | hwste | LC Tax | ||
| kbetr | kbetr | Tax Rate | ||
| kbetr_calc | kbetr_calc | |||
| calculated | ||||
| hkont | hkont | Transfer acct | ||
| lokkt | lokkt | Local Acct No. | ||
| altkt | altkt | Group Account Number | ||
| stazf | Not deductible | |||
| stbkz | Posting indic. | |||
| mwart | mwart | Tax Type | ||
| xmwsn | bseg | xmwsn | Net Tax Base | |
| xskfn | bseg | xskfn | Net Discount Base | |
| zbd1p | ||||
| h_monat | h_monat | Period | ||
| h_blart | h_blart | Document Type | ||
| h_budat | h_budat | Posting Date | ||
| h_bldat | h_bldat | Document Date | ||
| h_hwaer | h_hwaer | Local Currency | ||
| ktosl | ||||
| land1 | t001 | land1 | Trip Ctry/Reg | |
| xauto | xauto | Auto. Item Keys |
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_Tax_Declar05.
-- 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: PTAXDECLA05
CREATE VIEW P_Tax_Declar05 AS
SELECT
bseg.bukrs AS bukrs,
bseg.belnr AS belnr,
bseg.mwskz AS mwskz,
bseg.txdat_from AS txdat_from,
bseg.gjahr AS gjahr,
txbhw,
bset.hwbas AS hwbas,
bseg.buzei AS buzei,
hwste,
kbetr,
kbetr_calc,
hkont,
lokkt,
altkt,
stazf,
stbkz,
mwart,
bseg.xmwsn AS xmwsn,
bseg.xskfn AS xskfn,
DIVISION (bseg.zbd1p, 100, 5) AS zbd1p,
h_monat,
h_blart,
h_budat,
h_bldat,
h_hwaer,
coalesce (ktosl, '') AS ktosl,
t001.land1 AS land1,
coalesce (bset.hwbas,0) AS dmbtr,
bset.hwbas * cast(kbetr_calc as abap.curr(10,6)) AS calculated,
xauto
FROM P_TaxRecon07
-- UNION with additional select branch(es): P_TaxRecon07
;
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