P_StRpTaxItemCount

DDL: P_STRPTAXITEMCOUNT SQL: PCNTAXLINE Type: view CONSUMPTION

P_StRpTaxItemCount is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_StRpTaxItemBoxCube) and exposes 11 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxCode, TaxItemGroupingVersion.

Data Sources (1)

SourceAliasJoin Type
I_StRpTaxItemBoxCube I_StRpTaxItemBoxCube from

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PCNTAXLINE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY TaxCode TaxCode Tax Code
KEY TaxItemGroupingVersion TaxItemGroupingVersion Tax Grping Ver.
KEY TaxBox TaxBox Tax.Bs.Gp.No.
KEY DebitCreditCode DebitCreditCode Single-Character Flag
KEY TaxItemGroup TaxItemGroup Tax doc. item number
KEY TaxDeclnAmountType TaxDeclnAmountType
ReportingDate ReportingDate
NumberOfTaxCodeLineItems

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_StRpTaxItemCount.
-- 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: PCNTAXLINE

CREATE VIEW P_StRpTaxItemCount AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  TaxCode,
  TaxItemGroupingVersion,
  TaxBox,
  DebitCreditCode,
  TaxItemGroup,
  TaxDeclnAmountType,
  ReportingDate,
  count(*) AS NumberOfTaxCodeLineItems
FROM I_StRpTaxItemBoxCube
;