cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to setup dynamic date variant for 01-Jan-xx to current day-1

Former Member
0 Kudos

Hi All

I'm working on 3.1 and trying to create a batchjob for ABAP query with dynamic date selection from 01-Jan-2009 to current date -1.

But I didn't find any option for the requirement. The job should execute 1st day of every month for the period of 1st day of the year to last day of the previous month.

Please help me to find the solution.

Thanks

KS

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hai Seshu and New Journey,

In a report, if you have selection dates and created a variant with a particular dates (FROM and TO).

And you include the program in the Sm36 Batch job with the variant,

System will run every month 1, as per schedule

  • BUT data display only for the dates mentioned in the Variant.*

To achieve From some particular date to TILL DATE

ask abaper to make changes in the program so that if the program or report

executed with selction screen

Bill Date 01.08.2011 to (blank)

System should execute from 01.01.2011 to 11.08.2011 (till date)

In case if you want data for one you can enter the day in both places.

Now Make a variant with

Bill Date 01.01.2011 to (blank)

and schedule the job on 31 of every month and you will get the desired data in your INBOX

Regards,

Mani

Former Member
0 Kudos

Hello Friends,

I am also in need of the answer to the above question..does any one have suggestions???

Thank you.

kkafoury1
Active Participant
0 Kudos

Hi Seshu,

Please kindly consider creating a variant with the required dynamic selection

then let the batch job use that variant.

Best regards.