cancel
Showing results for 
Search instead for 
Did you mean: 

Are active batch jobs buffered?

Former Member
0 Kudos

lets assume there is a batch job that updates sap table.

if the user cancels an active batch job , does the system roll back all the updates?

what if half of active job ran before we stopped it , therefore half of the document or table were created on the system..

Is cancelling a batch job never a good idea?

thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Cancelling a Job is a good Idea, unless it is creating a mesh i.e. Using very huge resources in system which is resulting in system performance.

But definitely when a job is cancelled manually or automatically  it should roll back changes that are done partially , becoz if not inconstancy in data.

But all ways roll backing concept is dependent on scenario ,

1.example : if a batch job is doing 100 invoices , & it done 60 invoices successfully & got cancelled then jobs is failed to create next 40 invoices only & already 60 is done , so it will not roll back 60 invoice.

2. If a batch job is creating a sales order in which it should pick 100 item in one sales order , in any middle it is failed, then already picked items are rolled back , because it is a single transaction.

Thanks,

Praveen

Former Member
0 Kudos

little correction with above " cancelling a job is not a Good Idea"

Answers (2)

Answers (2)

AtulKumarJain
Active Contributor
0 Kudos

Hi lee,

Yes cancelling the bacth job not a good idea.

BR

Atul

former_member188883
Active Contributor
0 Kudos

Hi Juan,

SAP keep the updated entries in the buffer until it performs a commit to database.

If the entries are committed to the database before u cancel the job, you shall be able to view those entries in the SAP table.

Hope this helps.

Regards,

Deepak Kori