R_LstMiRouteTP
LMD Route - TP
R_LstMiRouteTP is a Transactional CDS View that provides data about "LMD Route - TP" in SAP S/4HANA. It reads from 1 data source (I_LstMiRoute) and exposes 52 fields with key field LastMileRouteUUID. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_LstMiRoute | I_LstMiRoute | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_LstMiRouteStop | _Stop | $projection.LastMileRouteUUID = _Stop.LastMileRouteUUID |
| [0..*] | R_LstMiRteCheckOutTP | _CheckOut | |
| [0..*] | R_LastMileRouteCheckInTP | _CheckIn | |
| [0..*] | R_LstMiRteReloadCheckOutTP | _ReloadCheckOut | |
| [0..*] | R_LstMiRteReloadCheckInTP | _ReloadCheckIn | |
| [0..*] | R_LstMiRteVisitTP | _Visit | |
| [0..*] | R_LstMiRteVstListAssgmtTP | _VisitListAssignment | |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | LMD Route - TP | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.sapObjectNodeType.name | LastMileRoute | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
Fields (52)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LastMileRouteUUID | LastMileRouteUUID | Route UUID | |
| LastMileRoute | LastMileRoute | Route ID | ||
| LastMileRouteType | LastMileRouteType | Route Type | ||
| LastMileRouteCategory | LastMileRouteCategory | Route Category | ||
| LstMiRouteSourceLocation | LstMiRouteSourceLocation | |||
| LastMileRouteDepartureLocation | LastMileRouteDepartureLocation | Departure Location | ||
| LastMileRouteArrivalLocation | LastMileRouteArrivalLocation | Arrival Location | ||
| LstMiRteExecutionOrganization | LstMiRteExecutionOrganization | Exec. Organization | ||
| TransportationVehicleDriver | TransportationVehicleDriver | Driver | ||
| TranspOrdDepartureDate | TranspOrdDepartureDate | Departure Date | ||
| TranspOrdArrivalDate | TranspOrdArrivalDate | Arrival Date | ||
| ResourceSecondDriver | ResourceSecondDriver | Driver | ||
| ResourceSecondDriverName | ResourceSecondDriverName | |||
| EquipmentType | EquipmentType | Equipment Type | ||
| ResourceID | ResourceID | Vehicle ID | ||
| RsceRegistrationNumber | RsceRegistrationNumber | License Plate | ||
| ResourceDefaultTrailer | ResourceDefaultTrailer | Vehicle ID | ||
| TrailerRsceRegistrationNumber | TrailerRsceRegistrationNumber | License Plate | ||
| LastMileRouteStockIdentifier | LastMileRouteStockIdentifier | Route Stock Identifier | ||
| LastMileRouteTimeZone | LastMileRouteTimeZone | Time Zone | ||
| CountryCode | CountryCode | Country/Reg. | ||
| LstMiRouteReferenceRouteType | LstMiRouteReferenceRouteType | Reference Route Type | ||
| TranspOrdReqDepartureDteTme | TranspOrdReqDepartureDteTme | Timestamp | ||
| TranspOrdReqArrivalDteTme | TranspOrdReqArrivalDteTme | Timestamp | ||
| TranspOrdDepartureDateTime | TranspOrdDepartureDateTime | Timestamp | ||
| TranspOrdArrivalDateTime | TranspOrdArrivalDateTime | Timestamp | ||
| LstMiRteDeptrOdometerQuantity | LstMiRteDeptrOdometerQuantity | Odometer Reading | ||
| LstMiRteArrvlOdometerQuantity | LstMiRteArrvlOdometerQuantity | Odometer Reading | ||
| LstMiRteOdometerUnitOfMeasure | LstMiRteOdometerUnitOfMeasure | Distance UoM | ||
| LastMileRteSetlCommentsText | LastMileRteSetlCommentsText | Comments | ||
| LastMileRouteReasonCode | LastMileRouteReasonCode | Return/Change Reason | ||
| LstMiRteDepartureShippingPoint | LstMiRteDepartureShippingPoint | Deptr. Shipg. Point | ||
| LstMiRteArrivalShippingPoint | LstMiRteArrivalShippingPoint | Arrival Shipg. Point | ||
| LastMileRouteMessageDateTime | LastMileRouteMessageDateTime | Timestamp | ||
| CreationDateTime | CreationDateTime | Timestamp | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| LastMileRouteCurrency | LastMileRouteCurrency | Valuation Crcy | ||
| LastMileRouteSettlementStatus | _SettlementStatus | LastMileRouteSettlementStatus | ||
| LastMileRouteLifecycleStatus | _LifecycleStatus | LastMileRouteLifecycleStatus | ||
| LstMiRteMainDriverUserID | _MainDriverUser | UserID | User Name | |
| _CheckOut | _CheckOut | |||
| _CheckIn | _CheckIn | |||
| _ReloadCheckOut | _ReloadCheckOut | |||
| _ReloadCheckIn | _ReloadCheckIn | |||
| _Visit | _Visit | |||
| _VisitListAssignment | _VisitListAssignment | |||
| _Stop | _Stop | |||
| _RouteDriverVH | _RouteDriverVH | |||
| _ResourceSecondDriverVH | _ResourceSecondDriverVH | |||
| _RouteTypeVH | _RouteTypeVH | |||
| _MainDriverUser | _MainDriverUser | |||
| _SecondDriverUser | _SecondDriverUser |
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_LstMiRouteTP.
-- 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_LstMiRouteTP AS
SELECT
LastMileRouteUUID,
LastMileRoute,
LastMileRouteType,
LastMileRouteCategory,
LstMiRouteSourceLocation,
LastMileRouteDepartureLocation,
LastMileRouteArrivalLocation,
LstMiRteExecutionOrganization,
TransportationVehicleDriver,
TranspOrdDepartureDate,
TranspOrdArrivalDate,
ResourceSecondDriver,
ResourceSecondDriverName,
EquipmentType,
ResourceID,
RsceRegistrationNumber,
ResourceDefaultTrailer,
TrailerRsceRegistrationNumber,
LastMileRouteStockIdentifier,
LastMileRouteTimeZone,
CountryCode,
LstMiRouteReferenceRouteType,
TranspOrdReqDepartureDteTme,
TranspOrdReqArrivalDteTme,
TranspOrdDepartureDateTime,
TranspOrdArrivalDateTime,
LstMiRteDeptrOdometerQuantity,
LstMiRteArrvlOdometerQuantity,
LstMiRteOdometerUnitOfMeasure,
LastMileRteSetlCommentsText,
LastMileRouteReasonCode,
LstMiRteDepartureShippingPoint,
LstMiRteArrivalShippingPoint,
LastMileRouteMessageDateTime,
CreationDateTime,
LastChangeDateTime,
LastMileRouteCurrency,
_SettlementStatus.LastMileRouteSettlementStatus AS LastMileRouteSettlementStatus,
_LifecycleStatus.LastMileRouteLifecycleStatus AS LastMileRouteLifecycleStatus,
_MainDriverUser.UserID AS LstMiRteMainDriverUserID
FROM I_LstMiRoute
LEFT OUTER JOIN I_LstMiRouteStop AS _Stop ON LastMileRouteUUID = _Stop.LastMileRouteUUID -- association [0..*]
LEFT OUTER JOIN R_LstMiRteCheckOutTP AS _CheckOut ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_LastMileRouteCheckInTP AS _CheckIn ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_LstMiRteReloadCheckOutTP AS _ReloadCheckOut ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_LstMiRteReloadCheckInTP AS _ReloadCheckIn ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_LstMiRteVisitTP AS _Visit ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_LstMiRteVstListAssgmtTP AS _VisitListAssignment ON /* condition not available in parsed metadata */ -- association [0..*]
;
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