R_TravelRequestServicesDraft

DDL: R_TRAVELREQUESTSERVICESDRAFT Type: view_entity BASIC

Travel Request Services Draft

R_TravelRequestServicesDraft is a Basic CDS View that provides data about "Travel Request Services Draft" in SAP S/4HANA. It reads from 1 data source (trvs4_srvreq_d) and exposes 36 fields with key fields PersonnelNumber, TravelTripNumber, TravelReqUUID, SeqReqUUID, TravelServiceRequestNumber. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
trvs4_srvreq_d ServicesDraft from

Associations (1)

CardinalityTargetAliasCondition
[1..1] E_TravelRequestServicesDraft _ExtensionTrvlServices $projection.PersonnelNumber = _ExtensionTrvlServices.PersonnelNumber and $projection.TravelTripNumber = _ExtensionTrvlServices.TravelTripNumber and $projection.TravelReqUUID = _ExtensionTrvlServices.TravelReqUUID and $projection.SeqReqUUID = _ExtensionTrvlServices.SeqReqUUID and $projection.TravelServiceRequestNumber = _ExtensionTrvlServices.TravelServiceRequestNumber

Annotations (13)

NameValueLevelField
EndUserText.label Travel Request Services Draft view
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
AbapCatalog.extensibility.extensible true view
AbapCatalog.extensibility.elementSuffix SRV view
AbapCatalog.extensibility.allowNewDatasources false view
AbapCatalog.extensibility.quota.maximumFields 350 view
AbapCatalog.extensibility.quota.maximumBytes 2240 view

Fields (36)

KeyFieldSource TableSource FieldDescription
KEY PersonnelNumber trvs4_srvreq_d personnelnumber Personnel No.
KEY TravelTripNumber trvs4_srvreq_d traveltripnumber Trip Number
KEY TravelReqUUID trvs4_srvreq_d travelrequuid UUID
KEY SeqReqUUID trvs4_srvreq_d seqrequuid UUID
KEY TravelServiceRequestNumber trvs4_srvreq_d travelservicerequestnumber Request number
TravelExpnSequentialNumber trvs4_srvreq_d travelexpnsequentialnumber Sequential Number
TravelItemType trvs4_srvreq_d travelitemtype Travel item
TripServiceTypeName trvs4_srvreq_d tripservicetypename Name
TravelItemTypeForDisplay trvs4_srvreq_d travelitemtypefordisplay Travel item
TripSegmentBeginDate trvs4_srvreq_d tripsegmentbegindate Begins On
TripSegmentStartTime trvs4_srvreq_d tripsegmentstarttime Start Time
TripSegmentEndDate trvs4_srvreq_d tripsegmentenddate Ends On
TripSegmentEndTime trvs4_srvreq_d tripsegmentendtime Ends At
TripStartingLocationName trvs4_srvreq_d tripstartinglocationname From
DepartureCountry trvs4_srvreq_d departurecountry Departure Country / Region
DepartureCountryName trvs4_srvreq_d departurecountryname Name Country / Region
TripEndLocationName trvs4_srvreq_d tripendlocationname To
DestinationCountry trvs4_srvreq_d destinationcountry Dest. Ctry/Reg
DestinationCountryName trvs4_srvreq_d destinationcountryname Arrival Country / Region
TrvlReqHasArrivalOrDeptr trvs4_srvreq_d trvlreqhasarrivalordeptr Arrival/Depart.
SalesOffcDetn trvs4_srvreq_d salesoffcdetn Sales Office Det.
OtherTravelServiceCode trvs4_srvreq_d othertravelservicecode Code
IATADepartureLocation trvs4_srvreq_d iatadeparturelocation Start Location
IATADestinationLocation trvs4_srvreq_d iatadestinationlocation End Location
OtherServiceStatus trvs4_srvreq_d otherservicestatus Other Service Status
TrvlReqOthSrvcConfNmbr trvs4_srvreq_d trvlreqothsrvcconfnmbr Confirm. Code
TripReqPriceInTravelCurrency trvs4_srvreq_d tripreqpriceintravelcurrency Price
TripRequestCurrency trvs4_srvreq_d triprequestcurrency Currency
TravelRequestComment trvs4_srvreq_d travelrequestcomment Comment
LastChangeDateTime trvs4_srvreq_d lastchangedatetime Timestamp
TrvlSrvcsLoclLastChgdDteTme trvs4_srvreq_d trvlsrvcslocllastchgddtetme Changed On
DraftEntityCreationDateTime trvs4_srvreq_d draftentitycreationdatetime Draft Created On
DraftEntityLastChangeDateTime trvs4_srvreq_d draftentitylastchangedatetime Draft Last Changed On
DraftAdministrativeDataUUID trvs4_srvreq_d draftadministrativedatauuid UUID
DraftEntityOperationCode trvs4_srvreq_d draftentityoperationcode Draft - Operation Code
HasActiveEntity trvs4_srvreq_d hasactiveentity TRUE

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 R_TravelRequestServicesDraft.
-- 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 R_TravelRequestServicesDraft AS
SELECT
  ServicesDraft.personnelnumber AS PersonnelNumber,
  ServicesDraft.traveltripnumber AS TravelTripNumber,
  ServicesDraft.travelrequuid AS TravelReqUUID,
  ServicesDraft.seqrequuid AS SeqReqUUID,
  ServicesDraft.travelservicerequestnumber AS TravelServiceRequestNumber,
  ServicesDraft.travelexpnsequentialnumber AS TravelExpnSequentialNumber,
  ServicesDraft.travelitemtype AS TravelItemType,
  ServicesDraft.tripservicetypename AS TripServiceTypeName,
  ServicesDraft.travelitemtypefordisplay AS TravelItemTypeForDisplay,
  ServicesDraft.tripsegmentbegindate AS TripSegmentBeginDate,
  ServicesDraft.tripsegmentstarttime AS TripSegmentStartTime,
  ServicesDraft.tripsegmentenddate AS TripSegmentEndDate,
  ServicesDraft.tripsegmentendtime AS TripSegmentEndTime,
  ServicesDraft.tripstartinglocationname AS TripStartingLocationName,
  ServicesDraft.departurecountry AS DepartureCountry,
  ServicesDraft.departurecountryname AS DepartureCountryName,
  ServicesDraft.tripendlocationname AS TripEndLocationName,
  ServicesDraft.destinationcountry AS DestinationCountry,
  ServicesDraft.destinationcountryname AS DestinationCountryName,
  ServicesDraft.trvlreqhasarrivalordeptr AS TrvlReqHasArrivalOrDeptr,
  ServicesDraft.salesoffcdetn AS SalesOffcDetn,
  ServicesDraft.othertravelservicecode AS OtherTravelServiceCode,
  ServicesDraft.iatadeparturelocation AS IATADepartureLocation,
  ServicesDraft.iatadestinationlocation AS IATADestinationLocation,
  ServicesDraft.otherservicestatus AS OtherServiceStatus,
  ServicesDraft.trvlreqothsrvcconfnmbr AS TrvlReqOthSrvcConfNmbr,
  ServicesDraft.tripreqpriceintravelcurrency AS TripReqPriceInTravelCurrency,
  ServicesDraft.triprequestcurrency AS TripRequestCurrency,
  ServicesDraft.travelrequestcomment AS TravelRequestComment,
  ServicesDraft.lastchangedatetime AS LastChangeDateTime,
  ServicesDraft.trvlsrvcslocllastchgddtetme AS TrvlSrvcsLoclLastChgdDteTme,
  ServicesDraft.draftentitycreationdatetime AS DraftEntityCreationDateTime,
  ServicesDraft.draftentitylastchangedatetime AS DraftEntityLastChangeDateTime,
  ServicesDraft.draftadministrativedatauuid AS DraftAdministrativeDataUUID,
  ServicesDraft.draftentityoperationcode AS DraftEntityOperationCode,
  ServicesDraft.hasactiveentity AS HasActiveEntity
FROM trvs4_srvreq_d AS ServicesDraft
LEFT OUTER JOIN E_TravelRequestServicesDraft AS _ExtensionTrvlServices ON PersonnelNumber = _ExtensionTrvlServices.PersonnelNumber AND TravelTripNumber = _ExtensionTrvlServices.TravelTripNumber AND TravelReqUUID = _ExtensionTrvlServices.TravelReqUUID AND SeqReqUUID = _ExtensionTrvlServices.SeqReqUUID AND TravelServiceRequestNumber = _ExtensionTrvlServices.TravelServiceRequestNumber  -- association [1..1]
;