I_TravelStatisticAmountData

DDL: I_TRAVELSTATISTICAMOUNTDATA Type: view_entity BASIC

Trvl Expn Trip Statistics and Amounts

I_TravelStatisticAmountData is a Basic CDS View that provides data about "Trvl Expn Trip Statistics and Amounts" in SAP S/4HANA. It reads from 3 data sources (ptrv_head, I_TravelRequestKeyField, ptrv_shdr) and exposes 4 fields with key fields PersonnelNumber, TravelTripNumber, PeriodNumberOfTrip.

Data Sources (3)

SourceAliasJoin Type
ptrv_head _TravelExpense inner
I_TravelRequestKeyField KeyField inner
ptrv_shdr TripStatistics from

Annotations (8)

NameValueLevelField
EndUserText.label Trvl Expn Trip Statistics and Amounts view
AccessControl.authorizationCheck #NOT_REQUIRED 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 #C view
ObjectModel.representativeKey TravelTripNumber view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY PersonnelNumber ptrv_shdr pernr Personnel no.
KEY TravelTripNumber ptrv_shdr reinr Trip Number
KEY PeriodNumberOfTrip ptrv_shdr perio Time unit
PaymentCurrency

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_TravelStatisticAmountData.
-- 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_TravelStatisticAmountData AS
SELECT
  TripStatistics.pernr AS PersonnelNumber,
  TripStatistics.reinr AS TravelTripNumber,
  TripStatistics.perio AS PeriodNumberOfTrip,
  upper (perio.waers) AS PaymentCurrency
FROM ptrv_shdr AS TripStatistics
INNER JOIN ptrv_head AS _TravelExpense ON /* join condition not captured in parsed metadata */
INNER JOIN I_TravelRequestKeyField AS KeyField ON /* join condition not captured in parsed metadata */
;