A_VMSVehicleSalesOrder

DDL: A_VMSVEHICLESALESORDER SQL: AVMSSALEORD Type: view COMPOSITE Package: ISAUTO_VLC_DB

Vehicle Sales Order

A_VMSVehicleSalesOrder is a Composite CDS View that provides data about "Vehicle Sales Order" in SAP S/4HANA. It reads from 2 data sources (I_SAPClient, I_VMSVehicleSalesOrder) and exposes 25 fields with key fields VMSVehicleUUID, VMSVehicleActionDateTime. It has 1 association to related views. It is exposed through 1 OData service (API_VMSVEHICLE). Part of development package ISAUTO_VLC_DB.

Data Sources (2)

SourceAliasJoin Type
I_SAPClient _SAPClient inner
I_VMSVehicleSalesOrder I_VMSVehicleSalesOrder from

Associations (1)

CardinalityTargetAliasCondition
[1..1] E_VMSVehicleSalesOrder _Extension $projection.VMSVehicleUUID = _Extension.VMSVehicleUUID and $projection.VMSVehicleActionDateTime = _Extension.VMSVehicleActionDateTime

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName AVMSSALEORD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Vehicle Sales Order view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
Metadata.ignorePropagatedAnnotations true view

OData Services (1)

ServiceBindingVersionContractRelease
API_VMSVEHICLE API_VMSVEHICLE V2 C2 C1

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY VMSVehicleUUID VMSVehicleUUID Vehicle GUID
KEY VMSVehicleActionDateTime VMSVehicleActionDateTime Time Stamp
VMSVehicleActionDocType VMSVehicleActionDocType Action Document Type
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
CreatedByUserName CreatedByUserName Person Resp.
PurchasingDocReferenceByCust PurchasingDocReferenceByCust Cust. Reference
SoldToParty SoldToParty Sold-to Party
CostCenter CostCenter Cost Center
SalesOrganization SalesOrganization Sales Organization
SalesOrderDate SalesOrderDate Document Date
OverallSDProcessStatus OverallSDProcessStatus
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Plant Plant Valuation Area
PlantName _plant PlantName Plant Name
OrganizationDivision OrganizationDivision Org. Division
NetAmount NetAmount Stated Amount
SalesDocumentCurrency SalesDocumentCurrency Currency
SalesOrderType SalesOrderType Sales Order Type
LogicalSystem I_SAPClient LogicalSystem Logical System
_DistributionChannelText _DistributionChannelText
_DivisionText _DivisionText
_CostCenterText _CostCenterText
_SalesOrganizationText _SalesOrganizationText
_OverallSDProcessStatusText _OverallSDProcessStatusText

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_VMSVehicleSalesOrder.
-- 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: AVMSSALEORD

CREATE VIEW A_VMSVehicleSalesOrder AS
SELECT
  VMSVehicleUUID,
  VMSVehicleActionDateTime,
  VMSVehicleActionDocType,
  SalesOrder,
  SalesOrderItem,
  CreatedByUserName,
  PurchasingDocReferenceByCust,
  SoldToParty,
  CostCenter,
  SalesOrganization,
  SalesOrderDate,
  OverallSDProcessStatus,
  DistributionChannel,
  Plant,
  _plant.PlantName AS PlantName,
  OrganizationDivision,
  NetAmount,
  SalesDocumentCurrency,
  SalesOrderType,
  _SAPClient.LogicalSystem AS LogicalSystem
FROM I_VMSVehicleSalesOrder
INNER JOIN I_SAPClient AS _SAPClient ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN E_VMSVehicleSalesOrder AS _Extension ON VMSVehicleUUID = _Extension.VMSVehicleUUID AND VMSVehicleActionDateTime = _Extension.VMSVehicleActionDateTime  -- association [1..1]
;