I_TripItemTP

DDL: I_TRIPITEMTP SQL: ITRIPITEMTP Type: view TRANSACTIONAL

Trip Item information

I_TripItemTP is a Transactional CDS View that provides data about "Trip Item information" in SAP S/4HANA. It reads from 2 data sources (I_TripItemDemurrageCalc, oij08_tripitm) and exposes 12 fields with key fields TripDoc, TripDocItem. It has 17 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_TripItemDemurrageCalc DemurrageCalc left_outer
oij08_tripitm oij08_tripitm from

Associations (17)

CardinalityTargetAliasCondition
[1..1] I_TripItemLocationTimeZone _TripItemLocationTimeZone $projection.LocationId = _TripItemLocationTimeZone.TSWLocationID
[1..1] I_TripHeadTP _TripHeadTP $projection.TripDoc = _TripHeadTP.TripDoc
[0..*] I_TripNominationItmTP _TripNominationItmTP $projection.TripDoc = _TripNominationItmTP.TripDoc and $projection.TripDocItem = _TripNominationItmTP.TripDocItem
[0..*] I_TripShptItmTP _TripShptItmTP $projection.TripDoc = _TripShptItmTP.TripDoc and $projection.TripDocItem = _TripShptItmTP.TripDocItem
[0..*] I_TripOutbDeliveryItemTP _TripOutbDeliveryItemTP $projection.TripDoc = _TripOutbDeliveryItemTP.TripDoc and $projection.TripDocItem = _TripOutbDeliveryItemTP.TripDocItem
[0..*] I_TripLayTimeEventsTP _TripLayTimeEventsTP $projection.TripDoc = _TripLayTimeEventsTP.TripDoc and $projection.TripDocItem = _TripLayTimeEventsTP.TripDocItem
[0..*] I_TripInfluencingEventsTP _TripInfluencingEventsTP $projection.TripDoc = _TripInfluencingEventsTP.TripDoc and $projection.TripDocItem = _TripInfluencingEventsTP.TripDocItem
[0..*] I_TripOtherEventsTP _TripOtherEventsTP $projection.TripDoc = _TripOtherEventsTP.TripDoc and $projection.TripDocItem = _TripOtherEventsTP.TripDocItem
[0..*] I_TripStakeholdersTP _TripStakeholdersTP $projection.TripDoc = _TripStakeholdersTP.TripDoc and $projection.TripDocItem = _TripStakeholdersTP.TripDocItem
[0..*] I_TripSchedOfChargesTP _TripSchedOfChargesTP $projection.TripDoc = _TripSchedOfChargesTP.TripDoc and $projection.TripDocItem = _TripSchedOfChargesTP.TripDocItem
[0..*] I_TripItemStatusVH _TripItemStatusVH $projection.TripItemStatus = _TripItemStatusVH.TripItemStatus
[0..1] I_LocationIdVH _LocationIdVH $projection.LocationId = _LocationIdVH.LocationId
[0..1] I_NominationRefDocIndVH _NominationRefDocIndVH $projection.IsReferenceDocument = _NominationRefDocIndVH.IsReferenceDocument
[1..1] I_FreightContractVH _FreightContractVH $projection.FreightContract = _FreightContractVH.FreightContract and $projection.LocationId = _FreightContractVH.LocationId
[0..1] I_FreightContractVH _FreightContractItemVH $projection.FreightContract = _FreightContractItemVH.FreightContract and $projection.FreightContractItem = _FreightContractItemVH.FreightContractItem and $projection.LocationId = _FreightContractItemVH.LocationId
[0..*] I_TripScheduleTypeVH _TripScheduleTypeVH $projection.NominationScheduleType = _TripScheduleTypeVH.NominationScheduleType
[1..1] E_TripItemTP _TripItemExtension $projection.TripDoc = _TripItemExtension.TripDoc and $projection.TripDocItem = _TripItemExtension.TripDocItem

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ITRIPITEMTP 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 ITRIPITEMTP_D view
AbapCatalog.preserveKey true view
EndUserText.label Trip Item information view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY TripDoc trip_id Trip ID
KEY TripDocItem trip_item Trip Item Number
LocationSequenceNumber seqnr Tank ID
LocationId locid Single-Character Flag
TripTransportConnectionPoint knote Points
TransportationConnectionPoint bezei TrContType name
PlantendasPlant
StorageLocation
CustomerReferenceNumber
SupplierAccountNumber
ShippingPoint
LoadingPoint

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_TripItemTP.
-- 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: ITRIPITEMTP

CREATE VIEW I_TripItemTP AS
SELECT
  trip_id AS TripDoc,
  trip_item AS TripDocItem,
  seqnr AS LocationSequenceNumber,
  locid AS LocationId,
  knote AS TripTransportConnectionPoint,
  bezei AS TransportationConnectionPoint,
  case when _TripHeadTP.TripDocType = 'N' then _TripNominationItmTP.Plant when _TripHeadTP.TripDocType = 'D' then _TripOutbDeliveryItemTP.Plant when _TripHeadTP.TripDocType = 'S' then _TripShptItmTP.Plant end as Plant AS PlantendasPlant,
  cast(0 as abap.char(4)) AS StorageLocation,
  cast(0 as abap.char(10)) AS CustomerReferenceNumber,
  cast(0 as abap.char(10)) AS SupplierAccountNumber,
  cast(0 as abap.char(4)) AS ShippingPoint,
  cast(0 as abap.char(4)) AS LoadingPoint
FROM oij08_tripitm
LEFT OUTER JOIN I_TripItemDemurrageCalc AS DemurrageCalc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_TripItemLocationTimeZone AS _TripItemLocationTimeZone ON LocationId = _TripItemLocationTimeZone.TSWLocationID  -- association [1..1]
LEFT OUTER JOIN I_TripHeadTP AS _TripHeadTP ON TripDoc = _TripHeadTP.TripDoc  -- association [1..1]
LEFT OUTER JOIN I_TripNominationItmTP AS _TripNominationItmTP ON TripDoc = _TripNominationItmTP.TripDoc AND TripDocItem = _TripNominationItmTP.TripDocItem  -- association [0..*]
LEFT OUTER JOIN I_TripShptItmTP AS _TripShptItmTP ON TripDoc = _TripShptItmTP.TripDoc AND TripDocItem = _TripShptItmTP.TripDocItem  -- association [0..*]
LEFT OUTER JOIN I_TripOutbDeliveryItemTP AS _TripOutbDeliveryItemTP ON TripDoc = _TripOutbDeliveryItemTP.TripDoc AND TripDocItem = _TripOutbDeliveryItemTP.TripDocItem  -- association [0..*]
LEFT OUTER JOIN I_TripLayTimeEventsTP AS _TripLayTimeEventsTP ON TripDoc = _TripLayTimeEventsTP.TripDoc AND TripDocItem = _TripLayTimeEventsTP.TripDocItem  -- association [0..*]
LEFT OUTER JOIN I_TripInfluencingEventsTP AS _TripInfluencingEventsTP ON TripDoc = _TripInfluencingEventsTP.TripDoc AND TripDocItem = _TripInfluencingEventsTP.TripDocItem  -- association [0..*]
LEFT OUTER JOIN I_TripOtherEventsTP AS _TripOtherEventsTP ON TripDoc = _TripOtherEventsTP.TripDoc AND TripDocItem = _TripOtherEventsTP.TripDocItem  -- association [0..*]
LEFT OUTER JOIN I_TripStakeholdersTP AS _TripStakeholdersTP ON TripDoc = _TripStakeholdersTP.TripDoc AND TripDocItem = _TripStakeholdersTP.TripDocItem  -- association [0..*]
LEFT OUTER JOIN I_TripSchedOfChargesTP AS _TripSchedOfChargesTP ON TripDoc = _TripSchedOfChargesTP.TripDoc AND TripDocItem = _TripSchedOfChargesTP.TripDocItem  -- association [0..*]
LEFT OUTER JOIN I_TripItemStatusVH AS _TripItemStatusVH ON TripItemStatus = _TripItemStatusVH.TripItemStatus  -- association [0..*]
LEFT OUTER JOIN I_LocationIdVH AS _LocationIdVH ON LocationId = _LocationIdVH.LocationId  -- association [0..1]
LEFT OUTER JOIN I_NominationRefDocIndVH AS _NominationRefDocIndVH ON IsReferenceDocument = _NominationRefDocIndVH.IsReferenceDocument  -- association [0..1]
LEFT OUTER JOIN I_FreightContractVH AS _FreightContractVH ON FreightContract = _FreightContractVH.FreightContract AND LocationId = _FreightContractVH.LocationId  -- association [1..1]
LEFT OUTER JOIN I_FreightContractVH AS _FreightContractItemVH ON FreightContract = _FreightContractItemVH.FreightContract AND FreightContractItem = _FreightContractItemVH.FreightContractItem AND LocationId = _FreightContractItemVH.LocationId  -- association [0..1]
LEFT OUTER JOIN I_TripScheduleTypeVH AS _TripScheduleTypeVH ON NominationScheduleType = _TripScheduleTypeVH.NominationScheduleType  -- association [0..*]
LEFT OUTER JOIN E_TripItemTP AS _TripItemExtension ON TripDoc = _TripItemExtension.TripDoc AND TripDocItem = _TripItemExtension.TripDocItem  -- association [1..1]
;