XAJ_JOB_RUN_CHAIN

DDL: XAJ_JOB_RUN_CHAIN SQL: XAJ_JRUN_CHAIN Type: view

multistep application jobs

XAJ_JOB_RUN_CHAIN is a CDS View that provides data about "multistep application jobs" in SAP S/4HANA. It reads from 2 data sources (apj_d_job_chn, tbtcp) and exposes 8 fields. It has 3 associations to related views.

Data Sources (2)

SourceAliasJoin Type
apj_d_job_chn apj_d_job_chn from
tbtcp job inner

Associations (3)

CardinalityTargetAliasCondition
[0..1] apj_d_jr_info jr_info apj_d_job_chn.job_name = jr_info.job_name and jr_info.job_count = job.jobcount and apj_d_job_chn.step_count = jr_info.job_step_count
[1] APJ_V_JCE_UNION jce apj_d_job_chn.job_catalog_entry = jce.job_catalog_entry_name and jce.job_catalog_entry_version = '0'
[0..1] Apj_V_Spool_Exists_W_SC spool spool.jobname = apj_d_job_chn.job_name and spool.jobcount = job.jobcount and spool.stepcount = apj_d_job_chn.step_count

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName XAJ_JRUN_CHAIN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label multistep application jobs view

Fields (8)

KeyFieldSource TableSource FieldDescription
job_name apj_d_job_chn job_name Job No.
jobcount tbtcp jobcount Job number
step_count tbtcp stepcount Step no.
report tbtcp progname Tcode/program
variant tbtcp variant Variant Saved
app_rc tbtcp exitcode XPG exit code
spool spool
stepcount apj_d_job_chn step_count Step no.

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 XAJ_JOB_RUN_CHAIN.
-- 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.
-- SQL view name: XAJ_JRUN_CHAIN

CREATE VIEW XAJ_JOB_RUN_CHAIN AS
SELECT
  apj_d_job_chn.job_name AS job_name,
  job.jobcount AS jobcount,
  job.stepcount AS step_count,
  job.progname AS report,
  job.variant AS variant,
  job.exitcode AS app_rc,
  spool,
  apj_d_job_chn.step_count AS stepcount
FROM apj_d_job_chn
INNER JOIN tbtcp AS job ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN apj_d_jr_info AS jr_info ON apj_d_job_chn.job_name = jr_info.job_name AND jr_info.job_count = job.jobcount AND apj_d_job_chn.step_count = jr_info.job_step_count  -- association [0..1]
LEFT OUTER JOIN APJ_V_JCE_UNION AS jce ON apj_d_job_chn.job_catalog_entry = jce.job_catalog_entry_name AND jce.job_catalog_entry_version = '0'  -- association [1]
LEFT OUTER JOIN Apj_V_Spool_Exists_W_SC AS spool ON spool.jobname = apj_d_job_chn.job_name AND spool.jobcount = job.jobcount AND spool.stepcount = apj_d_job_chn.step_count  -- association [0..1]
;