A_LastMileVisitItem

DDL: A_LASTMILEVISITITEM Type: view_entity CONSUMPTION

Visit Item

A_LastMileVisitItem is a Consumption CDS View that provides data about "Visit Item" in SAP S/4HANA. It reads from 1 data source (R_LastMileVisitItemTP) and exposes 18 fields with key field LastMileVisitItemUUID. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
R_LastMileVisitItemTP R_LastMileVisitItemTP projection

Associations (1)

CardinalityTargetAliasCondition
[0..1] A_BusinessPartner _BusinessPartner $projection.LastMileVisitItemActDriverID = _BusinessPartner.BusinessPartner

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Visit Item view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
Metadata.ignorePropagatedAnnotations true view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY LastMileVisitItemUUID LastMileVisitItemUUID
LastMileVisitUUID LastMileVisitUUID
LastMileVisitListUUID LastMileVisitListUUID
LastMileVisitItemID LastMileVisitItemID
LastMileVisitItemExtUUID LastMileVisitItemExtUUID
LastMileVisitItemCategory LastMileVisitItemCategory
LastMileVisitItemDuration LastMileVisitItemDuration
LastMileVisitItemDescription LastMileVisitItemDescription
LastMileVisitItemPriority LastMileVisitItemPriority
LastMileVisitItemStatus LastMileVisitItemStatus
LastMileVisitItemActDriverID LastMileVisitItemActDriverID
LastMileVisitItemSrvcProduct LastMileVisitItemSrvcProduct
LastMileVisitItemSrvcUnitID LastMileVisitItemSrvcUnitID
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Division Division Internal Division ID
_VisitredirectedtoparentA_LastMileVisit
_BusinessPartner _BusinessPartner

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 A_LastMileVisitItem.
-- 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 A_LastMileVisitItem AS
SELECT
  LastMileVisitItemUUID,
  LastMileVisitUUID,
  LastMileVisitListUUID,
  LastMileVisitItemID,
  LastMileVisitItemExtUUID,
  LastMileVisitItemCategory,
  LastMileVisitItemDuration,
  LastMileVisitItemDescription,
  LastMileVisitItemPriority,
  LastMileVisitItemStatus,
  LastMileVisitItemActDriverID,
  LastMileVisitItemSrvcProduct,
  LastMileVisitItemSrvcUnitID,
  SalesOrganization,
  DistributionChannel,
  Division
FROM R_LastMileVisitItemTP
LEFT OUTER JOIN A_BusinessPartner AS _BusinessPartner ON LastMileVisitItemActDriverID = _BusinessPartner.BusinessPartner  -- association [0..1]
;