P_SG_StRpTaxItemBoxCube0
P_SG_StRpTaxItemBoxCube0 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_StRpTaxItem) and exposes 55 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, TaxCode.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_StRpTaxItem | I_StRpTaxItem | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.sqlViewName | PSGSTRPTAXITMBC0 | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (55)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_StRpTaxItem | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | I_StRpTaxItem | AccountingDocument | Journal Entry |
| KEY | FiscalYear | I_StRpTaxItem | FiscalYear | G/L Fiscal Year |
| KEY | TaxItem | TaxItem | Tax Item | |
| KEY | TaxCode | I_StRpTaxItem | TaxCode | Tax Code |
| KEY | TransactionTypeDetermination | I_StRpTaxItem | TransactionTypeDetermination | Transaction Key |
| KEY | TaxBox | TaxBox | Tax.Bs.Gp.No. | |
| KEY | TaxDeclnAmountType | TaxDeclnAmountType | ||
| KEY | TaxItemGroupingVersion | TaxItemGroupingVersion | Tax Grping Ver. | |
| KEY | TaxBoxStructureType | TaxBoxStructureType | ||
| KEY | TaxGroup | TaxGroup | Tax Group | |
| ValidFrom | ValidFrom | Vers.Valid From | ||
| OriginalReferenceDocument | ||||
| AccountingDocumentHeaderText | AccountingDocumentHeaderText | Doc.Header Text | ||
| TransactionCode | _AccountingDocument | TransactionCode | Transaction Code | |
| DocumentReferenceID | I_StRpTaxItem | DocumentReferenceID | Reference | |
| JrnlEntryCntrySpecificRef2 | ||||
| PostingDate | PostingDate | Posting Date for GR | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| DebitCreditCode | I_StRpTaxItem | DebitCreditCode | Single-Character Flag | |
| TaxRate | I_StRpTaxItem | TaxRate | Tax Rate | |
| TaxRateValidityStartDate | I_StRpTaxItem | TaxRateValidityStartDate | Tax Rate Validity Start Date | |
| GLAccount | GLAccount | General Ledger | ||
| TaxItemGroup | TaxItemGroup | Tax doc. item number | ||
| TaxJurisdiction | TaxJurisdiction | Tax Jurisdiction | ||
| Ledger | Ledger | Ledger | ||
| TaxReportingDate | ||||
| TaxReportingDocumentDate | TaxReportingDocumentDate | |||
| ReportingCountry | ReportingCountry | |||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| BusinessPartnerCountry | BusinessPartnerCountry | BP Ctry/Reg. | ||
| BusinessPartnerName | BusinessPartnerName | Extracted Customer Name | ||
| CustomerSupplierAddress | CustomerSupplierAddress | |||
| ReferenceDocumentType | ReferenceDocumentType | Reference Document Type | ||
| TaxNumber1 | TaxNumber1 | VAT Reg. No. | ||
| TaxNumber3 | TaxNumber3 | |||
| TaxGroupOperation | TaxGroupOperation | |||
| ReportingCurrency | ReportingCurrency | Currency | ||
| TaxBaseAmountInRptgCrcy | TaxBaseAmountInRptgCrcy | Base Amount | ||
| TaxAmountInRptgCrcy | TaxAmountInRptgCrcy | Tax Rept. Crcy | ||
| CountryCurrency | CountryCurrency | Currency | ||
| TaxBaseAmountInCountryCrcy | TaxBaseAmountInCountryCrcy | Base Amount | ||
| TaxAmountInCountryCrcy | TaxAmountInCountryCrcy | Tax Rept. Crcy | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| TaxBaseAmountInTransCrcy | TaxBaseAmountInTransCrcy | Value-Added Tax | ||
| TaxAmountInTransCrcy | I_StRpTaxItem | TaxAmount | Tax Amt in Rptg Crcy | |
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| TaxBaseAmountInCoCodeCrcy | TaxBaseAmountInCoCodeCrcy | TxBaseAmt CoCodeCrcy | ||
| TaxAmountInCoCodeCrcy | TaxAmountInCoCodeCrcy | Tax Amount in Company Code Currency | ||
| AdditionalCurrency1 | AdditionalCurrency1 | Local curr. 2 | ||
| TaxBaseAmtInAdditionalCrcy1 | TaxBaseAmtInAdditionalCrcy1 | LC 2 Base | ||
| TaxAmountInAdditionalCurrency1 | TaxAmountInAdditionalCurrency1 | LC 2 Tax | ||
| AdditionalCurrency2 | AdditionalCurrency2 | Local curr. 3 | ||
| TaxBaseAmtInAdditionalCrcy2 | TaxBaseAmtInAdditionalCrcy2 | LC 3 Base | ||
| TaxAmountInAdditionalCurrency2 | TaxAmountInAdditionalCurrency2 | LC 3 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 P_SG_StRpTaxItemBoxCube0.
-- 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_SG_StRpTaxItemBoxCube0 AS
SELECT
I_StRpTaxItem.CompanyCode AS CompanyCode,
I_StRpTaxItem.AccountingDocument AS AccountingDocument,
I_StRpTaxItem.FiscalYear AS FiscalYear,
TaxItem,
I_StRpTaxItem.TaxCode AS TaxCode,
I_StRpTaxItem.TransactionTypeDetermination AS TransactionTypeDetermination,
TaxBox,
TaxDeclnAmountType,
TaxItemGroupingVersion,
TaxBoxStructureType,
TaxGroup,
ValidFrom,
I_StRpTaxItem._AccountingDocument.OriginalReferenceDocument AS OriginalReferenceDocument,
AccountingDocumentHeaderText,
_AccountingDocument.TransactionCode AS TransactionCode,
I_StRpTaxItem.DocumentReferenceID AS DocumentReferenceID,
I_StRpTaxItem._JournalEntry.JrnlEntryCntrySpecificRef2 AS JrnlEntryCntrySpecificRef2,
PostingDate,
DocumentDate,
I_StRpTaxItem.DebitCreditCode AS DebitCreditCode,
I_StRpTaxItem.TaxRate AS TaxRate,
I_StRpTaxItem.TaxRateValidityStartDate AS TaxRateValidityStartDate,
GLAccount,
TaxItemGroup,
TaxJurisdiction,
Ledger,
case when ( TaxReportingDate = '00000000' ) then PostingDate else TaxReportingDate end AS TaxReportingDate,
TaxReportingDocumentDate,
ReportingCountry,
BusinessPartner,
BusinessPartnerCountry,
BusinessPartnerName,
CustomerSupplierAddress,
ReferenceDocumentType,
TaxNumber1,
TaxNumber3,
TaxGroupOperation,
ReportingCurrency,
TaxBaseAmountInRptgCrcy,
TaxAmountInRptgCrcy,
CountryCurrency,
TaxBaseAmountInCountryCrcy,
TaxAmountInCountryCrcy,
DocumentCurrency,
TaxBaseAmountInTransCrcy,
I_StRpTaxItem.TaxAmount AS TaxAmountInTransCrcy,
CompanyCodeCurrency,
TaxBaseAmountInCoCodeCrcy,
TaxAmountInCoCodeCrcy,
AdditionalCurrency1,
TaxBaseAmtInAdditionalCrcy1,
TaxAmountInAdditionalCurrency1,
AdditionalCurrency2,
TaxBaseAmtInAdditionalCrcy2,
TaxAmountInAdditionalCurrency2
FROM I_StRpTaxItem
;
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