P_TW_StRpNotRptdItem
P_TW_StRpNotRptdItem is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_StRpTaxItemGrpg, P_TW_StRpRptdItem) and exposes 51 fields with key fields CompanyCode, AccountingDocument, TaxItem, TaxGroup.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_StRpTaxItemGrpg | I_StRpTaxItemGrpg | left_outer |
| P_TW_StRpRptdItem | P_TW_StRpRptdItem | left_outer |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id | |
| P_StatryRptRunID | srf_report_run_id | |
| P_StatryRptRunType | srf_report_run_type |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PTWNOTRPTITEM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (51)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_StRpTaxItem | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | I_StRpTaxItem | AccountingDocument | Journal Entry |
| KEY | TaxItem | I_StRpTaxItem | TaxItem | Tax Item |
| I_TaxItemGFNchange | ||||
| FiscalYear | ||||
| KEY | TaxGroup | I_StRpTaxItemGrpg | TaxGroup | Tax Group |
| CE2005 | ||||
| TaxBox | ||||
| CE2005 | ||||
| TaxDeclnAmountType | ||||
| CE2005 | ||||
| TransactionTypeDetermination | ||||
| CE2005 | ||||
| DebitCreditCode | ||||
| ReportingDate | ||||
| TaxCode | I_StRpTaxItem | TaxCode | Tax Code | |
| TaxRate | I_StRpTaxItem | TaxRate | Tax Rate | |
| TaxRateValidityStartDate | I_StRpTaxItem | TaxRateValidityStartDate | Tax Rate Validity Start Date | |
| TaxNumber1 | TaxNumber1 | VAT Reg. No. | ||
| DocumentReferenceID | DocumentReferenceID | Reference | ||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| TaxType | TaxType | Tax Type | ||
| IsReversal | ||||
| IsReversed | ||||
| ReverseDocument | ||||
| ReverseDocumentFiscalYear | ||||
| OriginalReferenceDocument | ||||
| ReferenceDocumentType | ||||
| NmbrOfPages | ||||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| TaxBaseAmountInCoCodeCrcy | TaxBaseAmountInCoCodeCrcy | TxBaseAmt CoCodeCrcy | ||
| TaxAmountInCoCodeCrcy | TaxAmountInCoCodeCrcy | Tax Amount in Company Code Currency | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| TaxReportingDate | TaxReportingDate | Tax Reporting Date | ||
| TaxItemGroup | TaxItemGroup | Tax doc. item number | ||
| AccountingDocumentType | I_StRpTaxItem | AccountingDocumentType | Journal Entry Type | |
| GLAccount | GLAccount | General Ledger | ||
| BusinessPlace | BusinessPlace | Business place | ||
| TaxJurisdiction | TaxJurisdiction | Tax Jurisdiction | ||
| LowestLevelTaxJurisdiction | LowestLevelTaxJurisdiction | Jurisdict. Code | ||
| TaxDeclnAmountType | ||||
| ReportingCountry | ReportingCountry | |||
| TaxItemGroupingVersion | TaxItemGroupingVersion | Tax Grping Ver. | ||
| _AccountingDocument | I_StRpTaxItem | _AccountingDocument | ||
| _ReceivablesPayablesItem | I_StRpTaxItem | _ReceivablesPayablesItem | ||
| _OneTimeAccountBP | I_StRpTaxItem | _OneTimeAccountBP | ||
| StatryRptgEntity | ||||
| StatryRptCategory | ||||
| StatryRptRunID | ||||
| StatryRptRunType |
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_TW_StRpNotRptdItem.
-- 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: PTWNOTRPTITEM
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id, P_StatryRptRunType : srf_report_run_type
CREATE VIEW P_TW_StRpNotRptdItem AS
SELECT
I_StRpTaxItem.CompanyCode AS CompanyCode,
I_StRpTaxItem.AccountingDocument AS AccountingDocument,
I_StRpTaxItem.TaxItem AS TaxItem,
AccountingDocumentItem => TaxItem key I_StRpTaxItem.FiscalYear AS FiscalYear,
I_StRpTaxItemGrpg.TaxGroup AS TaxGroup,
add the key TaxGroup as I_STRPTAXITEMBOXCUBE add it as key to improve performance (avoid to use DISTINCT) key I_StRpTaxItemGrpg.TaxBox AS TaxBox,
add the key TaxBox as I_STRPTAXITEMBOXCUBE add it as key to improve performance (avoid to use DISTINCT) key I_StRpTaxItemGrpg.TaxDeclnAmountType AS TaxDeclnAmountType,
add the key TaxDeclnAmountType as I_STRPTAXITEMBOXCUBE add it as key to improve performance (avoid to use DISTINCT) key I_StRpTaxItem.TransactionTypeDetermination AS TransactionTypeDetermination,
add the key TransactionTypeDetermination as I_STRPTAXITEMBOXCUBE add it as key to improve performance (avoid to use DISTINCT) I_StRpTaxItem.DebitCreditCode AS DebitCreditCode,
I_StRpTaxItem.TaxCode AS TaxCode,
I_StRpTaxItem.TaxRate AS TaxRate,
I_StRpTaxItem.TaxRateValidityStartDate AS TaxRateValidityStartDate,
TaxNumber1,
DocumentReferenceID,
BusinessPartner,
TaxType,
I_StRpTaxItem._AccountingDocument.IsReversal AS IsReversal,
I_StRpTaxItem._AccountingDocument.IsReversed AS IsReversed,
I_StRpTaxItem._AccountingDocument.ReverseDocument AS ReverseDocument,
I_StRpTaxItem._AccountingDocument.ReverseDocumentFiscalYear AS ReverseDocumentFiscalYear,
I_StRpTaxItem._AccountingDocument.OriginalReferenceDocument AS OriginalReferenceDocument,
I_StRpTaxItem._AccountingDocument.ReferenceDocumentType AS ReferenceDocumentType,
I_StRpTaxItem._AccountingDocument.NmbrOfPages AS NmbrOfPages,
CompanyCodeCurrency,
TaxBaseAmountInCoCodeCrcy,
TaxAmountInCoCodeCrcy,
PostingDate,
DocumentDate,
TaxReportingDate,
TaxItemGroup,
I_StRpTaxItem.AccountingDocumentType AS AccountingDocumentType,
GLAccount,
BusinessPlace,
TaxJurisdiction,
LowestLevelTaxJurisdiction,
ReportingCountry,
TaxItemGroupingVersion,
I_StRpTaxItem._AccountingDocument AS _AccountingDocument,
I_StRpTaxItem._ReceivablesPayablesItem AS _ReceivablesPayablesItem,
I_StRpTaxItem._OneTimeAccountBP AS _OneTimeAccountBP,
$parameters.P_StatryRptgEntity AS StatryRptgEntity,
$parameters.P_StatryRptCategory AS StatryRptCategory,
$parameters.P_StatryRptRunID AS StatryRptRunID,
$parameters.P_StatryRptRunType AS StatryRptRunType
LEFT OUTER JOIN I_StRpTaxItemGrpg ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_TW_StRpRptdItem 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