I_TripPurchaseContractVH

DDL: I_TRIPPURCHASECONTRACTVH SQL: ITRPPCNTRT Type: view BASIC

Value Help for Purchase Contract

I_TripPurchaseContractVH is a Basic CDS View that provides data about "Value Help for Purchase Contract" in SAP S/4HANA. It reads from 4 data sources (ekko, I_TripPurchaseDocItemVH, oij_el_cp_layt, oij_el_doc_mot) and exposes 10 fields with key fields PurchaseContract, PurchaseContractItem. It has 4 associations to related views.

Data Sources (4)

SourceAliasJoin Type
ekko ekko from
I_TripPurchaseDocItemVH I_TripPurchaseDocItemVH left_outer
oij_el_cp_layt oij_el_cp_layt left_outer
oij_el_doc_mot oij_el_doc_mot left_outer

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_NominationVehicleIdVH _VehicleId $projection.VehicleId = _VehicleId.VehicleId
[0..1] I_Supplier _ConnectingShipper $projection.ConnectingShipper = _ConnectingShipper.Supplier
[0..1] I_Supplier _ConnectingCarrier $projection.ConnectingCarrier = _ConnectingCarrier.Supplier
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName ITRPPCNTRT view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #BASIC view
Search.searchable true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Value Help for Purchase Contract view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract ekko ebeln Purchase Contract
KEY PurchaseContractItem Purchase Contract Item
VehicleId oij_el_cp_layt vehicle Vehicle Number
ConnectingCarrier oij_el_doc_mot co_carr Single-Character Flag
ConnectingShipper oij_el_doc_mot co_ship Single-Character Flag
Supplier ekko lifnr Vendor no.
_VehicleId _VehicleId
_ConnectingShipper _ConnectingShipper
_ConnectingCarrier _ConnectingCarrier
_Supplier _Supplier

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_TripPurchaseContractVH.
-- 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: ITRPPCNTRT

CREATE VIEW I_TripPurchaseContractVH AS
SELECT
  ekko.ebeln AS PurchaseContract,
  substring(I_TripPurchaseDocItemVH.PurchaseContractItem,2,6) AS PurchaseContractItem,
  oij_el_cp_layt.vehicle AS VehicleId,
  oij_el_doc_mot.co_carr AS ConnectingCarrier,
  oij_el_doc_mot.co_ship AS ConnectingShipper,
  ekko.lifnr AS Supplier
FROM ekko
LEFT OUTER JOIN I_TripPurchaseDocItemVH ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN oij_el_cp_layt ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN oij_el_doc_mot ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_NominationVehicleIdVH AS _VehicleId ON VehicleId = _VehicleId.VehicleId  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _ConnectingShipper ON ConnectingShipper = _ConnectingShipper.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _ConnectingCarrier ON ConnectingCarrier = _ConnectingCarrier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
;