p_apj_job_run_chain
Application Job Run Chain
p_apj_job_run_chain is a CDS View that provides data about "Application Job Run Chain" in SAP S/4HANA. It reads from 1 data source (apj_d_job_chn) and exposes 8 fields. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| apj_d_job_chn | apj_d_job_chn | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| p_jobcount | btcjobcnt |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | tbtcp | job | apj_d_job_chn.job_name = job.jobname and job.jobcount = $parameters.p_jobcount and apj_d_job_chn.step_count = job.stepcount |
| [0..1] | apj_d_jr_info | jr_info | apj_d_job_chn.job_name = jr_info.job_name and jr_info.job_count = $parameters.p_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 = $parameters.p_jobcount and spool.stepcount = apj_d_job_chn.step_count |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | P_APJ_JR_CHAIN | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Application Job Run Chain | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| job_name | job_name | Job No. | ||
| step_count | ||||
| report | ||||
| variant | ||||
| app_rc | job | exitcode | XPG exit code | |
| spool | spool | |||
| jobcount | ||||
| 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 p_apj_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: P_APJ_JR_CHAIN
-- Parameters: p_jobcount : btcjobcnt
CREATE VIEW p_apj_job_run_chain AS
SELECT
job_name,
coalesce( job.stepcount, step_count ) AS step_count,
coalesce( job.progname, report ) AS report,
coalesce( job.variant, variant ) AS variant,
job.exitcode AS app_rc,
spool,
$parameters.p_jobcount AS jobcount,
apj_d_job_chn.step_count AS stepcount
FROM apj_d_job_chn
LEFT OUTER JOIN tbtcp AS job ON apj_d_job_chn.job_name = job.jobname AND job.jobcount = $parameters.p_jobcount AND apj_d_job_chn.step_count = job.stepcount -- association [0..1]
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 = $parameters.p_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 = $parameters.p_jobcount AND spool.stepcount = apj_d_job_chn.step_count -- association [0..1]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA