I_TripInfluencingEventsTP

DDL: I_TRIPINFLUENCINGEVENTSTP SQL: IINFLEVENTSTP Type: view TRANSACTIONAL

Trip Laytime influencing events

I_TripInfluencingEventsTP is a Transactional CDS View that provides data about "Trip Laytime influencing events" in SAP S/4HANA. It reads from 1 data source (oij08_tripevent) and exposes 17 fields with key fields TripDoc, TripDocItem, TripEventNumber, TripEventLineType. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
oij08_tripevent oij08_tripevent from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_TripItemTP _TripItemTP $projection.TripDoc = _TripItemTP.TripDoc and $projection.TripDocItem = _TripItemTP.TripDocItem
[1..1] I_TripHeadTP _TripHeadTP $projection.TripDoc = _TripHeadTP.TripDoc
[0..1] I_ReasonCodeVH _ReasonCodeVH $projection.ReasonCode = _ReasonCodeVH.ReasonCode and $projection.ReasonCodeDescription = _ReasonCodeVH.ReasonCodeDescription

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName IINFLEVENTSTP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.transactionalProcessingEnabled true view
ObjectModel.createEnabled EXTERNAL_CALCULATION view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
ObjectModel.updateEnabled EXTERNAL_CALCULATION view
ObjectModel.writeDraftPersistence IINFLEVENTSTP_D view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Trip Laytime influencing events view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY TripDoc trip_id Trip ID
KEY TripDocItem trip_item Trip Item Number
KEY TripEventNumber event_nr Event number
KEY TripEventLineType linetype Type of line
TripEventType event Time
TripEventRate rate Tax Rate
ReasonCode rsncode Reason Code
ReasonCodeDescription descr WSS Profile
LocationTimeZone _TripItemTP LocationTimeZone
clientNULLastimestampasActualEndDateTime
TripEvtActualStartDate astdtf Strt Date-From
TripEvtActualStartTime asttmf Strt Time-From
TripEvtActualEndDate aeddtt Single-Character Flag
TripEvtActualEndTime aedtmt Single-Character Flag
_TripHeadTP _TripHeadTP
_TripItemTP _TripItemTP
_ReasonCodeVH _ReasonCodeVH

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 I_TripInfluencingEventsTP.
-- 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: IINFLEVENTSTP

CREATE VIEW I_TripInfluencingEventsTP AS
SELECT
  trip_id AS TripDoc,
  trip_item AS TripDocItem,
  event_nr AS TripEventNumber,
  linetype AS TripEventLineType,
  event AS TripEventType,
  rate AS TripEventRate,
  rsncode AS ReasonCode,
  descr AS ReasonCodeDescription,
  _TripItemTP.LocationTimeZone AS LocationTimeZone,
  cast( dats_tims_to_tstmp( aeddtt, aedtmt, 'UTC', $session.client, 'NULL' ) as timestamp ) as ActualEndDateTime AS clientNULLastimestampasActualEndDateTime,
  astdtf AS TripEvtActualStartDate,
  asttmf AS TripEvtActualStartTime,
  aeddtt AS TripEvtActualEndDate,
  aedtmt AS TripEvtActualEndTime
FROM oij08_tripevent
LEFT OUTER JOIN I_TripItemTP AS _TripItemTP ON TripDoc = _TripItemTP.TripDoc AND TripDocItem = _TripItemTP.TripDocItem  -- association [1..1]
LEFT OUTER JOIN I_TripHeadTP AS _TripHeadTP ON TripDoc = _TripHeadTP.TripDoc  -- association [1..1]
LEFT OUTER JOIN I_ReasonCodeVH AS _ReasonCodeVH ON ReasonCode = _ReasonCodeVH.ReasonCode AND ReasonCodeDescription = _ReasonCodeVH.ReasonCodeDescription  -- association [0..1]
;