N_ProductStorageLocation

DDL: N_PRODUCTSTORAGELOCATION Type: view Package: VDM_MD_PRODUCT

Auxiliary view for Storage Location

N_ProductStorageLocation is a CDS View that provides data about "Auxiliary view for Storage Location" in SAP S/4HANA. It reads from 1 data source (mard) and exposes 4 fields with key fields Product, Plant, StorageLocation. It has 1 association to related views. Part of development package VDM_MD_PRODUCT.

Data Sources (1)

SourceAliasJoin Type
mard StorageLocation from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_StorageLocation _StorageLocation $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName NPRDSTORLOC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Auxiliary view for Storage Location view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
VDM.auxiliaryEntity.for.entity I_ProductStorageLocation view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY Product mard matnr Vehicle Model
KEY Plant mard werks Receiving Plant
KEY StorageLocation mard lgort Sublocation
_StorageLocation _StorageLocation

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 N_ProductStorageLocation.
-- 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 N_ProductStorageLocation AS
SELECT
  StorageLocation.matnr AS Product,
  StorageLocation.werks AS Plant,
  StorageLocation.lgort AS StorageLocation
FROM mard AS StorageLocation
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation  -- association [1..1]
;