C_CSPRCount

DDL: C_CSPRCOUNT SQL: CCSPRCOUNT Type: view CONSUMPTION

Count Products with RFID: Count

C_CSPRCount is a Consumption CDS View that provides data about "Count Products with RFID: Count" in SAP S/4HANA. It reads from 1 data source (I_StoreProductRFIDCount) and exposes 19 fields with key field StoreProductRFIDCountUUID. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_StoreProductRFIDCount I_StoreProductRFIDCount from

Associations (3)

CardinalityTargetAliasCondition
[0..*] C_CSPRCountGTIN _CountGTIN $projection.StoreProductRFIDCountUUID = _CountGTIN.StoreProductRFIDCountUUID
[0..*] C_CSPRCountProductInstance _CountProductInstance $projection.StoreProductRFIDCountUUID = _CountProductInstance.StoreProductRFIDCountUUID
[0..*] C_CSPRCountDifference _CountDifference $projection.StoreProductRFIDCountUUID = _CountDifference.StoreProductRFIDCountUUID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CCSPRCOUNT view
EndUserText.label Count Products with RFID: Count view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.representativeKey StoreProductRFIDCountUUID view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY StoreProductRFIDCountUUID I_StoreProductRFIDCount StoreProductRFIDCountUUID
Store I_StoreProductRFIDCount Store
StorageLocation I_StoreProductRFIDCount StorageLocation
StoreProductRFIDCntProcgStatus I_StoreProductRFIDCount StoreProductRFIDCntProcgStatus
StoreProdRFIDCntExprtnDteTme I_StoreProductRFIDCount StoreProdRFIDCntExprtnDteTme
ApplicationLogHandle
CreationDateTime I_StoreProductRFIDCount CreationDateTime
SubmissionDateTime I_StoreProductRFIDCount SubmissionDateTime
NumberOfExpectedItems I_StoreProductRFIDCount NumberOfExpectedItems
NumberOfCountedItems I_StoreProductRFIDCountNumbers NumberOfCountedItems
NumberOfMissingItems I_StoreProductRFIDCountNumbers NumberOfMissingItems
NumberOfSurplusItems I_StoreProductRFIDCountNumbers NumberOfSurplusItems
NotPostedNrOfSubmdMissingItems I_StoreProductRFIDCount NotPostedNrOfSubmdMissingItems
NotPostedNrOfSubmdSurplusItems I_StoreProductRFIDCount NotPostedNrOfSubmdSurplusItems
SkippedNrOfSubmdMissingItems I_StoreProductRFIDCount SkippedNrOfSubmdMissingItems
SkippedNrOfSubmdSurplusItems I_StoreProductRFIDCount SkippedNrOfSubmdSurplusItems
_CountGTIN _CountGTIN
_CountProductInstance _CountProductInstance
_CountDifference _CountDifference
@AbapCatalog.sqlViewName: 'CCSPRCOUNT'
@EndUserText.label: 'Count Products with RFID: Count'

@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true

@AccessControl.authorizationCheck: #CHECK
@AccessControl.privilegedAssociations: ['_CountGTIN','_CountDifference','_CountProductInstance']
@ClientHandling.algorithm: #SESSION_VARIABLE

@VDM.viewType: #CONSUMPTION
@ObjectModel: {
    representativeKey: 'StoreProductRFIDCountUUID',
    usageType.serviceQuality: #C,
    usageType.sizeCategory: #L,
    usageType.dataClass: #MIXED
}
define view C_CSPRCount
  as select from I_StoreProductRFIDCount
    join         I_StoreProductRFIDCountNumbers on I_StoreProductRFIDCountNumbers.StoreProductRFIDCountUUID = I_StoreProductRFIDCount.StoreProductRFIDCountUUID
    join         I_StoreProductRFIDCountApplLog on I_StoreProductRFIDCountApplLog.StoreProductRFIDCountUUID = I_StoreProductRFIDCount.StoreProductRFIDCountUUID

  association [0..*] to C_CSPRCountGTIN            as _CountGTIN            on $projection.StoreProductRFIDCountUUID = _CountGTIN.StoreProductRFIDCountUUID
  association [0..*] to C_CSPRCountProductInstance as _CountProductInstance on $projection.StoreProductRFIDCountUUID = _CountProductInstance.StoreProductRFIDCountUUID
  association [0..*] to C_CSPRCountDifference      as _CountDifference      on $projection.StoreProductRFIDCountUUID = _CountDifference.StoreProductRFIDCountUUID
{
  key I_StoreProductRFIDCount.StoreProductRFIDCountUUID,

      I_StoreProductRFIDCount.Store,
      I_StoreProductRFIDCount.StorageLocation,
      I_StoreProductRFIDCount.StoreProductRFIDCntProcgStatus,
      I_StoreProductRFIDCount.StoreProdRFIDCntExprtnDteTme,
      cast(I_StoreProductRFIDCountApplLog.ApplicationLogHandle as abap.char(22)) as ApplicationLogHandle, // avoid edm.guid in metadata with automatic guid conversion by casting to standard string

      I_StoreProductRFIDCount.CreationDateTime,
      I_StoreProductRFIDCount.SubmissionDateTime,

      I_StoreProductRFIDCount.NumberOfExpectedItems,
      I_StoreProductRFIDCountNumbers.NumberOfCountedItems,
      I_StoreProductRFIDCountNumbers.NumberOfMissingItems,
      I_StoreProductRFIDCountNumbers.NumberOfSurplusItems,
      I_StoreProductRFIDCount.NotPostedNrOfSubmdMissingItems,
      I_StoreProductRFIDCount.NotPostedNrOfSubmdSurplusItems,
      I_StoreProductRFIDCount.SkippedNrOfSubmdMissingItems,
      I_StoreProductRFIDCount.SkippedNrOfSubmdSurplusItems,

      @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
      _CountGTIN,
      @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
      _CountProductInstance,
      @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
      _CountDifference
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_STOREPRODUCTRFIDCOUNT",
"I_STOREPRODUCTRFIDCOUNTAPPLLOG",
"I_STOREPRODUCTRFIDCOUNTNUMBERS"
],
"ASSOCIATED":
[
"C_CSPRCOUNTDIFFERENCE",
"C_CSPRCOUNTGTIN",
"C_CSPRCOUNTPRODUCTINSTANCE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/