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

Batch job and system time zone problem

EricYu0912
Product and Topic Expert
Product and Topic Expert
0 Likes
2,901

Hi all,

I have a problem with batch job setting about the time zone.

My database data is stored in UTC while the SAP system is CET.

I want to run a report as batch job on 00:00:00 in UTC(for selecting the data from DB), it means CET could be 01:00:00 or 02:00:00(depands on if day light saving time). How can I set the batch job running time?

Can anyone help me out?

1 ACCEPTED SOLUTION
Read only

Domi
Active Contributor
0 Likes
1,819

Hi

That's the wrong approach!

Your report has to select the correct data (with the required timestamp) regardless of the execution time!

SY-DAYST may be usefull (https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abentime_system_fields.htm)


Also the planned job time is kind of suggestion - if there are no free resources (eg batch processes) or a system downtime, your job will start delayed (or even never "No Start After")


regards

Domi

3 REPLIES 3
Read only

Domi
Active Contributor
0 Likes
1,820

Hi

That's the wrong approach!

Your report has to select the correct data (with the required timestamp) regardless of the execution time!

SY-DAYST may be usefull (https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abentime_system_fields.htm)


Also the planned job time is kind of suggestion - if there are no free resources (eg batch processes) or a system downtime, your job will start delayed (or even never "No Start After")


regards

Domi

Read only

EricYu0912
Product and Topic Expert
Product and Topic Expert
0 Likes
1,819

Hi Domi,

Actually, what I need is to get the data of yesterday, so I think my approach would work in my case, which means my batch job would always run after 00:00:00 UTC.

But anyway, SY-DAYST would be useful, thank you for the suggestion.

Read only

matt
Active Contributor
0 Likes
1,819

Just run in at 11:00pm CET? Or must it be started as soon as midnight UTC? If that's the case, write a program that runs at 10:00pm CET. It figures out whether daylight saving is operational, and if it is, submits the actual job to run immediately, and if it isn't submits the actual job to run in one hour.