I_TravelRequestNumberData

DDL: I_TRAVELREQUESTNUMBERDATA Type: view BASIC

Travel Request Number

I_TravelRequestNumberData is a Basic CDS View that provides data about "Travel Request Number" in SAP S/4HANA. It reads from 2 data sources (ptrv_head, ptrv_perio) and exposes 7 fields with key fields PersonnelNumber, TravelTripNumber.

Data Sources (2)

SourceAliasJoin Type
ptrv_head head from
ptrv_perio perio inner

Annotations (12)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName ITRVLREQNMBRDATA view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Travel Request Number view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.representativeKey TravelTripNumber view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY PersonnelNumber ptrv_head pernr Personnel no.
KEY TravelTripNumber ptrv_head reinr Trip Number
TripReasonText
TripDepartureDate
TripArrivalDate
TravelRequestIsExists ptrv_head request Request/Task
TripHasExpenses ptrv_head expenses R/P/E ID

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_TravelRequestNumberData.
-- 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 I_TravelRequestNumberData AS
SELECT
  head.pernr AS PersonnelNumber,
  head.reinr AS TravelTripNumber,
  cast( head.kunde as vdm_reason preserving type ) AS TripReasonText,
  cast( head.datv1 as vdm_datv1 preserving type ) AS TripDepartureDate,
  cast( head.datb1 as vdm_datb1 preserving type ) AS TripArrivalDate,
  head.request AS TravelRequestIsExists,
  head.expenses AS TripHasExpenses
FROM ptrv_head AS head
INNER JOIN ptrv_perio AS perio ON /* join condition not captured in parsed metadata */
;