R_TravelPlanTP
Travel Plan
R_TravelPlanTP is a Transactional CDS View that provides data about "Travel Plan" in SAP S/4HANA. It reads from 1 data source (I_TravelPlan) and exposes 41 fields with key fields PersonnelNumber, TravelTripNumber. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_TravelPlan | I_TravelPlan | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_TravelPlanStatusVH | _TravelPlanStatusText | $projection.TravelStatus = _TravelPlanStatusText.TravelStatus |
| [0..1] | C_TravelProfileVH | _TravelProfileVH | $projection.PersonnelNumber = _TravelProfileVH.PersonnelNumber |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Travel Plan | view | |
| VDM.viewType | #TRANSACTIONAL | 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 | |
| ObjectModel.sapObjectNodeType.name | TravelPlan | view |
Fields (41)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PersonnelNumber | PersonnelNumber | Personnel No. | |
| KEY | TravelTripNumber | TravelTripNumber | Trip Number | |
| TripDepartureDate | TripDepartureDate | Start Date | ||
| DepartureBeginTime | DepartureBeginTime | Trip Begins At | ||
| TripArrivalDate | TripArrivalDate | End Date | ||
| ArrivalEndTime | ArrivalEndTime | Trip Ends At | ||
| TripDestination | TripDestination | Destination | ||
| TripReasonText | TripReasonText | Reason | ||
| TypeOfTripActivityValue | TypeOfTripActivityValue | Activity (Planning) | ||
| TravelStatus | TravelStatus | Trip Status | ||
| TravelStatusCriticality | TravelStatusCriticality | Travel Status Criticality | ||
| TravelStatusText | _TravelPlanStatusText | TravelStatusText | ||
| TravelPlanChangedByUser | TravelPlanChangedByUser | User Name | ||
| TravelPlanChangedAtDate | TravelPlanChangedAtDate | Current Date | ||
| TravelPlanChangedAtTime | TravelPlanChangedAtTime | Time | ||
| TravelPlanIsPolicyViolation | TravelPlanIsPolicyViolation | Policy Violation | ||
| TravelPlanVariantName | TravelPlanVariantName | Zone name | ||
| TravelPlanVariantPricingStatus | TravelPlanVariantPricingStatus | |||
| TravelPlanVariantInfoTxt | TravelPlanVariantInfoTxt | |||
| TravelPlanVariantTemplate | TravelPlanVariantTemplate | TRUE | ||
| TravelPlanHasBookRequest | TravelPlanHasBookRequest | |||
| TravelPlanPassengerNameRecord | TravelPlanPassengerNameRecord | |||
| TravelPlanDatabaseOrderNumber | TravelPlanDatabaseOrderNumber | |||
| TravelPlanIsFlightCanceled | TravelPlanIsFlightCanceled | |||
| TravelPlanAgencyStatus | TravelPlanAgencyStatus | |||
| TravelPlanReservationSystem | TravelPlanReservationSystem | |||
| TravelPlanLastUpdateDateTime | TravelPlanLastUpdateDateTime | |||
| TravelPlanIsBookedOnline | TravelPlanIsBookedOnline | |||
| TravelPlanInitialBookDateTime | TravelPlanInitialBookDateTime | |||
| TrvlPlanHoldExpirationDateTime | TrvlPlanHoldExpirationDateTime | |||
| TravelEmployeeName | TravelEmployeeName | Employee | ||
| TravelEmployeeUserIdentifier | TravelEmployeeUserIdentifier | System ID | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CostCenter | CostCenter | Cost Center | ||
| PersonnelArea | PersonnelArea | Personnel area | ||
| PersonWorkAgrmtAuthznGrpg | PersonWorkAgrmtAuthznGrpg | Org.key | ||
| TrvlPlanEmplGrpg | TrvlPlanEmplGrpg | |||
| TrvlPlanEmployeeSubGroup | TrvlPlanEmployeeSubGroup | |||
| TrvlPlanEmployeeGroup | TrvlPlanEmployeeGroup | |||
| _TravelPlanStatusText | _TravelPlanStatusText | |||
| _TravelProfileVH | _TravelProfileVH |
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_TravelPlanTP.
-- 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_TravelPlanTP AS
SELECT
PersonnelNumber,
TravelTripNumber,
TripDepartureDate,
DepartureBeginTime,
TripArrivalDate,
ArrivalEndTime,
TripDestination,
TripReasonText,
TypeOfTripActivityValue,
TravelStatus,
TravelStatusCriticality,
_TravelPlanStatusText.TravelStatusText AS TravelStatusText,
TravelPlanChangedByUser,
TravelPlanChangedAtDate,
TravelPlanChangedAtTime,
TravelPlanIsPolicyViolation,
TravelPlanVariantName,
TravelPlanVariantPricingStatus,
TravelPlanVariantInfoTxt,
TravelPlanVariantTemplate,
TravelPlanHasBookRequest,
TravelPlanPassengerNameRecord,
TravelPlanDatabaseOrderNumber,
TravelPlanIsFlightCanceled,
TravelPlanAgencyStatus,
TravelPlanReservationSystem,
TravelPlanLastUpdateDateTime,
TravelPlanIsBookedOnline,
TravelPlanInitialBookDateTime,
TrvlPlanHoldExpirationDateTime,
TravelEmployeeName,
TravelEmployeeUserIdentifier,
CompanyCode,
CostCenter,
PersonnelArea,
PersonWorkAgrmtAuthznGrpg,
TrvlPlanEmplGrpg,
TrvlPlanEmployeeSubGroup,
TrvlPlanEmployeeGroup
FROM I_TravelPlan
LEFT OUTER JOIN I_TravelPlanStatusVH AS _TravelPlanStatusText ON TravelStatus = _TravelPlanStatusText.TravelStatus -- association [0..1]
LEFT OUTER JOIN C_TravelProfileVH AS _TravelProfileVH ON PersonnelNumber = _TravelProfileVH.PersonnelNumber -- 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