Mmim_MatDocFlowReceivingStatus

DDL: MMIM_MATDOCFLOWRECEIVINGSTATUS Type: view_entity Package: MBND_CLOUD_MATDOC

Status Receiving

Mmim_MatDocFlowReceivingStatus is a CDS View that provides data about "Status Receiving" in SAP S/4HANA. It reads from 1 data source (I_MaterialDocumentRecord) and exposes 7 fields with key fields MaterialDocument, MaterialDocumentYear, MaterialDocumentItem. Part of development package MBND_CLOUD_MATDOC.

Data Sources (1)

SourceAliasJoin Type
I_MaterialDocumentRecord I_MaterialDocumentRecord from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Status Receiving view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
DataAging.noAgingRestriction true view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY MaterialDocument
KEY MaterialDocumentYear MaterialDocumentYear
KEY MaterialDocumentItem MaterialDocumentItem
Status
Plant Plant
IssuingOrReceivingPlant IssuingOrReceivingPlant
GoodsMovementType GoodsMovementType
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED
@EndUserText.label: 'Status Receiving'
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass:#MIXED
@DataAging.noAgingRestriction:true

define view entity Mmim_MatDocFlowReceivingStatus
  as select from I_MaterialDocumentRecord
{
  key cast(concat(MaterialDocument, cast( ( cast(MaterialDocumentItem as abap.int2) + 1 ) as char20 ) ) as char20 ) as MaterialDocument, 
//  key cast(concat(concat(MaterialDocument, '/'), cast( ( cast(MaterialDocumentItem as abap.int2) + 1 ) as char20 ) ) as char20 ) as MaterialDocument, 

//  key cast(concat_with_space(MaterialDocument, cast( ( cast(MaterialDocumentItem as abap.int2) + 1 ) as char11 ), 1 ) as char20 ) as MaterialDocument,

  key MaterialDocumentYear,
  key MaterialDocumentItem,
      cast('01' as char4)                                                                                           as Status,
      case when DebitCreditCode = 'S'
       then
         concat_with_space(I_MaterialDocumentRecord._Plant.PlantName, Plant, 1)         
       else
         concat_with_space(I_MaterialDocumentRecord._IssuingOrReceivingPlant.PlantName, IssuingOrReceivingPlant, 1)         
      end                                                                                                           as PlantName,
      case when DebitCreditCode = 'S'
       then
         concat_with_space(I_MaterialDocumentRecord._StorageLocation.StorageLocationName, StorageLocation, 1)
//         StorageLocation         

       else
         concat_with_space(I_MaterialDocumentRecord._IssuingOrReceivingStorageLoc.StorageLocationName, IssuingOrReceivingStorageLoc, 1)        
//         IssuingOrReceivingStorageLoc

      end                                                                                                           as StorageLocation,
      case when DebitCreditCode = 'S'
       then
         InventoryStockType         
       else
         IssuingOrReceivingStockType         
      end                                                                                                           as StockType,
       Plant,
       IssuingOrReceivingPlant,
       GoodsMovementType
}
where
      IsAutomaticallyCreated     = ''
  and MaterialDocumentRecordType = 'MDOC'
  and IssuingOrReceivingStockType <> ''