ATOV_EXPORT_LOG

DDL: ATOV_EXPORT_LOG SQL: ATO_V_EL Type: view Package: S_ATO_COL_CORE

Export Log

ATOV_EXPORT_LOG is a CDS View that provides data about "Export Log" in SAP S/4HANA. It reads from 1 data source (ato_col_versions) and exposes 6 fields. It has 3 associations to related views. Part of development package S_ATO_COL_CORE.

Data Sources (1)

SourceAliasJoin Type
ato_col_versions Log from

Associations (3)

CardinalityTargetAliasCondition
[*] ATOV_TEXT_ACTION Action_Texts Action_Texts.code = Log.action
[*] ATOV_TEXT_ACTION_STATUS Action_Status_Texts Action_Status_Texts.code = action_status
[1] ATOV_USER Changed_By_Description Changed_By_Description.name = Log.last_changed_by

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName ATO_V_EL view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Export Log view

Fields (6)

KeyFieldSource TableSource FieldDescription
timestamp ato_col_versions timestamp
action ato_col_versions action
changed_by ato_col_versions last_changed_by
changed_at ato_col_versions last_changed_at
Action_Texts Action_Texts
Action_Status_Texts Action_Status_Texts
@AbapCatalog.sqlViewName: 'ATO_V_EL'
@ClientHandling:{ type: #INHERITED, algorithm: #SESSION_VARIABLE }
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Export Log'

define view ATOV_EXPORT_LOG
  as select from ato_col_versions as Log

  association [*] to ATOV_TEXT_ACTION        as Action_Texts           on Action_Texts.code = Log.action

  association [*] to ATOV_TEXT_ACTION_STATUS as Action_Status_Texts    on Action_Status_Texts.code = action_status

  association [1] to ATOV_USER               as Changed_By_Description on Changed_By_Description.name = Log.last_changed_by


{
  key Log.collection_id,
  key Log.version                                                         as collection_version,
      Log.ballog_handle,
      Log.timestamp, // = 0 -> Gateway uses changed_by as timestamp.

      Log.action,
      Log.action_variant,
      case
        when Log.action_status = 'P'
        then 'R'
        else Log.action_status
      end                                                                 as action_status,
      Log.action_duration,
      Log.last_changed_by                                                 as changed_by,
      coalesce( Changed_By_Description.description, Log.last_changed_by ) as changed_by_description,
      Log.last_changed_at                                                 as changed_at,

      /* Associations */
      Action_Texts,
      Action_Status_Texts
}
where
       Log.ballog_handle <> ''
  and  Log.timestamp     =  0
  and(
       Log.action        =  #ato_collection_action.'A'
    or Log.action        =  #ato_collection_action.'C'
  )