cancel
Showing results for 
Search instead for 
Did you mean: 

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

ravi_rajput
Participant
0 Kudos

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 ?

Accepted Solutions (0)

Answers (0)