I_TrvlAprvdFutureRequest

DDL: I_TRVLAPRVDFUTUREREQUEST Type: view_entity BASIC

Future Approved Travel Requests

I_TrvlAprvdFutureRequest is a Basic CDS View that provides data about "Future Approved Travel Requests" in SAP S/4HANA. It reads from 2 data sources (ptrv_head, ftpt_req_head) and exposes 10 fields with key fields PersonnelNumber, TravelVersionNumber, TrvlReqArePlanReq, TravelTripNumber.

Data Sources (2)

SourceAliasJoin Type
ptrv_head ptrv_head from
ftpt_req_head travelrequest inner

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
EndUserText.label Future Approved Travel Requests view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.representativeKey TravelTripNumber view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY PersonnelNumber ftpt_req_head pernr Personnel no.
KEY TravelVersionNumber ftpt_req_head requestvrs Version number
KEY TrvlReqArePlanReq ftpt_req_head plan_request Plan Request ID
KEY TravelTripNumber ftpt_req_head reinr Trip Number
TripStartDate
TripEndDate
TripReasonText
TripDestination
Country
TravelEmployeeUserIdentifier communication usrid System 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_TrvlAprvdFutureRequest.
-- 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_TrvlAprvdFutureRequest AS
SELECT
  travelrequest.pernr AS PersonnelNumber,
  travelrequest.requestvrs AS TravelVersionNumber,
  travelrequest.plan_request AS TrvlReqArePlanReq,
  travelrequest.reinr AS TravelTripNumber,
  cast( travelrequest.date_beg as vdm_datv1 preserving type ) AS TripStartDate,
  cast( travelrequest.date_end as vdm_datb1 preserving type ) AS TripEndDate,
  cast( travelrequest.request_reason as vdm_reason preserving type ) AS TripReasonText,
  cast( travelrequest.location_end as vdm_destination preserving type ) AS TripDestination,
  cast( travelrequest.country_end as vdm_ctry_reg preserving type ) AS Country,
  communication.usrid AS TravelEmployeeUserIdentifier
FROM ptrv_head
INNER JOIN ftpt_req_head AS travelrequest ON /* join condition not captured in parsed metadata */
;