P_TransactionalTaxItem
Transactional tax item
P_TransactionalTaxItem is a Basic CDS View that provides data about "Transactional tax item" in SAP S/4HANA. It reads from 1 data source (tax_reg_item) and exposes 56 fields with key field TaxItemUUID. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| tax_reg_item | TransactionalTaxItem | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_Currency | _DocumentCurrency | $projection.TransactionCurrency = _DocumentCurrency.Currency |
| [0..1] | I_Currency | _CompanyCodeCurrency | $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency |
| [0..1] | I_Currency | _ReportingCurrency | $projection.ReportingCurrency = _ReportingCurrency.Currency |
| [0..1] | I_GLAccount | _GLAccount | $projection.GLAccount = _GLAccount.GLAccount and $projection.CompanyCode = _GLAccount.CompanyCode |
| [0..1] | I_Country | _TaxCountry | $projection.TaxCountry = _TaxCountry.Country |
| [0..1] | I_TaxRegisterMigration | _TaxRegMigration | $projection.TaxRegisterMigrationUUID = _TaxRegMigration.TaxRegisterMigrationUUID |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Transactional tax item | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (56)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TaxItemUUID | taxitem_uuid | Tax Item UUID | |
| CompanyCode | bukrs | Value | ||
| AccountingDocument | SD Document | |||
| FiscalYear | gjahr | Settlement Year | ||
| TaxCountry | Tax Ctry/Rgn | |||
| TaxationType | taxation_type | Taxation Type | ||
| SourceReferenceDocumentType | awtyp | Reference Document Type | ||
| SourceLogicalSystem | awsys | Logical System | ||
| SourceReferenceDocumentCntxt | aworg | Refer. Org.Unit | ||
| SourceReferenceDocument | awref | Reference Doc. | ||
| RvsdReferenceDocumentType | awtyp_rev | ReversalRefTran | ||
| ReversalReferenceDocument | awref_rev | Reversal Ref. | ||
| ReversalReferenceDocumentCntxt | aworg_rev | Reversal Org. | ||
| TransactionTypeDetermination | ktosl | Transaction | ||
| TaxDueCategory | due_category | Due Category | ||
| GLAccount | tax_recon_account | Tax GL Account Number | ||
| ConditionType | condition_type | RAI Condition Type | ||
| TaxRateInPercent | tax_rate | WithholdingRate | ||
| TaxRegisterPercentageUnit | ||||
| PostingDate | budat | Posting Date | ||
| DocumentDate | Journal Entry Date | |||
| TaxFulfillmentDate | fulfilldate | Tax Settlement Date | ||
| TaxReportingDate | tax_reporting_date | Tax Reporting Date | ||
| TaxRateValidityStartDate | txdat_from | Tax Rate Valid-From | ||
| TaxItemGroup | tax_group | Tax Grouping | ||
| TaxLineItemStatus | line_item_status | Line Item Status | ||
| IsReversal | xreversing | Reversal doc. | ||
| IsReversed | xreversed | Reversed | ||
| TaxPayableDocument | tax_pybl_doc_nmbr | Tax Payable Document Number | ||
| TaxPayableDocumentYear | tax_pybl_doc_year | Tax Payable Document Year | ||
| TaxBaseAmountInCoCodeCrcy | base_amt_co_crcy | Tax Base Amount in Company Code Currency | ||
| TaxAmountInCoCodeCrcy | tax_amt_co_crcy | Tax Amount in Company Code Currency | ||
| CompanyCodeCurrency | company_code_currency | Currency | ||
| TaxBaseAmountInTransCrcy | base_amt_trans_crcy | Tax Base Amount in Transaction Currency | ||
| TaxAmountInTransCrcy | tax_amt_trans_crcy | Tax Amount in Transaction Currency | ||
| TransactionCurrency | transaction_currency | Transaction Currency | ||
| TaxBaseAmountInRptgCrcy | base_amt_rptg_crcy | Tax Base Amount in Reporting Currency | ||
| TaxAmountInRptgCrcy | tax_amt_rptg_crcy | Tax Amount in Reporting Currency | ||
| ReportingCurrency | reporting_currency | Reporting Currency | ||
| TaxLineItemPayableStatus | tax_line_payable_status | Status | ||
| TaxCode | mwskz | Tax Code | ||
| TaxDeductibility | tax_deductibility | Deductibility | ||
| DebitCreditCode | shkzg | Returns | ||
| TaxItemIsReportingRelevant | xreportable | Is Reportable | ||
| TaxRegisterMigrationUUID | migration_uuid | UUID | ||
| CreationDateTime | created_at | Uploaded On | ||
| CreatedByUser | created_by | Version Created By | ||
| LastChangeDateTime | lastchangedat | Time Stamp | ||
| LastChangedByUser | lastchangedby | User Name | ||
| _CompanyCode | _CompanyCode | |||
| _DocumentCurrency | _DocumentCurrency | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _ReportingCurrency | _ReportingCurrency | |||
| _GLAccount | _GLAccount | |||
| _TaxCountry | _TaxCountry | |||
| _TaxRegMigration | _TaxRegMigration |
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_TransactionalTaxItem.
-- 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 P_TransactionalTaxItem AS
SELECT
taxitem_uuid AS TaxItemUUID,
bukrs AS CompanyCode,
cast( belnr as farp_belnr_d preserving type ) AS AccountingDocument,
gjahr AS FiscalYear,
cast( tax_country as txrg_tax_ctry preserving type ) AS TaxCountry,
taxation_type AS TaxationType,
awtyp AS SourceReferenceDocumentType,
awsys AS SourceLogicalSystem,
aworg AS SourceReferenceDocumentCntxt,
awref AS SourceReferenceDocument,
awtyp_rev AS RvsdReferenceDocumentType,
awref_rev AS ReversalReferenceDocument,
aworg_rev AS ReversalReferenceDocumentCntxt,
ktosl AS TransactionTypeDetermination,
due_category AS TaxDueCategory,
tax_recon_account AS GLAccount,
condition_type AS ConditionType,
tax_rate AS TaxRateInPercent,
cast('%' as msehi) AS TaxRegisterPercentageUnit,
budat AS PostingDate,
cast( bldat as fis_bldat preserving type ) AS DocumentDate,
fulfilldate AS TaxFulfillmentDate,
tax_reporting_date AS TaxReportingDate,
txdat_from AS TaxRateValidityStartDate,
tax_group AS TaxItemGroup,
line_item_status AS TaxLineItemStatus,
xreversing AS IsReversal,
xreversed AS IsReversed,
tax_pybl_doc_nmbr AS TaxPayableDocument,
tax_pybl_doc_year AS TaxPayableDocumentYear,
base_amt_co_crcy AS TaxBaseAmountInCoCodeCrcy,
tax_amt_co_crcy AS TaxAmountInCoCodeCrcy,
company_code_currency AS CompanyCodeCurrency,
base_amt_trans_crcy AS TaxBaseAmountInTransCrcy,
tax_amt_trans_crcy AS TaxAmountInTransCrcy,
transaction_currency AS TransactionCurrency,
base_amt_rptg_crcy AS TaxBaseAmountInRptgCrcy,
tax_amt_rptg_crcy AS TaxAmountInRptgCrcy,
reporting_currency AS ReportingCurrency,
tax_line_payable_status AS TaxLineItemPayableStatus,
mwskz AS TaxCode,
tax_deductibility AS TaxDeductibility,
shkzg AS DebitCreditCode,
xreportable AS TaxItemIsReportingRelevant,
migration_uuid AS TaxRegisterMigrationUUID,
created_at AS CreationDateTime,
created_by AS CreatedByUser,
lastchangedat AS LastChangeDateTime,
lastchangedby AS LastChangedByUser
FROM tax_reg_item AS TransactionalTaxItem
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_Currency AS _DocumentCurrency ON TransactionCurrency = _DocumentCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _ReportingCurrency ON ReportingCurrency = _ReportingCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_GLAccount AS _GLAccount ON GLAccount = _GLAccount.GLAccount AND CompanyCode = _GLAccount.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_Country AS _TaxCountry ON TaxCountry = _TaxCountry.Country -- association [0..1]
LEFT OUTER JOIN I_TaxRegisterMigration AS _TaxRegMigration ON TaxRegisterMigrationUUID = _TaxRegMigration.TaxRegisterMigrationUUID -- association [0..1]
;
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