P_AppJobStatus
Application Job Status
P_AppJobStatus is a Consumption CDS View that provides data about "Application Job Status" in SAP S/4HANA. It reads from 2 data sources (I_PurchasingDocSimulationJob, tbtco) and exposes 4 fields with key fields ApplicationJobName, ApplicationJob.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchasingDocSimulationJob | _SimulationJob | from |
| tbtco | _tbtco | inner |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PAPLJOBSTATUS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | Application Job Status | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ApplicationJobName | I_PurchasingDocSimulationJob | ApplicationJobName | |
| KEY | ApplicationJob | I_PurchasingDocSimulationJob | ApplicationJob | |
| CreationDate | tbtco | sdldate | ||
| CreationTime | tbtco | sdltime |
@AbapCatalog.sqlViewName: 'PAPLJOBSTATUS'
@AbapCatalog.compiler.compareFilter: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
@EndUserText.label: 'Application Job Status'
@VDM.viewType: #CONSUMPTION
@VDM.private: true
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
define view P_AppJobStatus
as select from I_PurchasingDocSimulationJob as _SimulationJob
//To get the real time status of the job
inner join tbtco as _tbtco on _SimulationJob.ApplicationJobName = _tbtco.jobname
and _SimulationJob.ApplicationJob = _tbtco.jobcount
{
key _SimulationJob.ApplicationJobName,
key _SimulationJob.ApplicationJob,
//In order to get the status "Attended"
case
when _SimulationJob.ReferenceApplicationJobName is initial
then _tbtco.status
else 'X'
end as AsyncApplicationJobStatus,
_tbtco.sdldate as CreationDate,
_tbtco.sdltime as CreationTime
}
//as select from tbtco as _ApplicationLog
//{
// key jobname as ApplicationJobName,
// key jobcount as ApplicationJob,
//
// status as StatusCode,
// sdldate as CreationDate,
// sdltime as CreationTime
//}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PURCHASINGDOCSIMULATIONJOB",
"TBTCO"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- 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 Annotations — A Complete Guide
- 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