Mmim_MatDocFlowIssuingStatus

DDL: MMIM_MATDOCFLOWISSUINGSTATUS SQL: MMIMMDOCFLWSTAIP Type: view

Status Issuing

Mmim_MatDocFlowIssuingStatus is a CDS View that provides data about "Status Issuing" in SAP S/4HANA. It reads from 1 data source (I_MaterialDocumentRecord) and exposes 5 fields with key fields MaterialDocument, MaterialDocumentYear, MaterialDocumentItem.

Data Sources (1)

SourceAliasJoin Type
I_MaterialDocumentRecord I_MaterialDocumentRecord from

Annotations (11)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName MMIMMDOCFLWSTAIP view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Status Issuing view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
DataAging.noAgingRestriction true view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY MaterialDocument
KEY MaterialDocumentYear MaterialDocumentYear
KEY MaterialDocumentItem MaterialDocumentItem
Status
PlantNamePlant1endasPlant
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.sqlViewName: 'MMIMMDOCFLWSTAIP'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.personalData.blocking: #NOT_REQUIRED
@EndUserText.label: 'Status Issuing'
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass:#MIXED
@ClientHandling.algorithm: #SESSION_VARIABLE
@DataAging.noAgingRestriction:true

define view Mmim_MatDocFlowIssuingStatus
  as select from I_MaterialDocumentRecord
{
//  key concat(MaterialDocument,MaterialDocumentItem) as MaterialDocument,

  key concat(MaterialDocument,cast(cast(MaterialDocumentItem as abap.int2) as char10 ) ) as MaterialDocument,
//  key concat(concat(MaterialDocument, '/'),cast(cast(MaterialDocumentItem as abap.int2) as char10 ) ) as MaterialDocument,

//  key concat_with_space(MaterialDocument,cast( ( cast(MaterialDocumentItem as abap.int2) ) as char9 ), 1) as MaterialDocument,

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

       else  
         concat_with_space(_StorageLocation.StorageLocationName, StorageLocation, 1)       
//         StorageLocation

      end                                           as StorageLocation,
      case when DebitCreditCode = 'S'
       then
         IssuingOrReceivingStockType        
       else         
         InventoryStockType
      end                                           as StockType

}
where
      IsAutomaticallyCreated     = ''
  and MaterialDocumentRecordType = 'MDOC'
  and IssuingOrReceivingStockType <> ''