C_Productstoragelocation

DDL: C_PRODUCTSTORAGELOCATION SQL: CPRDSTORLOCWD Type: view CONSUMPTION

Product BO - Storage Location (draft)

C_Productstoragelocation is a Consumption CDS View that provides data about "Product BO - Storage Location (draft)" in SAP S/4HANA. It reads from 1 data source (I_ProductStorageLocationWD) and exposes 12 fields with key fields Product, Plant, StorageLocation. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ProductStorageLocationWD StorageLocation from

Associations (4)

CardinalityTargetAliasCondition
[1..1] C_Product _Product $projection.Product = _Product.Product
[1..1] C_Productplant _Plant $projection.Product = _Plant.Product and $projection.Plant = _Plant.Plant
[0..1] C_ProdStorageLocationVH _StorageLocation $projection.StorageLocationForEdit = _StorageLocation.StorageLocation and $projection.PlantForEdit = _StorageLocation.Plant
[0..1] I_Plant _PlantValueHelp $projection.Plant = _PlantValueHelp.Plant

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CPRDSTORLOCWD view
EndUserText.label Product BO - Storage Location (draft) view
Search.searchable true view
VDM.viewType #CONSUMPTION view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
Metadata.allowExtensions true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY Product I_ProductStorageLocationWD Product Product Sold
KEY Plant I_ProductStorageLocationWD Plant Valuation Area
KEY StorageLocation I_ProductStorageLocationWD StorageLocation StorageLocation
PlantForEdit I_ProductStorageLocationWD PlantForEdit Plant ID
StorageLocationForEdit I_ProductStorageLocationWD StorageLocationForEdit Location
WarehouseStorageBin I_ProductStorageLocationWD WarehouseStorageBin Storage Bin
IsMarkedForDeletion I_ProductStorageLocationWD IsMarkedForDeletion Purch.org. data
CreationDate I_ProductStorageLocationWD CreationDate Time Stamp
_Product _Product
_Plant _Plant
_StorageLocation _StorageLocation
_PlantValueHelp _PlantValueHelp

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 C_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.
-- SQL view name: CPRDSTORLOCWD

CREATE VIEW C_Productstoragelocation AS
SELECT
  StorageLocation.Product AS Product,
  StorageLocation.Plant AS Plant,
  StorageLocation.StorageLocation AS StorageLocation,
  StorageLocation.PlantForEdit AS PlantForEdit,
  StorageLocation.StorageLocationForEdit AS StorageLocationForEdit,
  StorageLocation.WarehouseStorageBin AS WarehouseStorageBin,
  StorageLocation.IsMarkedForDeletion AS IsMarkedForDeletion,
  StorageLocation.CreationDate AS CreationDate
FROM I_ProductStorageLocationWD AS StorageLocation
LEFT OUTER JOIN C_Product AS _Product ON Product = _Product.Product  -- association [1..1]
LEFT OUTER JOIN C_Productplant AS _Plant ON Product = _Plant.Product AND Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN C_ProdStorageLocationVH AS _StorageLocation ON StorageLocationForEdit = _StorageLocation.StorageLocation AND PlantForEdit = _StorageLocation.Plant  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _PlantValueHelp ON Plant = _PlantValueHelp.Plant  -- association [0..1]
;