P_TW_StRpNotRptdItem

DDL: P_TW_STRPNOTRPTDITEM SQL: PTWNOTRPTITEM Type: view COMPOSITE

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)

SourceAliasJoin Type
I_StRpTaxItemGrpg I_StRpTaxItemGrpg left_outer
P_TW_StRpRptdItem P_TW_StRpRptdItem left_outer

Parameters (4)

NameTypeDefault
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)

NameValueLevelField
AbapCatalog.sqlViewName PTWNOTRPTITEM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (51)

KeyFieldSource TableSource FieldDescription
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 */
;