I_TravelReqFrameworkData
Travel Request Framework Data
I_TravelReqFrameworkData is a Basic CDS View that provides data about "Travel Request Framework Data" in SAP S/4HANA. It reads from 1 data source (ftpt_req_head) and exposes 44 fields with key fields PersonnelNumber, TravelTripNumber, TravelVersionNumber, TrvlReqArePlanReq. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ftpt_req_head | ftpt_req_head | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | ta20r1 | _TA20R1 | $projection.TypeOfTripActivityValue = _TA20R1.acticity |
| [0..1] | E_TravelGeneralData | _Extension | $projection.PersonnelNumber = _Extension.PersonnelNumber and $projection.TravelTripNumber = _Extension.TravelTripNumber and $projection.TravelVersionNumber = _Extension.TravelVersionNumber and $projection.TrvlReqArePlanReq = _Extension.TrvlRequestOrPlan |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Travel Request Framework Data | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.representativeKey | TravelTripNumber | view |
Fields (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PersonnelNumber | pernr | Personnel no. | |
| KEY | TravelTripNumber | reinr | Trip Number | |
| KEY | TravelVersionNumber | requestvrs | Version number | |
| KEY | TrvlReqArePlanReq | plan_request | Plan Request ID | |
| TripDestination | location_end | End loc. | ||
| AddressCountry | country_end | Country/Reg. | ||
| TripReasonText | request_reason | Reason | ||
| TravelBeginDate | date_beg | Start Date | ||
| TripSegmentStartTime | time_beg | Start Time | ||
| TripSegmentEndDate | date_end | Ends On | ||
| TripSegmentEndTime | time_end | TS DT Completed | ||
| TypeOfTripActivityValue | activity_type | Inward/Outward Acty | ||
| TripActivityTypeName | ||||
| EstimatedCost | Total Cost | |||
| EstimatedCostCrcy | Valuation Crcy | |||
| TravelStatus | Workflow Status | |||
| LastChangeDate | dates | Start Date | ||
| LastChangedAtTime | times | Start Time | ||
| ChangedByName | uname | User Name | ||
| ChangeReportName | repid | Program Name | ||
| DepartureWork | depar | Departure | ||
| CreatedByName | createdby | User Name | ||
| ApprovedByName | approvedby | Checked By | ||
| DeliveryDate | delivery_date | Time Stamp | ||
| DeliveryLocationName | delivery_loc | Delivery Locat. | ||
| DeliveryAreaName | delivery_area | Delivery Area | ||
| RecipientDelivery | delivery_empl | Recipient | ||
| ArrivalWork | arrival_work | Arrival | ||
| ReturnWorkplaceValue | return_work | Arrival | ||
| TripActivityType | t_actype | Activity | ||
| BusTripIsApproved | perm_trip_appr | Standing Approval | ||
| TripTypeStatutory | tt_statu | Trip Type S | ||
| TripTypeEnterprise | tt_comsp | Trip Type E | ||
| FullTripReimbmtIsRequested | gwe | Full TSR | ||
| SignificantOfclHasIntrst | edi | SignifOfficialInt | ||
| NumberOfPassengerWithMe | carry_oth | No. of Passengers | ||
| PssngrIsCarriedByOthEmpl | carried_by_oth | Passenger w/Other E. | ||
| WorkStartDate | datecow | Work Start | ||
| WorkCommencesTime | timecow | Time Work Commences | ||
| WorkEndsDate | dateeow | Date Work Ends | ||
| WorkEndsTime | timeeow | Time Work Ends | ||
| MaxTripSgmtReimbmtIsIncrd | incr_max_tripseg_reimb | Increased TSR | ||
| AddressDepartureName | addr_depar | Departure Point | ||
| AddressArrivalName | addr_arrvl | Arrival Point |
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_TravelReqFrameworkData.
-- 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_TravelReqFrameworkData AS
SELECT
pernr AS PersonnelNumber,
reinr AS TravelTripNumber,
requestvrs AS TravelVersionNumber,
plan_request AS TrvlReqArePlanReq,
location_end AS TripDestination,
country_end AS AddressCountry,
request_reason AS TripReasonText,
date_beg AS TravelBeginDate,
time_beg AS TripSegmentStartTime,
date_end AS TripSegmentEndDate,
time_end AS TripSegmentEndTime,
activity_type AS TypeOfTripActivityValue,
cast(_TA20R1[1:spras = $session.system_language].name as vdm_plan_activity_name ) AS TripActivityTypeName,
cast( estimated_cost as vdm_total_estimated_cost ) AS EstimatedCost,
cast( currency as vdm_estdcostcrcy ) AS EstimatedCostCrcy,
cast ( status as vdm_trip_status ) AS TravelStatus,
dates AS LastChangeDate,
times AS LastChangedAtTime,
uname AS ChangedByName,
repid AS ChangeReportName,
depar AS DepartureWork,
createdby AS CreatedByName,
approvedby AS ApprovedByName,
delivery_date AS DeliveryDate,
delivery_loc AS DeliveryLocationName,
delivery_area AS DeliveryAreaName,
delivery_empl AS RecipientDelivery,
arrival_work AS ArrivalWork,
return_work AS ReturnWorkplaceValue,
t_actype AS TripActivityType,
perm_trip_appr AS BusTripIsApproved,
tt_statu AS TripTypeStatutory,
tt_comsp AS TripTypeEnterprise,
gwe AS FullTripReimbmtIsRequested,
edi AS SignificantOfclHasIntrst,
carry_oth AS NumberOfPassengerWithMe,
carried_by_oth AS PssngrIsCarriedByOthEmpl,
datecow AS WorkStartDate,
timecow AS WorkCommencesTime,
dateeow AS WorkEndsDate,
timeeow AS WorkEndsTime,
incr_max_tripseg_reimb AS MaxTripSgmtReimbmtIsIncrd,
addr_depar AS AddressDepartureName,
addr_arrvl AS AddressArrivalName
FROM ftpt_req_head
LEFT OUTER JOIN ta20r1 AS _TA20R1 ON TypeOfTripActivityValue = _TA20R1.acticity -- association [0..1]
LEFT OUTER JOIN E_TravelGeneralData AS _Extension ON PersonnelNumber = _Extension.PersonnelNumber AND TravelTripNumber = _Extension.TravelTripNumber AND TravelVersionNumber = _Extension.TravelVersionNumber AND TrvlReqArePlanReq = _Extension.TrvlRequestOrPlan -- 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