P_RAContrBalFiscalPeriodSel

DDL: P_RACONTRBALFISCALPERIODSEL Type: view_entity COMPOSITE

P_RAContrBalFiscalPeriodSel is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_RAFiscalPeriod) and exposes 8 fields with key fields CompanyCode, AccountingPrinciple, FiscalYearPeriod.

Data Sources (1)

SourceAliasJoin Type
P_RAFiscalPeriod _RAAccountingPeriod from

Parameters (4)

NameTypeDefault
P_FiscalYearFrom fis_gjahr
P_FiscalPeriodFrom fis_poper
P_FiscalYearTo fis_gjahr
P_FiscalPeriodTo fis_poper

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_RAFiscalPeriod CompanyCode Receiver Company Code
KEY AccountingPrinciple P_RAFiscalPeriod AccountingPrinciple AP Ledger/CoCode
KEY FiscalYearPeriod P_RAFiscalPeriod FiscalYearPeriod Period/Year
FiscalYear P_RAFiscalPeriod FiscalYear G/L Fiscal Year
FiscalPeriod P_RAFiscalPeriod FiscalPeriod Tax period
FiscalYearQuarter
FiscalQuarter
FiscalQuarterNumber P_RAFiscalPeriod FiscalQuarter

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_RAContrBalFiscalPeriodSel.
-- 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.
-- Parameters: P_FiscalYearFrom : fis_gjahr, P_FiscalPeriodFrom : fis_poper, P_FiscalYearTo : fis_gjahr, P_FiscalPeriodTo : fis_poper

CREATE VIEW P_RAContrBalFiscalPeriodSel AS
SELECT
  _RAAccountingPeriod.CompanyCode AS CompanyCode,
  _RAAccountingPeriod.AccountingPrinciple AS AccountingPrinciple,
  _RAAccountingPeriod.FiscalYearPeriod AS FiscalYearPeriod,
  _RAAccountingPeriod.FiscalYear AS FiscalYear,
  _RAAccountingPeriod.FiscalPeriod AS FiscalPeriod,
  concat(concat(_RAAccountingPeriod.FiscalYear, '.Q'), _RAAccountingPeriod.FiscalQuarter) AS FiscalYearQuarter,
  concat('Q', _RAAccountingPeriod.FiscalQuarter) AS FiscalQuarter,
  _RAAccountingPeriod.FiscalQuarter AS FiscalQuarterNumber
FROM P_RAFiscalPeriod AS _RAAccountingPeriod
;