P_CCLdgrShiftedPrevYearPer
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)
| Source | Alias | Join Type |
|---|---|---|
| I_CoCodeLdngLdgrPeriodDates | ccllpd | from |
| I_LedgerCompanyCodeCrcyRoles | ldcmp | inner |
| I_FiscalPeriodForVariant | vjfp | inner |
| I_FiscalPeriodForVariant | vmfp | inner |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA