C_LastMileVisitList

DDL: C_LASTMILEVISITLIST Type: view_entity CONSUMPTION

LMD Visit List - Consumption View UI

C_LastMileVisitList is a Consumption CDS View that provides data about "LMD Visit List - Consumption View UI" in SAP S/4HANA. It reads from 1 data source (R_LastMileVisitListTP) and exposes 40 fields with key field LastMileVisitListUUID. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
R_LastMileVisitListTP R_LastMileVisitListTP projection

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_BusinessPartnerVH _BusinessPartner $projection.LastMileVisitListDriverID = _BusinessPartner.BusinessPartner
[0..*] C_LastMileVisitListLog _VisitListLog $projection.LastMileVisitListID = _VisitListLog.LastMileVisitListID
[0..*] C_LastMileVisitListCustomer _VisitCustomer $projection.LastMileVisitListUUID = _VisitCustomer.LastMileVisitListUUID

Annotations (7)

NameValueLevelField
EndUserText.label LMD Visit List - Consumption View UI view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view
Metadata.allowExtensions true view

Fields (40)

KeyFieldSource TableSource FieldDescription
KEY LastMileVisitListUUID LastMileVisitListUUID
LastMileVisitListID LastMileVisitListID
LastMileVisitListExtUUID LastMileVisitListExtUUID
LastMileVisitListExternalID LastMileVisitListExternalID
LastMileVisitListType LastMileVisitListType
LastMileVisitListTypeText _VisitListTypeVH LastMileVisitListTypeText
LastMileVisitListDriverID LastMileVisitListDriverID
TranspVehicleDriverName
LastMileVisitListExecutionDate LastMileVisitListExecutionDate
SalesOrganization SalesOrganization Sales Organization
SalesOrganizationName
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
DistributionChannelName
Division Division Internal Division ID
DivisionName
SourceLocation SourceLocation
LastMileVisitListDescription LastMileVisitListDescription
LastMileVisitListStatus LastMileVisitListStatus
LastMileVisitListStsCritltyCod _VisitListCalculated LastMileVisitListStsCritltyCod
LastMileVisitListLastChnDteTme LastMileVisitListLastChnDteTme
TimeZoneID TimeZoneID Time Zone
LastMileVisitListErrorsExist LastMileVisitListErrorsExist
LastMileVisitListErrCritltyCod _VisitListCalculated LastMileVisitListErrCritltyCod
ResourceID ResourceID Vehicle ID
LastMileDeliveryRoute LastMileDeliveryRoute Route
RouteName _RouteVH RouteName
LastMileVisitListSchedule _VisitListSchedule LastMileVisitListSchedule
_BusinessPartner _BusinessPartner
_VisitListLog _VisitListLog
_VisitListIDVH _VisitListIDVH
_VisitListExtIDVH _VisitListExtIDVH
_VisitListTypeVH _VisitListTypeVH
_VisitListStatusVH _VisitListStatusVH
_ErrorsExistVH _ErrorsExistVH
_OrganizationVH _OrganizationVH
_DistributionChannelVH _DistributionChannelVH
_DivisionVH _DivisionVH
_StartLocVH _StartLocVH
_VisitCustomer _VisitCustomer
_RouteVH _RouteVH

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 C_LastMileVisitList.
-- 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 C_LastMileVisitList AS
SELECT
  LastMileVisitListUUID,
  LastMileVisitListID,
  LastMileVisitListExtUUID,
  LastMileVisitListExternalID,
  LastMileVisitListType,
  _VisitListTypeVH.LastMileVisitListTypeText AS LastMileVisitListTypeText,
  LastMileVisitListDriverID,
  cast( VisitList._BusinessPartner.BusinessPartnerName as lmd_com_driver_name preserving type ) AS TranspVehicleDriverName,
  LastMileVisitListExecutionDate,
  SalesOrganization,
  VisitList._OrganizationVH.SalesOrganizationName AS SalesOrganizationName,
  DistributionChannel,
  VisitList._DistributionChannelVH.DistributionChannelName AS DistributionChannelName,
  Division,
  VisitList._DivisionVH.DivisionName AS DivisionName,
  SourceLocation,
  LastMileVisitListDescription,
  LastMileVisitListStatus,
  _VisitListCalculated.LastMileVisitListStsCritltyCod AS LastMileVisitListStsCritltyCod,
  LastMileVisitListLastChnDteTme,
  TimeZoneID,
  LastMileVisitListErrorsExist,
  _VisitListCalculated.LastMileVisitListErrCritltyCod AS LastMileVisitListErrCritltyCod,
  ResourceID,
  LastMileDeliveryRoute,
  _RouteVH.RouteName AS RouteName,
  _VisitListSchedule.LastMileVisitListSchedule AS LastMileVisitListSchedule
FROM R_LastMileVisitListTP
LEFT OUTER JOIN I_BusinessPartnerVH AS _BusinessPartner ON LastMileVisitListDriverID = _BusinessPartner.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN C_LastMileVisitListLog AS _VisitListLog ON LastMileVisitListID = _VisitListLog.LastMileVisitListID  -- association [0..*]
LEFT OUTER JOIN C_LastMileVisitListCustomer AS _VisitCustomer ON LastMileVisitListUUID = _VisitCustomer.LastMileVisitListUUID  -- association [0..*]
;