Skip to Content
Technical Articles
Author's profile photo Poulami Das

Schedule Background Job with Last Execution Date and Time or with a Time Window

Owing to various business scenarios, we might come across requirements where background jobs must be scheduled. Now, the most common way to schedule batch job is through the TCode SM36. Especially, in case of Interfaces through which SAP receives huge volumes of data from Third Party and must process them in one batch run, nightly in most cases, Background Jobs are critical.

However, few cases arise where SM36 does not meet our requirements sufficiently. For example, if the requirements are such that, the job must only run within a specific timeframe or the job should have a last execution date, SM36 fails to accommodate those cases.

For such scenarios, SAP has provided one standard program BTCAUX10 that will accommodate that business case. This SAP standard program allows users to schedule Batch Jobs with a specific Last Execution Date/Time or with Time Window.



Imagine a scenario where the Batch Job should run every night in specific interval within 8 pm to 9 pm. The standard program BTCAUX10 allows users to achieve this case. Executing the program will schedule a Batch Job. Following is the selection screen wherein we need to fill out the necessary parameters.

Enter Job name, Report name, Variant, Period Values, Start Execution Date/Time.

Now, if you want to specify the last execution date/time post which the Job should not run, then enter the Last Execution Date.


Now, if the requirement is to specify a particular timeframe, tick the below checkbox and enter the time window.



If needed, further restrictions can be put on execution date wherein you can run the Job only for working days. To achieve this, we need to maintain the Factory Calendar.


In this blog post, we have scheduled Background Job with Last Execution Date and with a specific Timeframe. Please go through the blog and let me know your thoughts on this. There are several SAP Standard programs to accomodate multitude of scenarios of Batch Jobs. An F4 on BTC* in SE38 TCode will provide you many options to explore.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Sandra Rossi
      Sandra Rossi

      For information, one guy has posted a blog post about BTCAUX10 two months ago: Schedule Job with Last Execution Date/Time or with Time Window using Report BTCAUX10 | SAP Blogs

      Author's profile photo Poulami Das
      Poulami Das
      Blog Post Author

      Oh is it? Thanks for informing. I did not check before posting. I will remove this blog then. No point having multiple blogs on same thing.