I_TravelExpenseAddlDest

DDL: I_TRAVELEXPENSEADDLDEST Type: view_entity COMPOSITE

Travel Expenses Additional Destinations

I_TravelExpenseAddlDest is a Composite CDS View that provides data about "Travel Expenses Additional Destinations" in SAP S/4HANA. It reads from 1 data source (I_TravelAddlDestData) and exposes 77 fields with key fields PersonnelNumber, TravelTripNumber, DestinationAssignment, TravelReqUUID, SeqReqUUID. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_TravelAddlDestData I_TravelAddlDestData from

Associations (5)

CardinalityTargetAliasCondition
[0..*] C_TravelCountryRegionVH _TravelCountryRegionVH $projection.Country = _TravelCountryRegionVH.TripCountry and $projection.TripRegion = _TravelCountryRegionVH.TripRegion and $projection.PersonnelNumber = _TravelCountryRegionVH.PersonnelNumber and $projection.TravelTripNumber = _TravelCountryRegionVH.TravelTripNumber and $projection.TravelReqUUID = _TravelCountryRegionVH.TravelReqUUID
[0..*] I_RegionVH _RegionVH $projection.Country = _RegionVH.Country and $projection.Region = _RegionVH.Region
[0..*] I_TravelActivityPlanningVH _TravelActivityPlanningVH I_TravelAddlDestData.TripActivityType = _TravelActivityPlanningVH.TravelRequestTripActivityType
[0..1] E_TravelAddlDestData _ExtensionAddlDest $projection.PersonnelNumber = _ExtensionAddlDest.PersonnelNumber and $projection.TravelTripNumber = _ExtensionAddlDest.TravelTripNumber and $projection.TravelExpnSequentialNumber = _ExtensionAddlDest.TravelExpnSequentialNumber and $projection.DestinationAssignment = _ExtensionAddlDest.DestinationAssignment and $projection.DestinationType = _ExtensionAddlDest.DestinationType
[0..*] I_TrvlExpnAddlDestCostAssgmt _TrvlExpnAddlDestCostAssgmt

Annotations (13)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Travel Expenses Additional Destinations view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
AbapCatalog.extensibility.extensible true view
AbapCatalog.extensibility.elementSuffix ADD view
AbapCatalog.extensibility.allowNewDatasources false view
AbapCatalog.extensibility.quota.maximumFields 350 view
AbapCatalog.extensibility.quota.maximumBytes 2240 view

Fields (77)

KeyFieldSource TableSource FieldDescription
KEY PersonnelNumber PersonnelNumber Personnel No.
KEY TravelTripNumber TravelTripNumber Trip Number
KEY DestinationAssignment DestinationAssignment Destination Assignment
KEY TravelReqUUID
KEY SeqReqUUID
DestinationType DestinationType Destination type
TravelExpnSequentialNumber TravelExpnSequentialNumber Sequential Number
TripBeginsOnDate TripBeginsOnDate Start Date
TripBeginsAtTime TripBeginsAtTime Trip Begins At
AddressNumber AddressNumber Src Address No
CityName CityName Name
DistrictName DistrictName District
PostalCode PostalCode Postal Code
TravelCommunityCityName TravelCommunityCityName City
TravelCommunityPostCode TravelCommunityPostCode Postal Code
TravelCommunityDistrictName TravelCommunityDistrictName District
CityCodeName CityCodeName City Code
StreetName StreetName Text
HouseNumber HouseNumber House Number
Country Country Venue: Ctry/Reg
Region Region Venue Region
MealsPerDiemHasTxn MealsPerDiemHasTxn Auto Acmd Meals Tax
MealsPerDiemHasMnlTxn MealsPerDiemHasMnlTxn Manual Meals Taxation
AcmdtnPerDiemHasMnlTxn AcmdtnPerDiemHasMnlTxn Manual Acmd Taxation
TripDestTypeName TripDestTypeName Event in Itinerary
CountryRegionName CountryRegionName Country / Region
TripTypeStatutoryName TripTypeStatutoryName Trip Type Statutory Name
TripTypeEnterpriseName TripTypeEnterpriseName Trip Type Enterprise Name
AddlDestTypeOfTripActyName AddlDestTypeOfTripActyName Trip Activity Type Name
AbsenceTypeName AbsenceTypeName Absence Type Name
AllowanceTypeName AllowanceTypeName Allowance Type Name
TrvlReqSprtnAllwncName TrvlReqSprtnAllwncName Spouse Separation Allowance Name
SleepAtHomeName SleepAtHomeName Sleep at Home Name
DurnOfPrvtTripBreakName DurnOfPrvtTripBreakName Duration of Private Trip Break Name
TripReasonText TripReasonText Reason
TripDestination TripDestination Destination
TripActivityTypeName
TripRegion TripRegion Trip Region
AddlDestSleepAtHome AddlDestSleepAtHome Night at Home
AddlDestDurnOfPrvtTripBreak AddlDestDurnOfPrvtTripBreak Private Trip Break
NrOfPerDiemNights NrOfPerDiemNights PD Nights
AddlDestAbsenceType AddlDestAbsenceType Abs. Type
AddlDestAllowanceType AddlDestAllowanceType Allowance Type
TrvlReqSprtnAllwnc TrvlReqSprtnAllwnc Spouse
AcmdtnIsChargeable AcmdtnIsChargeable Chargeable Accommodations
TripDestinationLong TripDestinationLong Destination
TripItineraryNumber TripItineraryNumber Trip Segment Number
LastChangeDateTime
AddlDestLoclLastChgdDteTme
TravelCountryRegion TravelCountryRegion Country / Region
AcmdtnIsChargeable_H
AcmdtnPerDiemHasMnlTxn_H
AddlDestAllowanceType_H
AddlDestDurnOfPrvtTripBreak_H
AddlDestSleepAtHome_H
AddressNumber_H
CityCodeName_H
CityName_H
DistrictName_H
HouseNumber_H
MealsPerDiemHasMnlTxn_H
MealsPerDiemHasTxn_H
PostalCode_H
StreetName_H
TravelCountryRegion_H
TripActivityType_H
TripBeginsAtTime_H
TripBeginsOnDate_H
TripDestination_H
TripReasonText_H
TripTypeEnterprise_H
TripTypeStatutory_H
TypeOfTripActivityValue_H
_TravelExpense _TravelExpense
_TrvlExpnAddlDestCostAssgmt _TrvlExpnAddlDestCostAssgmt
_TravelCountryRegionVH _TravelCountryRegionVH
_RegionVH _RegionVH

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_TravelExpenseAddlDest.
-- 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_TravelExpenseAddlDest AS
SELECT
  PersonnelNumber,
  TravelTripNumber,
  DestinationAssignment,
  cast ( hextobin('00000000000000000000000000000000') as sysuuid_x16 preserving type ) AS TravelReqUUID,
  cast ( hextobin('00000000000000000000000000000000') as sysuuid_x16 preserving type ) AS SeqReqUUID,
  DestinationType,
  TravelExpnSequentialNumber,
  TripBeginsOnDate,
  TripBeginsAtTime,
  AddressNumber,
  CityName,
  DistrictName,
  PostalCode,
  TravelCommunityCityName,
  TravelCommunityPostCode,
  TravelCommunityDistrictName,
  CityCodeName,
  StreetName,
  HouseNumber,
  Country,
  Region,
  MealsPerDiemHasTxn,
  MealsPerDiemHasMnlTxn,
  AcmdtnPerDiemHasMnlTxn,
  TripDestTypeName,
  CountryRegionName,
  TripTypeStatutoryName,
  TripTypeEnterpriseName,
  AddlDestTypeOfTripActyName,
  AbsenceTypeName,
  AllowanceTypeName,
  TrvlReqSprtnAllwncName,
  SleepAtHomeName,
  DurnOfPrvtTripBreakName,
  TripReasonText,
  TripDestination,
  cast(_TravelActivityPlanningVH.TripActivityTypeName as vdm_plan_activity_name preserving type ) AS TripActivityTypeName,
  TripRegion,
  AddlDestSleepAtHome,
  AddlDestDurnOfPrvtTripBreak,
  NrOfPerDiemNights,
  AddlDestAbsenceType,
  AddlDestAllowanceType,
  TrvlReqSprtnAllwnc,
  AcmdtnIsChargeable,
  TripDestinationLong,
  TripItineraryNumber,
  cast(tstmp_current_utctimestamp() as vdm_lastchangedon ) AS LastChangeDateTime,
  cast(0.0000000 as abp_lastchange_tstmpl) AS AddlDestLoclLastChgdDteTme,
  TravelCountryRegion,
  hextobin('00') AS AcmdtnIsChargeable_H,
  hextobin('00') AS AcmdtnPerDiemHasMnlTxn_H,
  hextobin('00') AS AddlDestAllowanceType_H,
  hextobin('00') AS AddlDestDurnOfPrvtTripBreak_H,
  hextobin('00') AS AddlDestSleepAtHome_H,
  hextobin('00') AS AddressNumber_H,
  hextobin('00') AS CityCodeName_H,
  hextobin('00') AS CityName_H,
  hextobin('00') AS DistrictName_H,
  hextobin('00') AS HouseNumber_H,
  hextobin('00') AS MealsPerDiemHasMnlTxn_H,
  hextobin('00') AS MealsPerDiemHasTxn_H,
  hextobin('00') AS PostalCode_H,
  hextobin('00') AS StreetName_H,
  hextobin('00') AS TravelCountryRegion_H,
  hextobin('00') AS TripActivityType_H,
  hextobin('00') AS TripBeginsAtTime_H,
  hextobin('00') AS TripBeginsOnDate_H,
  hextobin('00') AS TripDestination_H,
  hextobin('00') AS TripReasonText_H,
  hextobin('00') AS TripTypeEnterprise_H,
  hextobin('00') AS TripTypeStatutory_H,
  hextobin('00') AS TypeOfTripActivityValue_H
FROM I_TravelAddlDestData
LEFT OUTER JOIN C_TravelCountryRegionVH AS _TravelCountryRegionVH ON Country = _TravelCountryRegionVH.TripCountry AND TripRegion = _TravelCountryRegionVH.TripRegion AND PersonnelNumber = _TravelCountryRegionVH.PersonnelNumber AND TravelTripNumber = _TravelCountryRegionVH.TravelTripNumber AND TravelReqUUID = _TravelCountryRegionVH.TravelReqUUID  -- association [0..*]
LEFT OUTER JOIN I_RegionVH AS _RegionVH ON Country = _RegionVH.Country AND Region = _RegionVH.Region  -- association [0..*]
LEFT OUTER JOIN I_TravelActivityPlanningVH AS _TravelActivityPlanningVH ON I_TravelAddlDestData.TripActivityType = _TravelActivityPlanningVH.TravelRequestTripActivityType  -- association [0..*]
LEFT OUTER JOIN E_TravelAddlDestData AS _ExtensionAddlDest ON PersonnelNumber = _ExtensionAddlDest.PersonnelNumber AND TravelTripNumber = _ExtensionAddlDest.TravelTripNumber AND TravelExpnSequentialNumber = _ExtensionAddlDest.TravelExpnSequentialNumber AND DestinationAssignment = _ExtensionAddlDest.DestinationAssignment AND DestinationType = _ExtensionAddlDest.DestinationType  -- association [0..1]
LEFT OUTER JOIN I_TrvlExpnAddlDestCostAssgmt AS _TrvlExpnAddlDestCostAssgmt ON /* condition not available in parsed metadata */  -- association [0..*]
;