R_FHC_FCAL_COMBINED
Combined Factory Calendar View
R_FHC_FCAL_COMBINED is a CDS View that provides data about "Combined Factory Calendar View" in SAP S/4HANA. It reads from 2 data sources (fhc_c_fcal, tfacd) and exposes 28 fields with key field FactoryCalendarLegacyID. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| fhc_c_fcal | fhc_fcal | union |
| tfacd | scal_fcal | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | R_FHC_FCAL_COMBINED_TEXT | _Text | $projection.FactoryCalendarLegacyID = _Text.FactoryCalendarLegacyID |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Combined Factory Calendar View | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | FactoryCalendarLegacyID | tfacd | ident | Tree Structure |
| FactoryCalendarID | Factory Cal. ID | |||
| FctryCalendarValidityStartDate | Validity Start Time | |||
| FactoryCalendarValidityEndDate | Validity End Time | |||
| PublicHolidayCalendarID | Holiday Cal. ID | |||
| FctryCalMondayIsWorkingDay | tfacd | motag | Work Monday | |
| FctryCalTuesdayIsWorkingDay | tfacd | ditag | Work Tuesday | |
| FctryCalWednesdayIsWorkingDay | tfacd | miwch | Work Wednesday | |
| FctryCalThursdayIsWorkingDay | tfacd | dotag | Work Thursday | |
| FctryCalFridayIsWorkingDay | tfacd | frtag | Work Friday | |
| FctryCalSaturdayIsWorkingDay | tfacd | satag | Work Saturday | |
| FctryCalSundayIsWorkingDay | tfacd | sotag | Work Sunday | |
| FctryCalHolidayIsWorkingDay | tfacd | fetag | Work Holiday | |
| FactoryCalendarStartDateValue | Factory Date | |||
| FactoryCalendarID | fhc_c_fcal | factorycalendar_id | Factory Cal. ID | |
| FctryCalendarValidityStartDate | fhc_c_fcal | valid_from | Validity Start Time | |
| FactoryCalendarValidityEndDate | fhc_c_fcal | valid_to | Validity End Time | |
| PublicHolidayCalendarID | fhc_c_fcal | holidaycalendar_id | Holiday Cal. ID | |
| FctryCalMondayIsWorkingDay | fhc_c_fcal | work_monday | Work Monday | |
| FctryCalTuesdayIsWorkingDay | fhc_c_fcal | work_tuesday | Work Tuesday | |
| FctryCalWednesdayIsWorkingDay | fhc_c_fcal | work_wednesday | Work Wednesday | |
| FctryCalThursdayIsWorkingDay | fhc_c_fcal | work_thursday | Work Thursday | |
| FctryCalFridayIsWorkingDay | fhc_c_fcal | work_friday | Work Friday | |
| FctryCalSaturdayIsWorkingDay | fhc_c_fcal | work_saturday | Work Saturday | |
| FctryCalSundayIsWorkingDay | fhc_c_fcal | work_sunday | Work Sunday | |
| FctryCalHolidayIsWorkingDay | fhc_c_fcal | work_holiday | Work Holiday | |
| FactoryCalendarStartDateValue | fhc_c_fcal | factorydate_start | Factory Date | |
| _Text | _Text |
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 R_FHC_FCAL_COMBINED.
-- 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.
CREATE VIEW R_FHC_FCAL_COMBINED AS
SELECT
scal_fcal.ident AS FactoryCalendarLegacyID,
cast( concat('Z_' , scal_fcal.ident ) as fhc_fcalid ) AS FactoryCalendarID,
cast( concat( scal_fcal.vjahr , '0101' ) as fhc_date_from ) AS FctryCalendarValidityStartDate,
cast( concat( scal_fcal.bjahr , '1231' ) as fhc_date_to ) AS FactoryCalendarValidityEndDate,
cast( scal_fcal.hocid as fhc_hcalid ) AS PublicHolidayCalendarID,
scal_fcal.motag AS FctryCalMondayIsWorkingDay,
scal_fcal.ditag AS FctryCalTuesdayIsWorkingDay,
scal_fcal.miwch AS FctryCalWednesdayIsWorkingDay,
scal_fcal.dotag AS FctryCalThursdayIsWorkingDay,
scal_fcal.frtag AS FctryCalFridayIsWorkingDay,
scal_fcal.satag AS FctryCalSaturdayIsWorkingDay,
scal_fcal.sotag AS FctryCalSundayIsWorkingDay,
scal_fcal.fetag AS FctryCalHolidayIsWorkingDay,
cast( scal_fcal.basis as fhc_factorydate ) AS FactoryCalendarStartDateValue
FROM tfacd AS scal_fcal
LEFT OUTER JOIN R_FHC_FCAL_COMBINED_TEXT AS _Text ON FactoryCalendarLegacyID = _Text.FactoryCalendarLegacyID -- association [0..*]
-- UNION with additional select branch(es): fhc_c_fcal
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- 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