P_PH_STRPTaxItems_TDT
P_PH_STRPTaxItems_TDT is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_StRpTaxReturnBoxCube) and exposes 59 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxCode, StatryRptgEntity.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_StRpTaxReturnBoxCube | I_StRpTaxReturnBoxCube | from |
Parameters (7)
| Name | Type | Default |
|---|---|---|
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id | |
| P_StatryRptRunID | srf_report_run_id | |
| P_ReportingCountry | land1 | |
| P_ThirdPartySupplierRefKey | vndrrefkey | |
| P_DiscountAccountFrom | vonkt_011z | |
| P_DiscountAccountTo | biskt_011z |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPHSPTAXITMSTDT | 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 | #XL | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (59)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | TaxItem | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | TaxItem | AccountingDocument | Journal Entry |
| KEY | FiscalYear | TaxItem | FiscalYear | G/L Fiscal Year |
| KEY | TaxCode | TaxItem | TaxCode | Tax Code |
| KEY | StatryRptgEntity | StatryRptgEntity | Reporting Entity | |
| KEY | StatryRptCategory | StatryRptCategory | Report ID | |
| KEY | StatryRptRunID | StatryRptRunID | Report Run ID | |
| KEY | PostingDate | TaxItem | PostingDate | Posting Date for GR |
| KEY | TaxItem | TaxItem | Tax Item | |
| KEY | SupplierAccountGroup | SupplierAccountGroup | Account group | |
| KEY | AccountingDocumentType | TaxItem | AccountingDocumentType | Journal Entry Type |
| KEY | TransactionTypeDetermination | TaxItem | TransactionTypeDetermination | Transaction Key |
| KEY | TaxBoxStrucValidityStartDate | TaxBoxStrucValidityStartDate | ||
| KEY | UnifiedTaxBoxStructureType | UnifiedTaxBoxStructureType | ||
| KEY | TaxBox | TaxBox | Tax.Bs.Gp.No. | |
| KEY | TaxItemGroupingVersion | TaxItemGroupingVersion | Tax Grping Ver. | |
| KEY | TaxBoxStructureType | TaxBoxStructureType | ||
| TaxBoxStrucValidityEndDate | TaxBoxStrucValidityEndDate | |||
| TaxRateValidityStartDate | TaxRateValidityStartDate | Tax Rate Validity Start Date | ||
| DocumentDate | TaxItem | DocumentDate | Journal Entry Date | |
| TaxReportingDate | TaxReportingDate | Tax Reporting Date | ||
| ReportingDate | ReportingDate | |||
| FiscalPeriod | TaxItem | FiscalPeriod | Tax period | |
| AccountingDocumentHeaderText | AccountingDocumentHeaderText | Doc.Header Text | ||
| DocumentReferenceID | DocumentReferenceID | Reference | ||
| BusinessPartner | TaxItem | BusinessPartner | Issuing Authority | |
| BusinessPartnerCountry | TaxItem | BusinessPartnerCountry | BP Ctry/Reg. | |
| TaxNumber1 | TaxNumber1 | VAT Reg. No. | ||
| TaxNumber2 | TaxNumber2 | Tax Number 2 | ||
| TaxNumber3 | TaxNumber3 | |||
| BusinessPartnerName | TaxItem | BusinessPartnerName | Extracted Customer Name | |
| CustomerSupplierAddress | CustomerSupplierAddress | |||
| BusinessPlace | TaxItem | BusinessPlace | Business place | |
| TaxType | TaxItem | TaxType | Tax Type | |
| TaxRate | TaxRate | Tax Rate | ||
| IPITaxRate | IPITaxRate | |||
| ExchangeRate | ExchangeRate | Exchange rate | ||
| TaxCalculationProcedure | TaxItem | TaxCalculationProcedure | Tax Procedure | |
| GLAccount | TaxItem | GLAccount | General Ledger | |
| CompanyCodeCurrency | TaxItem | CompanyCodeCurrency | Local Currency | |
| CountryCurrency | CountryCurrency | Currency | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| ReportingCurrency | ReportingCurrency | Currency | ||
| ReportingCountry | ReportingCountry | |||
| TaxBaseAmountInCoCodeCrcy | TaxItem | TaxBaseAmountInCoCodeCrcy | TxBaseAmt CoCodeCrcy | |
| TaxAmountInCoCodeCrcy | TaxItem | TaxAmountInCoCodeCrcy | Tax Amount in Company Code Currency | |
| TaxBaseAmountInTransCrcy | TaxItem | TaxBaseAmountInTransCrcy | Value-Added Tax | |
| TaxAmount | TaxItem | TaxAmount | Tax Amt in Rptg Crcy | |
| TaxBaseAmountInRptgCrcy | TaxBaseAmountInRptgCrcy | Base Amount | ||
| TaxAmountInRptgCrcy | TaxAmountInRptgCrcy | Tax Rept. Crcy | ||
| GrossAmountInCoCodeCurrency | ||||
| DiscountBaseAmtInCoCodeCrcy | DiscAmtInCoCdCrcy | |||
| DiscountAmtInCoCodeCrcy | ||||
| SystemClient | ||||
| _ReportingCurrency | _ReportingCurrency | |||
| _AccountingDocument | _AccountingDocument | |||
| _ReceivablesPayablesItem | _ReceivablesPayablesItem | |||
| _TaxTypeText | _TaxTypeText | |||
| _TaxCodeText | _TaxCodeText |
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_PH_STRPTaxItems_TDT.
-- 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: PPHSPTAXITMSTDT
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id, P_ReportingCountry : land1, P_ThirdPartySupplierRefKey : vndrrefkey, P_DiscountAccountFrom : vonkt_011z, P_DiscountAccountTo : biskt_011z
CREATE VIEW P_PH_STRPTaxItems_TDT AS
SELECT
TaxItem.CompanyCode AS CompanyCode,
TaxItem.AccountingDocument AS AccountingDocument,
TaxItem.FiscalYear AS FiscalYear,
TaxItem.TaxCode AS TaxCode,
StatryRptgEntity,
StatryRptCategory,
StatryRptRunID,
TaxItem.PostingDate AS PostingDate,
TaxItem,
SupplierAccountGroup,
TaxItem.AccountingDocumentType AS AccountingDocumentType,
TaxItem.TransactionTypeDetermination AS TransactionTypeDetermination,
TaxBoxStrucValidityStartDate,
UnifiedTaxBoxStructureType,
TaxBox,
TaxItemGroupingVersion,
TaxBoxStructureType,
TaxBoxStrucValidityEndDate,
TaxRateValidityStartDate,
TaxItem.DocumentDate AS DocumentDate,
TaxReportingDate,
ReportingDate,
TaxItem.FiscalPeriod AS FiscalPeriod,
AccountingDocumentHeaderText,
DocumentReferenceID,
TaxItem.BusinessPartner AS BusinessPartner,
TaxItem.BusinessPartnerCountry AS BusinessPartnerCountry,
TaxNumber1,
TaxNumber2,
TaxNumber3,
TaxItem.BusinessPartnerName AS BusinessPartnerName,
CustomerSupplierAddress,
TaxItem.BusinessPlace AS BusinessPlace,
TaxItem.TaxType AS TaxType,
TaxRate,
IPITaxRate,
ExchangeRate,
TaxItem.TaxCalculationProcedure AS TaxCalculationProcedure,
TaxItem.GLAccount AS GLAccount,
TaxItem.CompanyCodeCurrency AS CompanyCodeCurrency,
CountryCurrency,
DocumentCurrency,
ReportingCurrency,
ReportingCountry,
TaxItem.TaxBaseAmountInCoCodeCrcy AS TaxBaseAmountInCoCodeCrcy,
TaxItem.TaxAmountInCoCodeCrcy AS TaxAmountInCoCodeCrcy,
TaxItem.TaxBaseAmountInTransCrcy AS TaxBaseAmountInTransCrcy,
TaxItem.TaxAmount AS TaxAmount,
TaxBaseAmountInRptgCrcy,
TaxAmountInRptgCrcy,
TaxItem.TaxAmountInRptgCrcy + TaxItem.TaxBaseAmountInRptgCrcy AS GrossAmountInCoCodeCurrency,
DiscAmtInCoCdCrcy AS DiscountBaseAmtInCoCodeCrcy,
DiscAmtInCoCdCrcy * cast ( ( 1 + division ( TaxRate ,100, 2 ) ) as abap.dec(10, 4) ) AS DiscountAmtInCoCodeCrcy,
$session.client AS SystemClient
FROM I_StRpTaxReturnBoxCube
;
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