P_FctryClndrDate2
P_FctryClndrDate2 is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (I_CalendarDate, tfacs) and exposes 28 fields.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CalendarDate | Date | from |
| tfacs | FactoryCalendar | inner |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_CountryCode | SMI_COUNTRYCODE_FCTRYCLNDR |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFCTRYCLNDRDATE2 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| ClientDependent | true | view | |
| VDM.viewType | #BASIC | view |
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CalendarYear | I_CalendarDate | CalendarYear | Year | |
| CalendarMonth | I_CalendarDate | CalendarMonth | Calendar Month | |
| CalendarWeek | I_CalendarDate | CalendarWeek | Calendar Week | |
| CalendarQuarter | I_CalendarDate | CalendarQuarter | Calendar Quarter | |
| YearQuarter | I_CalendarDate | YearQuarter | Year Quarter | |
| YearMonth | I_CalendarDate | YearMonth | Year Month | |
| YearWeek | I_CalendarDate | YearWeek | Year and Calendar Week | |
| CalendarDate | I_CalendarDate | CalendarDate | Calendar Date | |
| CalendarDay | I_CalendarDate | CalendarDay | Occur Day in a Month | |
| WeekDay | I_CalendarDate | WeekDay | Weekdays | |
| ident | tfacs | ident | Tree Structure | |
| jahr | tfacs | jahr | Year stored | |
| mon01 | tfacs | mon01 | Days in month | |
| mon02 | tfacs | mon02 | Days in month | |
| mon03 | tfacs | mon03 | Days in month | |
| mon04 | tfacs | mon04 | Days in month | |
| mon05 | tfacs | mon05 | Days in month | |
| mon06 | tfacs | mon06 | Days in month | |
| mon07 | tfacs | mon07 | Days in month | |
| mon08 | tfacs | mon08 | Days in month | |
| mon09 | tfacs | mon09 | Days in month | |
| mon10 | tfacs | mon10 | Days in month | |
| mon11 | tfacs | mon11 | Days in month | |
| mon12 | tfacs | mon12 | Days in month | |
| basis | tfacs | basis | Start days | |
| fenum | tfacs | fenum | Number of days | |
| wenum | tfacs | wenum | No. workdays | |
| load | tfacs | load | Buffer flag |
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_FctryClndrDate2.
-- 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: PFCTRYCLNDRDATE2
-- Parameters: P_CountryCode : SMI_COUNTRYCODE_FCTRYCLNDR
CREATE VIEW P_FctryClndrDate2 AS
SELECT
Date.CalendarYear AS CalendarYear,
Date.CalendarMonth AS CalendarMonth,
Date.CalendarWeek AS CalendarWeek,
Date.CalendarQuarter AS CalendarQuarter,
Date.YearQuarter AS YearQuarter,
Date.YearMonth AS YearMonth,
Date.YearWeek AS YearWeek,
Date.CalendarDate AS CalendarDate,
Date.CalendarDay AS CalendarDay,
Date.WeekDay AS WeekDay,
FactoryCalendar.ident AS ident,
FactoryCalendar.jahr AS jahr,
FactoryCalendar.mon01 AS mon01,
FactoryCalendar.mon02 AS mon02,
FactoryCalendar.mon03 AS mon03,
FactoryCalendar.mon04 AS mon04,
FactoryCalendar.mon05 AS mon05,
FactoryCalendar.mon06 AS mon06,
FactoryCalendar.mon07 AS mon07,
FactoryCalendar.mon08 AS mon08,
FactoryCalendar.mon09 AS mon09,
FactoryCalendar.mon10 AS mon10,
FactoryCalendar.mon11 AS mon11,
FactoryCalendar.mon12 AS mon12,
FactoryCalendar.basis AS basis,
FactoryCalendar.fenum AS fenum,
FactoryCalendar.wenum AS wenum,
FactoryCalendar.load AS load
FROM I_CalendarDate AS Date
INNER JOIN tfacs AS FactoryCalendar 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