Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Query on Deleting jobs programmatically

former_member699182
Participant
0 Likes
731

Hello Experts,

I have a requirement to delete jobs programatically.

ie. What we do in transaction SM37-> Provide filter conditions -> Edit-SelectAll -> Delete. I want to perform it using an ABAP program.

The Jobname, Username, Status and Start date and End date will be parameters in my pgm.

Is there any FM to delete the jobs based on the condiitions provided by the user?

Help needed.

Thanks.

1 ACCEPTED SOLUTION
Read only

Katan
Active Participant
0 Likes
689

You should be able to use standard report RSBTCDEL.

All the FMs you need to use to do this programmatically can be found in this report. 

Notably

BP_JOB_SELECT

BP_JOB_DELETE

Hope that helps.

Thanks,

Katan

Hello Experts,

I have a requirement to delete jobs programatically.

ie. What we do in transaction SM37-> Provide filter conditions -> Edit-SelectAll -> Delete. I want to perform it using an ABAP program.

The Jobname, Username, Status and Start date and End date will be parameters in my pgm.

Is there any FM to delete the jobs based on the condiitions provided by the user?

Help needed.

Thanks.

3 REPLIES 3
Read only

Katan
Active Participant
0 Likes
690

You should be able to use standard report RSBTCDEL.

All the FMs you need to use to do this programmatically can be found in this report. 

Notably

BP_JOB_SELECT

BP_JOB_DELETE

Hope that helps.

Thanks,

Katan

Read only

0 Likes
689

I guess i'll have to do SELECT first and based on the list selected I have to do DELETE right?

Thanks.

Read only

Katan
Active Participant
0 Likes
689

Yep that's right.