Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Email notification


Hi All,

We are not able to receive the notifications for the jobs which goes to Status 'Console'. Please help how can I modify my code.

   String strLogFileName = "";
   String ccmsjob = "SAP_CcmsJob";
   String bwpc = "SAP_BW_ProcessChain";
   String bwp = "SAP_BW_Process";

    if((jcsPostRunningContext.getNewStatus().equals(JobStatus.Error)     ||
        jcsPostRunningContext.getNewStatus().equals(JobStatus.Overdue)   ||
        jcsPostRunningContext.getNewStatus().equals(JobStatus.Killed)    ||
        jcsPostRunningContext.getNewStatus().equals(JobStatus.Console))  

           && ! ( jcsJob.isActualJobChain())
           && ! ( ccmsjob.equals(jcsJob.getJobDefinition().getName()))
           && ! ( bwpc.equals(jcsJob.getJobDefinition().getName()))
           && ! ( bwp.equals(jcsJob.getJobDefinition().getName()))
          
 
       )

Thanks,

Tinku

replied

Hello,

There are some restrictions to triggers. One of them is that they do not fire for all statuses. As Console is not a final status, the post running trigger does not fire.

If you want to setup a proper notification system use the module.

Regards Gerben

2 View this answer in context
Not what you were looking for? View more on this topic or Ask a question