I_FldLogsBookStock

DDL: I_FLDLOGSBOOKSTOCK SQL: IFLBOOKSTK Type: view BASIC

Book Stock View for Field Logistics

I_FldLogsBookStock is a Basic CDS View that provides data about "Book Stock View for Field Logistics" in SAP S/4HANA. It reads from 2 data sources (I_FldLogsPlantBasic, matdoc) and exposes 5 fields.

Data Sources (2)

SourceAliasJoin Type
I_FldLogsPlantBasic I_FldLogsPlantBasic inner
matdoc matdoc from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName IFLBOOKSTK view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Book Stock View for Field Logistics view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #C view
VDM.viewType #BASIC view

Fields (5)

KeyFieldSource TableSource FieldDescription
Material _matStock matbf
FldLogsRemotePlant _matStock werks
RemoteStorageLocation _matStock lgort_sid
MatlWrhsStkQtyOnPlantLvl
StockUnit _matStock meins
@AbapCatalog.sqlViewName: 'IFLBOOKSTK'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Book Stock View for Field Logistics'
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.serviceQuality: #C
@VDM.viewType: #BASIC

define view I_FldLogsBookStock
  as select from matdoc _matStock
    inner join   I_FldLogsPlantBasic _FLPlant on _FLPlant.Plant = _matStock.werks
  //                                              and _matStock.lbbsa_sid =  '01'

  //                                              and _matStock.lgort_sid <> ''


{
  _matStock.matbf          as Material,
  _matStock.werks          as FldLogsRemotePlant,
  _matStock.lgort_sid      as RemoteStorageLocation,
  sum(_matStock.stock_qty) as MatlWrhsStkQtyOnPlantLvl,
  _matStock.meins          as StockUnit
}

where
      _matStock.lbbsa_sid = '01'
  and _matStock.lgort_sid is not null

group by
  _matStock.matbf,
  _matStock.werks,
  _matStock.lgort_sid,
  _matStock.meins
having
  sum(_matStock.stock_qty) > 0
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_FLDLOGSPLANTBASIC",
"MATDOC"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/