I_TripInfluencingEventsTP
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)
| Source | Alias | Join Type |
|---|---|---|
| oij08_tripevent | oij08_tripevent | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IINFLEVENTSTP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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