@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 <> ''
/*+[internal] {
"BASEINFO":
{
"FROM ":
[
"I_MATERIALDOCUMENTRECORD",
"I_PLANT",
"I_STORAGELOCATION"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Depth:
1
2
3
4
5
All
Reload
Mmim_MatDocFlowIssuingStatus view