P_LstMiRteDocsExtDocClrgStatus

DDL: P_LSTMIRTEDOCSEXTDOCCLRGSTATUS SQL: PLSTMIRDEDCSTS Type: view COMPOSITE

P_LstMiRteDocsExtDocClrgStatus is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_LstMiExternalDocumentsEnhcd) and exposes 11 fields with key field LastMileRouteVisitUUID.

Data Sources (1)

SourceAliasJoin Type
P_LstMiExternalDocumentsEnhcd P_LstMiExternalDocumentsEnhcd from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PLSTMIRDEDCSTS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY LastMileRouteVisitUUID LastMileRouteVisitUUID
LstMiRteVisitHasNotClrdDocs
LstMiRteDocClrdCriticalityCode
LastMileRoute LastMileRoute
LastMileRouteDepartureLocation LastMileRouteDepartureLocation
TranspOrdDepartureDate TranspOrdDepartureDate
LstMiRteExecutionOrganization LstMiRteExecutionOrganization
LastMileRouteType LastMileRouteType
TransportationVehicleDriver TransportationVehicleDriver Driver
ResourceSecondDriver ResourceSecondDriver
ShipToParty ShipToParty Ship-To Party (obsolete)

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 P_LstMiRteDocsExtDocClrgStatus.
-- 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.
-- SQL view name: PLSTMIRDEDCSTS

CREATE VIEW P_LstMiRteDocsExtDocClrgStatus AS
SELECT
  LastMileRouteVisitUUID,
  cast( min(LstMiRouteDocumentIsIncomplete) as lmd_clearing_document_status preserving type ) AS LstMiRteVisitHasNotClrdDocs,
  cast( max(LstMiRteDocIncmpltCritltyCode) as lmd_doc_clearing_critical_code preserving type ) AS LstMiRteDocClrdCriticalityCode,
  LastMileRoute,
  LastMileRouteDepartureLocation,
  TranspOrdDepartureDate,
  LstMiRteExecutionOrganization,
  LastMileRouteType,
  TransportationVehicleDriver,
  ResourceSecondDriver,
  ShipToParty
FROM P_LstMiExternalDocumentsEnhcd
;