EITV_EXP_FILES

DDL: EITV_EXP_FILES SQL: EIT_V_FILES Type: view

Template Export Files

EITV_EXP_FILES is a CDS View that provides data about "Template Export Files" in SAP S/4HANA. It reads from 2 data sources (ATOV_COL_VER_KEY, eit_exp_file) and exposes 11 fields with key fields template_id, file_number. It has 6 associations to related views.

Data Sources (2)

SourceAliasJoin Type
ATOV_COL_VER_KEY Collection_Version_Key from
eit_exp_file file inner

Associations (6)

CardinalityTargetAliasCondition
[1] ato_col_versions Collection_Version_Detail Collection_Version_Detail.collection_id = Collection_Version_Key.collection_id and Collection_Version_Detail.version = Collection_Version_Key.collection_version and Collection_Version_Detail.timestamp = Collection_Version_Key.timestamp
[1] ATOV_USER Created_By_Description Created_By_Description.name = $projection.created_by
[*] EITV_EXP_FILES_ITEM Items Collection_Version_Key.collection_id = Items.template_id and Collection_Version_Key.collection_version = Items.file_number
[0..1] ATOV_LOG Latest_Log Latest_Log.collection_id = $projection.template_id and Latest_Log.collection_version = $projection.file_number and Latest_Log.ballog_handle = $projection.ballog_handle
[*] ATOV_LOG Log Log.collection_id = $projection.template_id and Log.collection_version = $projection.file_number and Log.is_outdated = ''
[1] ATOV_COL_VER_COUNT_LOGS Log_Counter Log_Counter.collection_id = $projection.template_id and Log_Counter.collection_version = $projection.file_number and Log_Counter.is_outdated = ''

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName EIT_V_FILES view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Template Export Files view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY template_id ATOV_COL_VER_KEY collection_id
KEY file_number ATOV_COL_VER_KEY collection_version
timestamp ATOV_COL_VER_KEY timestamp
created_by Collection_Version_Detail last_changed_by
created_at Collection_Version_Detail last_changed_at
file_name eit_exp_file file_name
_Created_By_Description Created_By_Description
_Items Items
_Latest_Log Latest_Log
_Log Log
_Log_Counter Log_Counter
@AbapCatalog.sqlViewName: 'EIT_V_FILES'
@ClientHandling:{ type: #INHERITED, algorithm: #SESSION_VARIABLE }
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Template Export Files'
define view EITV_EXP_FILES
  as

  select from  ATOV_COL_VER_KEY           as Collection_Version_Key
    inner join eit_exp_file               as file                       on  file.template_id      = Collection_Version_Key.collection_id // only existing files

                                                                        and file.template_version = Collection_Version_Key.collection_version

  association [1] to ato_col_versions     as Collection_Version_Detail  on  Collection_Version_Detail.collection_id = Collection_Version_Key.collection_id
                                                                        and Collection_Version_Detail.version       = Collection_Version_Key.collection_version
                                                                        and Collection_Version_Detail.timestamp     = Collection_Version_Key.timestamp

  association [1] to ATOV_USER            as Created_By_Description     on  Created_By_Description.name = $projection.created_by

  association [*] to EITV_EXP_FILES_ITEM  as Items                      on  Collection_Version_Key.collection_id      = Items.template_id
                                                                        and Collection_Version_Key.collection_version = Items.file_number
                                             
  association [0..1]    to ATOV_LOG       as Latest_Log                 on  Latest_Log.collection_id      = $projection.template_id
                                                                        and Latest_Log.collection_version = $projection.file_number
                                                                        and Latest_Log.ballog_handle      = $projection.ballog_handle
                                             
                                                                        
  association [*] to ATOV_LOG             as  Log                       on  Log.collection_id      = $projection.template_id
                                                                        and Log.collection_version = $projection.file_number
                                                                        and Log.is_outdated        = ''


  association [1]    to ATOV_COL_VER_COUNT_LOGS     as Log_Counter      on  Log_Counter.collection_id      = $projection.template_id
                                                                        and Log_Counter.collection_version = $projection.file_number
                                                                        and Log_Counter.is_outdated        = ''
                                                                        
                                                                        
{
  key Collection_Version_Key.collection_id      as template_id,
  key Collection_Version_Key.collection_version as file_number,
      Collection_Version_Key.timestamp,
      Collection_Version_Detail.last_changed_by as created_by,
      Collection_Version_Detail.last_changed_at as created_at,
      file.file_name,
      Collection_Version_Detail.ballog_handle   as ballog_handle,

      // ASSOCIATION

      Created_By_Description                    as _Created_By_Description,
      Items                                     as _Items,
      Latest_Log                                as _Latest_Log,        
      Log                                       as _Log,
      Log_Counter                               as _Log_Counter
}
where
  Collection_Version_Detail.action        = 'A'
  and // only successfully Assembleys

  Collection_Version_Detail.action_status = 'S'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"ATOV_COL_VER_KEY",
"ATO_COL_VERSIONS",
"EIT_EXP_FILE"
],
"ASSOCIATED":
[
"ATOV_COL_VER_COUNT_LOGS",
"ATOV_LOG",
"ATOV_USER",
"EITV_EXP_FILES_ITEM",
"ATO_COL_VERSIONS"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/