Atov_Inventory_Base

DDL: ATOV_INVENTORY_BASE SQL: ATO_V_INVENT_B Type: view

Base View for Main ATO Inventory View

Atov_Inventory_Base is a CDS View that provides data about "Base View for Main ATO Inventory View" in SAP S/4HANA. It reads from 4 data sources (ATOV_Cl_FINAL, ato_changel_item, ato_items, ato_pk_items) and exposes 6 fields with key fields item_type, item_id, item_id, item_id.

Data Sources (4)

SourceAliasJoin Type
ATOV_Cl_FINAL ChangeList inner
ato_changel_item ChangeListItem union
ato_items ColItem from
ato_pk_items PkItem union

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName ATO_V_INVENT_B view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Base View for Main ATO Inventory View view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY item_type ato_items item_type
KEY item_id ato_items item_id
item_type
KEY item_id ato_pk_items item_id
item_type
KEY item_id ato_changel_item item_id
@AbapCatalog.sqlViewName: 'ATO_V_INVENT_B'
@ClientHandling:{ type: #INHERITED, algorithm: #SESSION_VARIABLE }
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Base View for Main ATO Inventory View'
define view Atov_Inventory_Base
  as select from ato_items as ColItem

{
  key ColItem.item_type,
  key ColItem.item_id,
      ColItem.last_notification as last_notification
}

union

select from ato_pk_items as PkItem

{
  key PkItem.item_type,
  key PkItem.item_id,
      PkItem.last_notification
}

union

//In import system also contains items that are ready for import but have never been imported

select from  ato_changel_item as ChangeListItem

// Filter items from ignored Changes Lists e.g. Migration Change Lists

  inner join ATOV_Cl_FINAL    as ChangeList on ChangeListItem.changelist_id = ChangeList.changelist_id //Filter out


{
  key ChangeListItem.item_type,
  key ChangeListItem.item_id,
      ChangeListItem.item_last_notification as last_notification
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"ATOV_CL_FINAL",
"ATO_CHANGEL_ITEM",
"ATO_ITEMS",
"ATO_PK_ITEMS"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/