A_VMSVehicle

DDL: A_VMSVEHICLE SQL: AVMSVEHICLE Type: view COMPOSITE

Vehicle Details

A_VMSVehicle is a Composite CDS View that provides data about "Vehicle Details" in SAP S/4HANA. It reads from 2 data sources (I_SAPClient, I_VMSVehicle) and exposes 62 fields with key field VMSVehicleUUID. It has 20 associations to related views. It is exposed through 1 OData service (API_VMSVEHICLE).

Data Sources (2)

SourceAliasJoin Type
I_SAPClient _SAPClient inner
I_VMSVehicle I_VMSVehicle from

Associations (20)

CardinalityTargetAliasCondition
[1..1] E_VMSVehicle _Extension _Extension.VMSVehicleUUID = $projection.VMSVehicleUUID
[1..*] A_VMSVehicleInvoice _VMSVehicleInvoice _VMSVehicleInvoice.VMSVehicleUUID = $projection.VMSVehicleUUID
[1..*] A_VMSVehicleIncomingInvoice _VMSVehicleIncomingInvoice _VMSVehicleIncomingInvoice.VMSVehicleUUID = $projection.VMSVehicleUUID
[1..*] A_VMSVehicleToEquipment _VMSVehicleToEquipment _VMSVehicleToEquipment.InstalledBaseComponent = $projection.ConfigurationNumber and $projection.Material = _VMSVehicleToEquipment.ClfnObjectID
[1..*] A_VMSVehicleSalesOrder _VMSVehicleSalesOrder _VMSVehicleSalesOrder.VMSVehicleUUID = $projection.VMSVehicleUUID
[1..*] A_VMSVehiclePurchaseOrder _VMSVehiclePurchaseOrder _VMSVehiclePurchaseOrder.VMSVehicleUUID = $projection.VMSVehicleUUID
[1..*] A_VMSVehicleHistory _VMSVehicleHistory _VMSVehicleHistory.VMSVehicleUUID = $projection.VMSVehicleUUID
[0..1] A_VMSVehicleLocation _VMSVehicleLocation I_VMSVehicle.VMSVehicleLocation = _VMSVehicleLocation.AddressNumber and _VMSVehicleLocation.AddressNumber <> ' '
[1..*] A_VMSVehicleStatusText _VMSVehiclePrimaryStatusText _VMSVehiclePrimaryStatusText.VMSVehicleStatus = $projection.VMSVehiclePrimaryStatus
[1..*] A_VMSVehicleStatusText _VMSVehicleSecondaryStatusText _VMSVehicleSecondaryStatusText.VMSVehicleStatus = $projection.VMSVehicleSecondaryStatus
[1..*] A_VMSVehicleAvailabilityText _VMSVehicleAvailabilityText _VMSVehicleAvailabilityText.VMSVehicleAvailabilityStatus = $projection.VMSVehicleAvailabilityStatus
[1..*] A_VMSVehicleCampaignText _VMSVehCampaignText _VMSVehCampaignText.VMSVehicleSalesCampaign = $projection.VMSVehicleSalesCampaign
[1..*] A_VMSVehicleSearchAreaText _VMSVehicleSearchAreaText _VMSVehicleSearchAreaText.VMSVehicleSearchArea = $projection.VMSVehicleSearchArea
[1..*] A_VMSVehicleSharingLevelText _VMSVehSharingLevelText _VMSVehSharingLevelText.VMSVehicleSharingLevel = $projection.VMSVehicleSharingLevel
[1..*] A_VMSVehicleUsageStatusText _VMSVehUsageStatusText _VMSVehUsageStatusText.VMSVehicleUsageStatus = $projection.VMSVehicleUsageStatus
[1..*] A_VMSVehicleLocationText _LocationText $projection.vmsvehiclelocation = _LocationText.VMSVehicleLocation
[1..1] A_Customer _Customer $projection.VMSVehicleCustomer = _Customer.Customer
[1..1] A_Customer _OrderingParty $projection.VMSVehicleOrderingParty = _OrderingParty.Customer
[1..1] A_Supplier _Supplier $projection.ReferenceVendor = _Supplier.Supplier
[1..1] A_BusinessPartner _Partner $projection.VMSVehicleEndCustomer = _Partner.BusinessPartner

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName AVMSVEHICLE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Vehicle Details view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view

OData Services (1)

ServiceBindingVersionContractRelease
API_VMSVEHICLE API_VMSVEHICLE V2 C2 C1

Fields (62)

KeyFieldSource TableSource FieldDescription
KEY VMSVehicleUUID VMSVehicleUUID Vehicle GUID
Material Material Vehicle Model
VMSDigitalVehicleHubModel VMSDigitalVehicleHubModel
VMSVehicleInternalID VMSVehicleInternalID Int. Veh. No.
ReferenceVendor ReferenceVendor Vendor no.
VMSVehicleBatch VMSVehicleBatch Chargeable Proc.
Equipment Equipment Equipment check
VMSVehicleActionDocType VMSVehicleActionDocType Action Document Type
Plant Plant Valuation Area
PlantName _plant PlantName Plant Name
StorageLocation StorageLocation StorageLocation
StorageLocationName _storagelocation StorageLocationName Storage Loc. Name
ValuationType ValuationType Valuation Type
ConfigurationNumber ConfigurationNumber Int. object no.
VMSVehiclePrimActionControl VMSVehiclePrimActionControl Action Control
VMSVehiclePrimaryStatus VMSVehiclePrimaryStatus Primary Status
VMSVehiclePrimStatusDateTime VMSVehiclePrimStatusDateTime Time Stamp
VMSVehicleSecdryActionControl VMSVehicleSecdryActionControl Action Control
VMSVehicleSecondaryStatus VMSVehicleSecondaryStatus Secondary Status
VMSVehicleSecdryStatusDateTime VMSVehicleSecdryStatusDateTime Time Stamp
VMSVehicleConfdDelivDateTime VMSVehicleConfdDelivDateTime Confirmed Date
VMSVehicleProductionDateTime VMSVehicleProductionDateTime Time of production
VMSVehiclePlndDelivDateTime VMSVehiclePlndDelivDateTime Plnd Delivery Time
VMSVehicleIsArchived VMSVehicleIsArchived Archiving
VehicleIdentificationNumber VehicleIdentificationNumber VIN
VMSVehicleExternalID VMSVehicleExternalID Ext.Veh.Number
VMSVehicleAvailabilityStatus VMSVehicleAvailabilityStatus Availability
VMSVehicleIsVisible VMSVehicleIsVisible Visibility
VMSVehicleLocation _VMSVehicleLocation VMSVehicleLocation Vehicle Location
VMSVehicleCustomer VMSVehicleCustomer Stock customer
VMSVehicleEndCustomer VMSVehicleEndCustomer End Customer
CreatedByUserName CreatedByUserName Person Resp.
VMSVehicleUsageStatus VMSVehicleUsageStatus Vehicle Usage
VMSVehicleSalesCampaign VMSVehicleSalesCampaign Sales Campaign
VMSVehicleMileageQuantity VMSVehicleMileageQuantity Counter reading
VMSVehicleMileageUsageUnit VMSVehicleMileageUsageUnit COunter unit
VMSVehicleRegistrationDate VMSVehicleRegistrationDate Initial Registn.Date
VMSVehicleSearchArea VMSVehicleSearchArea Veh.Search Area
VMSVehicleOrderingParty VMSVehicleOrderingParty Orig. Ord. Pty
VMSVehGrossPrcAmtInVehPrcCrcy VMSVehGrossPrcAmtInVehPrcCrcy Gross List Price
VMSVehiclePriceCrcy VMSVehiclePriceCrcy Currency
VMSVehicleSharingLevel VMSVehicleSharingLevel Sharing Levels
VMSVehicleIsUsed VMSVehicleIsUsed Used Vehicle
LogicalSystem I_SAPClient LogicalSystem Logical System
_VMSVehicleInvoice _VMSVehicleInvoice
_VMSVehicleIncomingInvoice _VMSVehicleIncomingInvoice
_VMSVehicleToEquipment _VMSVehicleToEquipment
_VMSVehicleSalesOrder _VMSVehicleSalesOrder
_VMSVehiclePurchaseOrder _VMSVehiclePurchaseOrder
_VMSVehicleHistory _VMSVehicleHistory
_VMSVehiclePrimaryStatusText _VMSVehiclePrimaryStatusText
_VMSVehicleSecondaryStatusText _VMSVehicleSecondaryStatusText
_VMSVehicleAvailabilityText _VMSVehicleAvailabilityText
_VMSVehCampaignText _VMSVehCampaignText
_VMSVehicleSearchAreaText _VMSVehicleSearchAreaText
_VMSVehSharingLevelText _VMSVehSharingLevelText
_VMSVehUsageStatusText _VMSVehUsageStatusText
_LocationText _LocationText
_Customer _Customer
_OrderingParty _OrderingParty
_Supplier _Supplier
_Partner _Partner

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_VMSVehicle.
-- 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: AVMSVEHICLE

CREATE VIEW A_VMSVehicle AS
SELECT
  VMSVehicleUUID,
  Material,
  VMSDigitalVehicleHubModel,
  VMSVehicleInternalID,
  ReferenceVendor,
  VMSVehicleBatch,
  Equipment,
  VMSVehicleActionDocType,
  Plant,
  _plant.PlantName AS PlantName,
  StorageLocation,
  _storagelocation.StorageLocationName AS StorageLocationName,
  ValuationType,
  ConfigurationNumber,
  VMSVehiclePrimActionControl,
  VMSVehiclePrimaryStatus,
  VMSVehiclePrimStatusDateTime,
  VMSVehicleSecdryActionControl,
  VMSVehicleSecondaryStatus,
  VMSVehicleSecdryStatusDateTime,
  VMSVehicleConfdDelivDateTime,
  VMSVehicleProductionDateTime,
  VMSVehiclePlndDelivDateTime,
  VMSVehicleIsArchived,
  VehicleIdentificationNumber,
  VMSVehicleExternalID,
  VMSVehicleAvailabilityStatus,
  VMSVehicleIsVisible,
  _VMSVehicleLocation.VMSVehicleLocation AS VMSVehicleLocation,
  VMSVehicleCustomer,
  VMSVehicleEndCustomer,
  CreatedByUserName,
  VMSVehicleUsageStatus,
  VMSVehicleSalesCampaign,
  VMSVehicleMileageQuantity,
  VMSVehicleMileageUsageUnit,
  VMSVehicleRegistrationDate,
  VMSVehicleSearchArea,
  VMSVehicleOrderingParty,
  VMSVehGrossPrcAmtInVehPrcCrcy,
  VMSVehiclePriceCrcy,
  VMSVehicleSharingLevel,
  VMSVehicleIsUsed,
  _SAPClient.LogicalSystem AS LogicalSystem
FROM I_VMSVehicle
INNER JOIN I_SAPClient AS _SAPClient ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN E_VMSVehicle AS _Extension ON _Extension.VMSVehicleUUID = VMSVehicleUUID  -- association [1..1]
LEFT OUTER JOIN A_VMSVehicleInvoice AS _VMSVehicleInvoice ON _VMSVehicleInvoice.VMSVehicleUUID = VMSVehicleUUID  -- association [1..*]
LEFT OUTER JOIN A_VMSVehicleIncomingInvoice AS _VMSVehicleIncomingInvoice ON _VMSVehicleIncomingInvoice.VMSVehicleUUID = VMSVehicleUUID  -- association [1..*]
LEFT OUTER JOIN A_VMSVehicleToEquipment AS _VMSVehicleToEquipment ON _VMSVehicleToEquipment.InstalledBaseComponent = ConfigurationNumber AND Material = _VMSVehicleToEquipment.ClfnObjectID  -- association [1..*]
LEFT OUTER JOIN A_VMSVehicleSalesOrder AS _VMSVehicleSalesOrder ON _VMSVehicleSalesOrder.VMSVehicleUUID = VMSVehicleUUID  -- association [1..*]
LEFT OUTER JOIN A_VMSVehiclePurchaseOrder AS _VMSVehiclePurchaseOrder ON _VMSVehiclePurchaseOrder.VMSVehicleUUID = VMSVehicleUUID  -- association [1..*]
LEFT OUTER JOIN A_VMSVehicleHistory AS _VMSVehicleHistory ON _VMSVehicleHistory.VMSVehicleUUID = VMSVehicleUUID  -- association [1..*]
LEFT OUTER JOIN A_VMSVehicleLocation AS _VMSVehicleLocation ON I_VMSVehicle.VMSVehicleLocation = _VMSVehicleLocation.AddressNumber AND _VMSVehicleLocation.AddressNumber <> ' '  -- association [0..1]
LEFT OUTER JOIN A_VMSVehicleStatusText AS _VMSVehiclePrimaryStatusText ON _VMSVehiclePrimaryStatusText.VMSVehicleStatus = VMSVehiclePrimaryStatus  -- association [1..*]
LEFT OUTER JOIN A_VMSVehicleStatusText AS _VMSVehicleSecondaryStatusText ON _VMSVehicleSecondaryStatusText.VMSVehicleStatus = VMSVehicleSecondaryStatus  -- association [1..*]
LEFT OUTER JOIN A_VMSVehicleAvailabilityText AS _VMSVehicleAvailabilityText ON _VMSVehicleAvailabilityText.VMSVehicleAvailabilityStatus = VMSVehicleAvailabilityStatus  -- association [1..*]
LEFT OUTER JOIN A_VMSVehicleCampaignText AS _VMSVehCampaignText ON _VMSVehCampaignText.VMSVehicleSalesCampaign = VMSVehicleSalesCampaign  -- association [1..*]
LEFT OUTER JOIN A_VMSVehicleSearchAreaText AS _VMSVehicleSearchAreaText ON _VMSVehicleSearchAreaText.VMSVehicleSearchArea = VMSVehicleSearchArea  -- association [1..*]
LEFT OUTER JOIN A_VMSVehicleSharingLevelText AS _VMSVehSharingLevelText ON _VMSVehSharingLevelText.VMSVehicleSharingLevel = VMSVehicleSharingLevel  -- association [1..*]
LEFT OUTER JOIN A_VMSVehicleUsageStatusText AS _VMSVehUsageStatusText ON _VMSVehUsageStatusText.VMSVehicleUsageStatus = VMSVehicleUsageStatus  -- association [1..*]
LEFT OUTER JOIN A_VMSVehicleLocationText AS _LocationText ON vmsvehiclelocation = _LocationText.VMSVehicleLocation  -- association [1..*]
LEFT OUTER JOIN A_Customer AS _Customer ON VMSVehicleCustomer = _Customer.Customer  -- association [1..1]
LEFT OUTER JOIN A_Customer AS _OrderingParty ON VMSVehicleOrderingParty = _OrderingParty.Customer  -- association [1..1]
LEFT OUTER JOIN A_Supplier AS _Supplier ON ReferenceVendor = _Supplier.Supplier  -- association [1..1]
LEFT OUTER JOIN A_BusinessPartner AS _Partner ON VMSVehicleEndCustomer = _Partner.BusinessPartner  -- association [1..1]
;