C_CSPRStorageLocation

DDL: C_CSPRSTORAGELOCATION SQL: CCSPRSTRGELOCTN Type: view CONSUMPTION

Count Products with RFID: Storage Locatn

C_CSPRStorageLocation is a Consumption CDS View that provides data about "Count Products with RFID: Storage Locatn" in SAP S/4HANA. It reads from 1 data source (I_StorageLocation) and exposes 8 fields with key fields Store, StorageLocation. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_StorageLocation I_StorageLocation from

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_RetailStoreApplicationStore _RetailStoreApplicationStore $projection.Store = _RetailStoreApplicationStore.Store and _RetailStoreApplicationStore.RetailStoreApplicationCategory = '2'
[0..1] C_CSPRCount _ActiveRFIDCount _ActiveRFIDCount.Store = $projection.Store and _ActiveRFIDCount.StorageLocation = $projection.StorageLocation and ( _ActiveRFIDCount.StoreProductRFIDCntProcgStatus = '07' or( ( _ActiveRFIDCount.StoreProductRFIDCntProcgStatus = '00' or _ActiveRFIDCount.StoreProductRFIDCntProcgStatus = '01' ) and _ActiveRFIDCount.StoreProdRFIDCntExprtnDteTme >= $projection.CurrentDateTime ) )
[0..1] C_CSPRCount _LastRFIDCount _LastRFIDCount.Store = $projection.Store and _LastRFIDCount.StorageLocation = $projection.StorageLocation and _LastRFIDCount.SubmissionDateTime = $projection.LastRFIDCountSubmissionDteTme and _LastRFIDCount.StoreProductRFIDCntProcgStatus = '02'

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CCSPRSTRGELOCTN view
EndUserText.label Count Products with RFID: Storage Locatn view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.representativeKey StorageLocation view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY Store I_StorageLocation Plant Valuation Area
KEY StorageLocation I_StorageLocation StorageLocation StorageLocation
StorageLocationName I_StorageLocation StorageLocationName Storage Loc. Name
LastRFIDCountSubmissionDteTme I_StorageLocationLastRFIDCount LastRFIDCountSubmissionDteTme
CurrentDateTime
_ActiveRFIDCount _ActiveRFIDCount
_LastRFIDCount _LastRFIDCount
_RetailStoreApplicationStore _RetailStoreApplicationStore

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_CSPRStorageLocation.
-- 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: CCSPRSTRGELOCTN

CREATE VIEW C_CSPRStorageLocation AS
SELECT
  I_StorageLocation.Plant AS Store,
  I_StorageLocation.StorageLocation AS StorageLocation,
  I_StorageLocation.StorageLocationName AS StorageLocationName,
  I_StorageLocationLastRFIDCount.LastRFIDCountSubmissionDteTme AS LastRFIDCountSubmissionDteTme,
  tstmp_current_utctimestamp() AS CurrentDateTime
FROM I_StorageLocation
LEFT OUTER JOIN I_RetailStoreApplicationStore AS _RetailStoreApplicationStore ON Store = _RetailStoreApplicationStore.Store AND _RetailStoreApplicationStore.RetailStoreApplicationCategory = '2'  -- association [0..*]
LEFT OUTER JOIN C_CSPRCount AS _ActiveRFIDCount ON _ActiveRFIDCount.Store = Store AND _ActiveRFIDCount.StorageLocation = StorageLocation AND ( _ActiveRFIDCount.StoreProductRFIDCntProcgStatus = '07' OR( ( _ActiveRFIDCount.StoreProductRFIDCntProcgStatus = '00' OR _ActiveRFIDCount.StoreProductRFIDCntProcgStatus = '01' ) AND _ActiveRFIDCount.StoreProdRFIDCntExprtnDteTme >= CurrentDateTime ) )  -- association [0..1]
LEFT OUTER JOIN C_CSPRCount AS _LastRFIDCount ON _LastRFIDCount.Store = Store AND _LastRFIDCount.StorageLocation = StorageLocation AND _LastRFIDCount.SubmissionDateTime = LastRFIDCountSubmissionDteTme AND _LastRFIDCount.StoreProductRFIDCntProcgStatus = '02'  -- association [0..1]
;