P_CCLdgrShiftedPrevYearPer

DDL: P_CCLDGRSHIFTEDPREVYEARPER SQL: PCCLDRSHIFTPYPER Type: view BASIC

P_CCLdgrShiftedPrevYearPer is a Basic CDS View in SAP S/4HANA. It reads from 4 data sources (I_CoCodeLdngLdgrPeriodDates, I_LedgerCompanyCodeCrcyRoles, I_FiscalPeriodForVariant, I_FiscalPeriodForVariant) and exposes 12 fields with key fields CompanyCode, Ledger.

Data Sources (4)

SourceAliasJoin Type
I_CoCodeLdngLdgrPeriodDates ccllpd from
I_LedgerCompanyCodeCrcyRoles ldcmp inner
I_FiscalPeriodForVariant vjfp inner
I_FiscalPeriodForVariant vmfp inner

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PCCLDRSHIFTPYPER view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #BASIC view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_CoCodeLdngLdgrPeriodDates CompanyCode Receiver Company Code
KEY Ledger I_LedgerCompanyCodeCrcyRoles Ledger Ledger
PreviousFiscalPeriod I_FiscalPeriodForVariant FiscalPeriod Tax period
PreviousFiscalPeriodFiscalYear I_FiscalPeriodForVariant FiscalYear G/L Fiscal Year
PreviousFiscalYearPeriod I_FiscalPeriodForVariant FiscalYearPeriod Period/Year
PreviousFiscalPeriodStartDate I_FiscalPeriodForVariant FiscalPeriodStartDate Start Date
PreviousFiscalPeriodEndDate I_FiscalPeriodForVariant FiscalPeriodEndDate End Date
PrevFiscalYearLastFiscalPeriod I_FiscalPeriodForVariant FiscalPeriod Tax period
PreviousFiscalYear I_FiscalPeriodForVariant FiscalYear G/L Fiscal Year
PrevFsclYearLastFsclYearPeriod I_FiscalPeriodForVariant FiscalYearPeriod Period/Year
PrevFsclYrLastFsclPerdStrtDate I_FiscalPeriodForVariant FiscalPeriodStartDate Start Date
PrevFsclYrLastFsclPerdEndDate I_FiscalPeriodForVariant FiscalPeriodEndDate End Date

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_CCLdgrShiftedPrevYearPer.
-- 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: PCCLDRSHIFTPYPER

CREATE VIEW P_CCLdgrShiftedPrevYearPer AS
SELECT
  ccllpd.CompanyCode AS CompanyCode,
  ldcmp.Ledger AS Ledger,
  vmfp.FiscalPeriod AS PreviousFiscalPeriod,
  vmfp.FiscalYear AS PreviousFiscalPeriodFiscalYear,
  vmfp.FiscalYearPeriod AS PreviousFiscalYearPeriod,
  vmfp.FiscalPeriodStartDate AS PreviousFiscalPeriodStartDate,
  vmfp.FiscalPeriodEndDate AS PreviousFiscalPeriodEndDate,
  vjfp.FiscalPeriod AS PrevFiscalYearLastFiscalPeriod,
  vjfp.FiscalYear AS PreviousFiscalYear,
  vjfp.FiscalYearPeriod AS PrevFsclYearLastFsclYearPeriod,
  vjfp.FiscalPeriodStartDate AS PrevFsclYrLastFsclPerdStrtDate,
  vjfp.FiscalPeriodEndDate AS PrevFsclYrLastFsclPerdEndDate
FROM I_CoCodeLdngLdgrPeriodDates AS ccllpd
INNER JOIN I_LedgerCompanyCodeCrcyRoles AS ldcmp ON /* join condition not captured in parsed metadata */
INNER JOIN I_FiscalPeriodForVariant AS vmfp ON /* join condition not captured in parsed metadata */
INNER JOIN I_FiscalPeriodForVariant AS vjfp ON /* join condition not captured in parsed metadata */
;