cancel
Showing results for 
Search instead for 
Did you mean: 

Background job scheduling with Dynamic change variant

Former Member
0 Kudos

Dear All,

I got a requirement where i need to schedule a background job which will run on daily basis and the variant will change every Month. So, how shall i pass the variant. it should be automated.

Please reply with a needful.

Best Regards

Narendar

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Narendar,

There are standard SAP dynamic date variables available. When saving your program variant, select "Selection Variable" > Dynamic date calculation. Here SAP will allow you to enter parameters that will calculate dates at runtime. Standard variables are

Current Date

From month start to today

Current date +/- ??? days

current date +/- ??? work days

First day of current month

nth working day of current month

First day of next month

First day of previous month

Last day of previous month

Last Day of the Current Month

First quarter ????

Second quarter ????

Third quarter ????

Fourth quarter ????

Current date - xxx,current date + yyy

Date - xxx, Date + yyy (work days)

Previous month

Current period

(Beginning of mth-xx months, end of mth+yy months)

If these are not adequate, then you can engage a programmer to create your own, which you can update using your own rules.

Check out the online help on the subject

http://help.sap.com/saphelp_erp60_sp/helpdata/en/c0/980398e58611d194cc00a0c94260a5/frameset.htm

Rgds,

DB49

Former Member
0 Kudos

The basic parameters cannot change,

Add multiplee variants in to steps and assign them a dynamic date, so they are picked up only at that date!! It also depends on what the job is!