P_PH_StRpNotRptdTaxItem

DDL: P_PH_STRPNOTRPTDTAXITEM SQL: PSRPHNTRPTDTXITM Type: view CONSUMPTION

P_PH_StRpNotRptdTaxItem is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (C_StRpRptdJournalEntry, I_StRpTaxItemLog) and exposes 15 fields with key fields CompanyCode, AccountingDocument, FiscalYear.

Data Sources (2)

SourceAliasJoin Type
C_StRpRptdJournalEntry C_StRpRptdJournalEntry left_outer
I_StRpTaxItemLog I_StRpTaxItemLog from

Parameters (3)

NameTypeDefault
P_ReportingEntity srf_reporting_entity
P_ReportCategory srf_rep_cat_id
P_ReportRun srf_report_run_id

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName PSRPHNTRPTDTXITM view
VDM.viewType #CONSUMPTION view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_StRpTaxItemLog CompanyCode Receiver Company Code
KEY AccountingDocument I_StRpTaxItemLog AccountingDocument Journal Entry
KEY FiscalYear I_StRpTaxItemLog FiscalYear G/L Fiscal Year
DocumentDate DocumentDate Journal Entry Date
PostingDate PostingDate Posting Date for GR
ReportingDate ReportingDate
TaxReportingDate TaxReportingDate Tax Reporting Date
TaxCode TaxCode Tax Code
GLAccount GLAccount General Ledger
BusinessPlace BusinessPlace Business place
TaxJurisdiction TaxJurisdiction Tax Jurisdiction
LowestLevelTaxJurisdiction LowestLevelTaxJurisdiction Jurisdict. Code
StatryRptgEntity
StatryRptCategory
StatryRptRunID

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_StRpNotRptdTaxItem.
-- 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: PSRPHNTRPTDTXITM
-- Parameters: P_ReportingEntity : srf_reporting_entity, P_ReportCategory : srf_rep_cat_id, P_ReportRun : srf_report_run_id

CREATE VIEW P_PH_StRpNotRptdTaxItem AS
SELECT
  I_StRpTaxItemLog.CompanyCode AS CompanyCode,
  I_StRpTaxItemLog.AccountingDocument AS AccountingDocument,
  I_StRpTaxItemLog.FiscalYear AS FiscalYear,
  DocumentDate,
  PostingDate,
  ReportingDate,
  TaxReportingDate,
  TaxCode,
  GLAccount,
  BusinessPlace,
  TaxJurisdiction,
  LowestLevelTaxJurisdiction,
  $parameters.P_ReportingEntity AS StatryRptgEntity,
  $parameters.P_ReportCategory AS StatryRptCategory,
  $parameters.P_ReportRun AS StatryRptRunID
FROM I_StRpTaxItemLog
LEFT OUTER JOIN C_StRpRptdJournalEntry ON /* join condition not captured in parsed metadata */
;