I_OIL_LocMatlSourceDestBasic

DDL: I_OIL_LOCMATLSOURCEDESTBASIC Type: view_entity BASIC

Location Multiple Sources Destination

I_OIL_LocMatlSourceDestBasic is a Basic CDS View that provides data about "Location Multiple Sources Destination" in SAP S/4HANA. It reads from 1 data source (oijsdloc) and exposes 29 fields with key fields TSWLocationID, Material, ReferenceTransportSystem, ReferenceLocationIdentifier, LocationUsage. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
oijsdloc oijsdloc from

Associations (9)

CardinalityTargetAliasCondition
[1..1] I_OIL_LocationTSWBasic _LocationTSW _LocationTSW.TSWLocationID = $projection.TSWLocationID
[1..1] I_Material _Material _Material.Material = $projection.Material
[1..1] I_OIL_TransportSystem _TransportSystem _TransportSystem.TransportSystem = $projection.ReferenceTransportSystem
[1..1] I_OIL_LocationTSWBasic _ReferenceLocationTSW _ReferenceLocationTSW.TSWLocationID = $projection.ReferenceLocationIdentifier
[1..1] I_OIL_LocationTerminalUsageVH _LocationTerminalUsage _LocationTerminalUsage.LocationUsage = $projection.LocationUsage
[1..1] I_OIL_LocationTerminalVH _LocationTerminal _LocationTerminal.LocationTerminal = $projection.LocationTerminal
[1..1] I_OIL_RefDocIndicatorVH _RefDocIndicator _RefDocIndicator.ReferenceDocumentCode = $projection.ReferenceDocumentCode
[1..1] I_NominationScheduleTypeVH _NominationScheduleType _NominationScheduleType.ScheduleType = $projection.NominationScheduleType
[1..1] I_OIL_LocTransferPriorityVH _LocTransferPriority _LocTransferPriority.LocationTransferPriority = $projection.LocationTransferPriority

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Location Multiple Sources Destination view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey Material view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY TSWLocationID locid Single-Character Flag
KEY Material matnr Vehicle Model
KEY ReferenceTransportSystem rtsyst Ref TS
KEY ReferenceLocationIdentifier rlocid Ref Loc ID
KEY LocationUsage usageind Usage Ind
LocationTerminal sdind S or D Ind
ReferenceDocumentCode docind Single-Character Flag
NominationScheduleType sityp Trip Schedule Type
QuotaInPercent quota Quota Type
LocationTransferPriority priority Workflow priority
LocationHasBalance locbalind Loc. Bal. Ind.
CreationDate erdat Entered On
CreationTime erzeit Time created
CreatedByUser ernam User Name
LastChangeDate aedat Obsolete
LastChangeTime aezeit Time changed
LastChangedByUser aenam User Name
EntityIsBlocked bloind Single-Character Flag
EntityIsMarkedForDeletion delind Will be Deleted
TicketIsSelectable tktselect Flag to Select Tkt
_LocationTSW _LocationTSW
_Material _Material
_TransportSystem _TransportSystem
_ReferenceLocationTSW _ReferenceLocationTSW
_LocationTerminalUsage _LocationTerminalUsage
_LocationTerminal _LocationTerminal
_RefDocIndicator _RefDocIndicator
_NominationScheduleType _NominationScheduleType
_LocTransferPriority _LocTransferPriority

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 I_OIL_LocMatlSourceDestBasic.
-- 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 I_OIL_LocMatlSourceDestBasic AS
SELECT
  locid AS TSWLocationID,
  matnr AS Material,
  rtsyst AS ReferenceTransportSystem,
  rlocid AS ReferenceLocationIdentifier,
  usageind AS LocationUsage,
  sdind AS LocationTerminal,
  docind AS ReferenceDocumentCode,
  sityp AS NominationScheduleType,
  quota AS QuotaInPercent,
  priority AS LocationTransferPriority,
  locbalind AS LocationHasBalance,
  erdat AS CreationDate,
  erzeit AS CreationTime,
  ernam AS CreatedByUser,
  aedat AS LastChangeDate,
  aezeit AS LastChangeTime,
  aenam AS LastChangedByUser,
  bloind AS EntityIsBlocked,
  delind AS EntityIsMarkedForDeletion,
  tktselect AS TicketIsSelectable
FROM oijsdloc
LEFT OUTER JOIN I_OIL_LocationTSWBasic AS _LocationTSW ON _LocationTSW.TSWLocationID = TSWLocationID  -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON _Material.Material = Material  -- association [1..1]
LEFT OUTER JOIN I_OIL_TransportSystem AS _TransportSystem ON _TransportSystem.TransportSystem = ReferenceTransportSystem  -- association [1..1]
LEFT OUTER JOIN I_OIL_LocationTSWBasic AS _ReferenceLocationTSW ON _ReferenceLocationTSW.TSWLocationID = ReferenceLocationIdentifier  -- association [1..1]
LEFT OUTER JOIN I_OIL_LocationTerminalUsageVH AS _LocationTerminalUsage ON _LocationTerminalUsage.LocationUsage = LocationUsage  -- association [1..1]
LEFT OUTER JOIN I_OIL_LocationTerminalVH AS _LocationTerminal ON _LocationTerminal.LocationTerminal = LocationTerminal  -- association [1..1]
LEFT OUTER JOIN I_OIL_RefDocIndicatorVH AS _RefDocIndicator ON _RefDocIndicator.ReferenceDocumentCode = ReferenceDocumentCode  -- association [1..1]
LEFT OUTER JOIN I_NominationScheduleTypeVH AS _NominationScheduleType ON _NominationScheduleType.ScheduleType = NominationScheduleType  -- association [1..1]
LEFT OUTER JOIN I_OIL_LocTransferPriorityVH AS _LocTransferPriority ON _LocTransferPriority.LocationTransferPriority = LocationTransferPriority  -- association [1..1]
;