SEPMRA_I_SlsOrdToTimeDim
Projection of SO to Time Dimension
SEPMRA_I_SlsOrdToTimeDim is a CDS View that provides data about "Projection of SO to Time Dimension" in SAP S/4HANA. It reads from 1 data source (SEPM_I_SalesOrder) and exposes 11 fields with key field SalesOrderUUID. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| SEPM_I_SalesOrder | SalesOrder | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | SEPMRA_I_Month | _CreationCalendarMonth | $projection.CreationCalendarMonth = _CreationCalendarMonth.CalendarMonth |
| [0..1] | SEPMRA_I_CalendarQuarter | _CreationCalendarQuarter | $projection.CreationCalendarQuarter = _CreationCalendarQuarter.CalendarQuarter |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | SEPMRAISO2TIME | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Projection of SO to Time Dimension | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (11)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesOrderUUID | SalesOrderUUID | ||
| CreationDateTime | CreationDateTime | Timestamp | ||
| CreationCalendarDate | Timestamp | |||
| CreationCalendarYear | Timestamp | |||
| CreationCalendarMonth | Timestamp | |||
| CreationCalendarDayOfMonth | Timestamp | |||
| CreationCalendarYearMonth | Timestamp | |||
| CreationCalendarQuarter | Timestamp | |||
| char111asCreationCalendarYearQuarter | Timestamp | |||
| _CreationCalendarMonth | _CreationCalendarMonth | |||
| _CreationCalendarQuarter | _CreationCalendarQuarter |
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 SEPMRA_I_SlsOrdToTimeDim.
-- 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 SEPMRA_I_SlsOrdToTimeDim AS
SELECT
SalesOrderUUID,
CreationDateTime,
cast(left(cast(CreationDateTime as abap.char(23)), 8) as abap.dats) AS CreationCalendarDate,
cast( left( cast(CreationDateTime as abap.char(23)), 4 ) as abap.numc(4) ) AS CreationCalendarYear,
cast( substring( cast(CreationDateTime as abap.char(23)), 5, 2) as abap.numc(2) ) AS CreationCalendarMonth,
cast( substring( cast(CreationDateTime as abap.char(23)), 7, 2) as abap.numc(2) ) AS CreationCalendarDayOfMonth,
cast( left( cast(CreationDateTime as abap.char(23)), 6 ) as abap.numc(6) ) AS CreationCalendarYearMonth,
cast( left(cast(div( cast(cast(substring(cast(CreationDateTime as abap.char(23)), 5, 2) as abap.numc(2)) as abap.int4) + 2, 3) as abap.char(11)), 1) as sepmra_calendarquarter ) AS CreationCalendarQuarter,
concat( left(cast(CreationDateTime as abap.char(23)), 4), left(cast(div( cast(cast(substring(cast(CreationDateTime as abap.char(23)), 5, 2) as abap.numc(2)) as abap.int4) + 2, 3) as abap.char(11)), 1) ) as CreationCalendarYearQuarter AS char111asCreationCalendarYearQuarter
FROM SEPM_I_SalesOrder AS SalesOrder
LEFT OUTER JOIN SEPMRA_I_Month AS _CreationCalendarMonth ON CreationCalendarMonth = _CreationCalendarMonth.CalendarMonth -- association [0..1]
LEFT OUTER JOIN SEPMRA_I_CalendarQuarter AS _CreationCalendarQuarter ON CreationCalendarQuarter = _CreationCalendarQuarter.CalendarQuarter -- association [0..1]
;
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