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 31 fields with key field LastMileVisitListUUID. It has 3 associations to related views. It is exposed through 1 OData service (UI_LASTMILEVISITLIST).

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..*] I_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 #A view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view
Metadata.allowExtensions true view

OData Services (1)

ServiceBindingVersionContractRelease
UI_LASTMILEVISITLIST UI_LASTMILEVISITLIST V4 C1 NOT_RELEASED

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY LastMileVisitListUUID LastMileVisitListUUID
LastMileVisitListID LastMileVisitListID
LastMileVisitListExtUUID LastMileVisitListExtUUID
LastMileVisitListExternalID LastMileVisitListExternalID
LastMileVisitListType LastMileVisitListType
LastMileVisitListDriverID LastMileVisitListDriverID
BusinessPartnerName
LastMileVisitListExecutionDate LastMileVisitListExecutionDate
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Division Division Internal Division ID
SourceLocation SourceLocation
LastMileVisitListDescription LastMileVisitListDescription
LastMileVisitListStatus LastMileVisitListStatus
LastMileVisitListStsCritltyCod _VisitListCalculated LastMileVisitListStsCritltyCod
LastMileVisitListLastChnDteTme LastMileVisitListLastChnDteTme
TimeZoneID TimeZoneID Time Zone
LastMileVisitListErrorsExist LastMileVisitListErrorsExist
LastMileVisitListErrCritltyCod _VisitListCalculated LastMileVisitListErrCritltyCod
_BusinessPartner _BusinessPartner
_VisitListLog _VisitListLog
_VisitListIDVH _VisitListIDVH
_VisitListExtIDVH _VisitListExtIDVH
_VisitListTypeVH _VisitListTypeVH
_VisitListStatusVH _VisitListStatusVH
_ErrorsExistVH _ErrorsExistVH
_OrganizationVH _OrganizationVH
_DistributionChannelVH _DistributionChannelVH
_DivisionVH _DivisionVH
_StartLocVH _StartLocVH
_VisitCustomer _VisitCustomer

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,
  LastMileVisitListDriverID,
  VisitList._BusinessPartner.BusinessPartnerName AS BusinessPartnerName,
  LastMileVisitListExecutionDate,
  SalesOrganization,
  DistributionChannel,
  Division,
  SourceLocation,
  LastMileVisitListDescription,
  LastMileVisitListStatus,
  _VisitListCalculated.LastMileVisitListStsCritltyCod AS LastMileVisitListStsCritltyCod,
  LastMileVisitListLastChnDteTme,
  TimeZoneID,
  LastMileVisitListErrorsExist,
  _VisitListCalculated.LastMileVisitListErrCritltyCod AS LastMileVisitListErrCritltyCod
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 I_LastMileVisitListCustomer AS _VisitCustomer ON LastMileVisitListUUID = _VisitCustomer.LastMileVisitListUUID  -- association [0..*]
;