SEPMRA_I_SlsOrdToTimeDim

DDL: SEPMRA_I_SLSORDTOTIMEDIM Type: view

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)

SourceAliasJoin Type
SEPM_I_SalesOrder SalesOrder from

Associations (2)

CardinalityTargetAliasCondition
[0..1] SEPMRA_I_Month _CreationCalendarMonth $projection.CreationCalendarMonth = _CreationCalendarMonth.CalendarMonth
[0..1] SEPMRA_I_CalendarQuarter _CreationCalendarQuarter $projection.CreationCalendarQuarter = _CreationCalendarQuarter.CalendarQuarter

Annotations (9)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;