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

Former Member
0 Likes
701

Hi,

I have a requirement where in i need to schedule a job once in week and last three and first three days of the month.

Can any one pls let me know how to do this. We are using SAP 4.6C .

Thanks,

Raj

Moderator message: please use more descriptive subject lines from now on.

Edited by: Thomas Zloch on Aug 24, 2010 5:44 PM

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
666

This will probably cause a few headaches, so why not just schedule it daily? What happens if it runs on the fourth or sixteenth day of a month? Is it a custom program? You could build in logic that quits processing right away if it is not running on a desired day.

Thomas

6 REPLIES 6
Read only

ThomasZloch
Active Contributor
0 Likes
667

This will probably cause a few headaches, so why not just schedule it daily? What happens if it runs on the fourth or sixteenth day of a month? Is it a custom program? You could build in logic that quits processing right away if it is not running on a desired day.

Thomas

Read only

0 Likes
666

Hi Thomas,

Thanks for the reply.

This is a standard program and needs to be run once in week and also last three and first three days of the month, due to business requirement. So cant schedule it daily.

Thanks,

Raju

Read only

0 Likes
666

Well, I'm also being handed requirements, and if I see problems, I will discuss them, and sometimes the requirements get changed accordingly.

You could schedule multiple jobs, a weekly one, one on the first, second, and third day for monthly execution, one on a 31st for monthly execution to solve the "last day of month" part, but I leave you with the remaining two.

I'm sure there will be quite complex suggestions coming (events, jobs to schedule jobs, external scheduler, ...) that might not be necessary in the first place.

Thomas

Read only

0 Likes
666

Create a "wrapper" program that submits the standard program only when needed. Run the wrapper program daily.

Rob

Read only

0 Likes
666

Hi Rob,

What is the Wrapper program?

Can you explain in brief what exactly i need to do in that program.

Thanks,

Raju

Read only

0 Likes
666

If you search the forum, you'll find plenty of examples.

Basically, the program looks at the current date and based on whether or not it is the first three days, last three days of the month or a certain day of the week, it submits the standard report with whatever selection criteria you need.

Rob