Skip to Content
0
Oct 21, 2020 at 03:40 PM

CL_APJ_RT=>Cancel Job Gives a dump in unmanaged behavior imp

63 Views

Hi All,

I have one scenario where i need to schedule/cancel jobs on Save button from UI5 Application via abap code.

I am using this code and it gives a dump.

cl_apj_rt_api=>cancel_job( EXPORTING iv_jobname = zjobname iv_jobcount = zjobcount ).

Internally it calls a FM (BP_JOB_DELETE)which has commit work as importing parameter and is always set as X.

(Personally i think this flag should have been exposed in the method so that we could have controlled it)

Also the syntax of opening new task/background task by wrapping the code in RFC is also not permitted.

Any pointers on how to handle scenarios like this ?