I_LstMiRouteStop
Basic View for Route Stops
I_LstMiRouteStop is a Basic CDS View that provides data about "Basic View for Route Stops" in SAP S/4HANA. It reads from 1 data source (lmd_com_stops) and exposes 31 fields with key field LastMileRouteStopUUID. It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| lmd_com_stops | lmd_com_stops | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_LstMiRoute | _Route | $projection.LastMileRouteUUID = _Route.LastMileRouteUUID |
| [0..*] | I_LstMiRouteDocument | _Document | $projection.LastMileRouteStopUUID = _Document.LastMileRouteStopUUID |
| [0..*] | I_LstMiRouteCollection | _Collection | $projection.LastMileRouteStopUUID = _Collection.LastMileRouteStopUUID |
| [0..*] | I_LstMiRouteCOCIPayment | _COCIPayment | $projection.LastMileRouteStopUUID = _COCIPayment.LastMileRouteStopUUID |
| [0..*] | I_LstMiRouteCOCIProduct | _COCIProduct | $projection.LastMileRouteStopUUID = _COCIProduct.LastMileRouteStopUUID |
| [0..1] | I_Customer | _ShipToPartyVH | $projection.ShipToParty = _ShipToPartyVH.Customer |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| EndUserText.label | Basic View for Route Stops | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
Fields (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LastMileRouteStopUUID | stop_uuid | Stop UUID | |
| LastMileRouteUUID | route_uuid | Route UUID | ||
| LastMileRouteStopType | stop_type | Stop Type | ||
| LstMiRouteStopProcessingStatus | processing_status | Route Stop Status | ||
| ShipToParty | shipto_party_id | Ship-To Party ID | ||
| LastMileRouteStop | stop_id | Stop ID | ||
| LastMileRouteStage | stop_stage_id | Stage ID | ||
| LastMileRouteStopSequenceValue | sequence | Visit Sequence | ||
| TranspOrdStopLocation | location_id | Location ID | ||
| TranspOrdReqArrivalDteTme | planned_arrival_timestamp | Timestamp | ||
| TranspOrdReqDepartureDteTme | planned_departure_timestamp | Timestamp | ||
| TranspOrdArrivalDateTime | actual_arrival_timestamp | Timestamp | ||
| TranspOrdDepartureDateTime | actual_departure_timestamp | Timestamp | ||
| LstMiRteOdometerUnitOfMeasure | _Route | LstMiRteOdometerUnitOfMeasure | ||
| LstMiRouteStopOdometerQuantity | odometer | Odometer | ||
| LastMileRouteClerkName | clerk_name | Checker | ||
| LastMileRouteReasonCode | execution_reason_code | Reason | ||
| AddressID | location_address_id | Location Address ID | ||
| LastMileRouteStopCOCIBehavior | coci_behavior | COCI Behavior | ||
| LastMileRouteStopIsRemoved | is_removed | Removed | ||
| LastMileRouteOriginCode | origin_code | Origin | ||
| LstMiReplicationRequestStatus | replication_request_status | Replication Request Status | ||
| LstMiRteStopDataVersionUUID | stop_data_version_uuid | |||
| LastMileRouteIsMnllyAddedRecd | is_manually_added | Manually Added | ||
| LstMiRteRldChkInChkOutRltnUUID | reload_rel_ci_to_co_uuid | |||
| _Route | _Route | |||
| _Document | _Document | |||
| _Collection | _Collection | |||
| _COCIPayment | _COCIPayment | |||
| _COCIProduct | _COCIProduct | |||
| _ShipToPartyVH | _ShipToPartyVH |
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_LstMiRouteStop.
-- 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_LstMiRouteStop AS
SELECT
stop_uuid AS LastMileRouteStopUUID,
route_uuid AS LastMileRouteUUID,
stop_type AS LastMileRouteStopType,
processing_status AS LstMiRouteStopProcessingStatus,
shipto_party_id AS ShipToParty,
stop_id AS LastMileRouteStop,
stop_stage_id AS LastMileRouteStage,
sequence AS LastMileRouteStopSequenceValue,
location_id AS TranspOrdStopLocation,
planned_arrival_timestamp AS TranspOrdReqArrivalDteTme,
planned_departure_timestamp AS TranspOrdReqDepartureDteTme,
actual_arrival_timestamp AS TranspOrdArrivalDateTime,
actual_departure_timestamp AS TranspOrdDepartureDateTime,
_Route.LstMiRteOdometerUnitOfMeasure AS LstMiRteOdometerUnitOfMeasure,
odometer AS LstMiRouteStopOdometerQuantity,
clerk_name AS LastMileRouteClerkName,
execution_reason_code AS LastMileRouteReasonCode,
location_address_id AS AddressID,
coci_behavior AS LastMileRouteStopCOCIBehavior,
is_removed AS LastMileRouteStopIsRemoved,
origin_code AS LastMileRouteOriginCode,
replication_request_status AS LstMiReplicationRequestStatus,
stop_data_version_uuid AS LstMiRteStopDataVersionUUID,
is_manually_added AS LastMileRouteIsMnllyAddedRecd,
reload_rel_ci_to_co_uuid AS LstMiRteRldChkInChkOutRltnUUID
FROM lmd_com_stops
LEFT OUTER JOIN I_LstMiRoute AS _Route ON LastMileRouteUUID = _Route.LastMileRouteUUID -- association [1..1]
LEFT OUTER JOIN I_LstMiRouteDocument AS _Document ON LastMileRouteStopUUID = _Document.LastMileRouteStopUUID -- association [0..*]
LEFT OUTER JOIN I_LstMiRouteCollection AS _Collection ON LastMileRouteStopUUID = _Collection.LastMileRouteStopUUID -- association [0..*]
LEFT OUTER JOIN I_LstMiRouteCOCIPayment AS _COCIPayment ON LastMileRouteStopUUID = _COCIPayment.LastMileRouteStopUUID -- association [0..*]
LEFT OUTER JOIN I_LstMiRouteCOCIProduct AS _COCIProduct ON LastMileRouteStopUUID = _COCIProduct.LastMileRouteStopUUID -- association [0..*]
LEFT OUTER JOIN I_Customer AS _ShipToPartyVH ON ShipToParty = _ShipToPartyVH.Customer -- 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