Apj_V_Job_Run_Aborted_Finished

DDL: APJ_V_JOB_RUN_ABORTED_FINISHED SQL: APJ_V_AF_JOBS Type: view Package: SBTI_APJ_RT

All aborted or finished application jobs

Apj_V_Job_Run_Aborted_Finished is a CDS View that provides data about "All aborted or finished application jobs" in SAP S/4HANA. It reads from 6 data sources and exposes 3 fields with key fields job_name, job_count. Part of development package SBTI_APJ_RT.

Data Sources (6)

SourceAliasJoin Type
APJ_V_JCE_UNION jce left_outer
apj_d_jobc_info jobc left_outer
apj_d_job_exe jobs from
tbtco runs inner
tbtc_task task left_outer
tbtc_task_det task_det left_outer

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName APJ_V_AF_JOBS view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label All aborted or finished application jobs view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY job_name apj_d_job_exe job_name
KEY job_count tbtco jobcount
jce_type_c apj_d_job_exe jce_type_c
@AbapCatalog.sqlViewName: 'APJ_V_AF_JOBS'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'All aborted or finished application jobs'
define view Apj_V_Job_Run_Aborted_Finished
  as select from    apj_d_job_exe   as jobs
    inner join      tbtco           as runs     on  jobs.job_name  = runs.jobname
                                                and runs.authckman = $session.client
    left outer join apj_d_jobc_info as jobc     on  runs.jobname  = jobc.job_name
                                                and runs.jobcount = jobc.job_count
    left outer join tbtc_task       as task     on  jobs.job_name = task.jobname
                                                and runs.jobcount = task.jobcount
    left outer join tbtc_task_det   as task_det on task.taskid = task_det.taskid
    left outer join APJ_V_JCE_UNION as jce      on  jce.job_catalog_entry_name    = jobs.job_catalog_entry
                                                and jce.job_catalog_entry_version = '0'
{
  key jobs.job_name                        as job_name,
  key runs.jobcount                        as job_count,
      coalesce(jobc.status,runs.status)    as job_run_status,
      jobs.jce_type_c                      as jce_type_c,
      jobs.job_catalog_entry               as job_catalog_entry_name,
      runs.periodic                        as job_periodic_ind,
      runs.prdmins                         as job_periodic_minutes,
      runs.prdhours                        as job_periodic_hours,
      runs.prddays                         as job_periodic_days,
      runs.prdweeks                        as job_periodic_weeks,
      runs.prdmonths                       as job_periodic_months,
      task_det.wdaycdir                    as job_task_workday_cdir,
      jce.delete_exit_class_name           as delete_exit_class_name
}
where
     runs.status = 'A'
  or runs.status = 'F'
  or jobc.status = 'A'
  or jobc.status = 'F';