I_APJ_JOB_USR_OVERVIEW

DDL: I_APJ_JOB_USR_OVERVIEW Type: view_entity Package: SBTI_APJ_RT

Application Job Users Overview

I_APJ_JOB_USR_OVERVIEW is a CDS View that provides data about "Application Job Users Overview" in SAP S/4HANA. It reads from 5 data sources (APJ_V_JCE_UNION, apj_d_job_exe, tbtco, tbtc_task, tbtc_task_det) and exposes 5 fields with key field job_name. It has 5 associations to related views. Part of development package SBTI_APJ_RT.

Data Sources (5)

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

Associations (5)

CardinalityTargetAliasCondition
[0..1] APJ_V_JOB_RUN_JT_UNION jt jt.job_template_name = jobs.job_template_name
[0..1] apj_d_jr_rest jr_rest jr_rest.job_name = task.jobname and jr_rest.job_count = task.jobcount
[0..1] I_User _jobowner jobs.created_by = _jobowner.UserID
[0..1] I_User _jobuser runs.authcknam = _jobuser.UserID
[0..*] I_APJ_JOB_USR_HISTORY _History _History.Objectid = task_det.extid

Annotations (2)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Application Job Users Overview view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY job_name tbtc_task jobname Name of Send Process
job_user tbtc_task_det authcknam User Name
prdmonthsMOendelseSendasjob_recurrency
job_ext_id tbtc_task_det extid External Key
_History _History

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_APJ_JOB_USR_OVERVIEW.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW I_APJ_JOB_USR_OVERVIEW AS
SELECT
  task.jobname AS job_name,
  task_det.authcknam AS job_user,
  case when task_det.periodic = 'X' then case when task_det.prdmins <> '00' then concat(task_det.prdmins, 'MI') when task_det.prdhours <> '00' then concat(task_det.prdhours, 'H') when task_det.prddays <> '000' then concat(task_det.prddays, 'D') when task_det.prdweeks <> '00' then concat(task_det.prdweeks, 'W') when task_det.prdmonths <> '00' then concat(task_det.prdmonths, 'MO') end else 'S' end as job_recurrency AS prdmonthsMOendelseSendasjob_recurrency,
  task_det.extid AS job_ext_id
FROM tbtc_task AS task
INNER JOIN tbtco AS runs ON /* join condition not captured in parsed metadata */
INNER JOIN apj_d_job_exe AS jobs ON /* join condition not captured in parsed metadata */
INNER JOIN tbtc_task_det AS task_det ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN APJ_V_JCE_UNION AS jce ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN APJ_V_JOB_RUN_JT_UNION AS jt ON jt.job_template_name = jobs.job_template_name  -- association [0..1]
LEFT OUTER JOIN apj_d_jr_rest AS jr_rest ON jr_rest.job_name = task.jobname AND jr_rest.job_count = task.jobcount  -- association [0..1]
LEFT OUTER JOIN I_User AS _jobowner ON jobs.created_by = _jobowner.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _jobuser ON runs.authcknam = _jobuser.UserID  -- association [0..1]
LEFT OUTER JOIN I_APJ_JOB_USR_HISTORY AS _History ON _History.Objectid = task_det.extid  -- association [0..*]
;