I_OIL_LocMatlSourceDestBasic
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)
| Source | Alias | Join Type |
|---|---|---|
| oijsdloc | oijsdloc | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA