Hi All,
we have defined a batch job that runs at the end of every month. i.e before 24 hrs on 30th of evry month. The batch job creates invoices for the period from 1st -30th of every month.
In the variant,we have defined the date as variable and selected the option" last day of month". I think this option means that the date range is 1st onwards till 30th of the mothh.
now for example we want to create invoices for the monh of june. so as scheduled, the batch job will run on 30th June before 24 hrs . But for any reason the batch job stops running due to any dump etc and after anaylsing the problem,we run the batch job again but let's say at 00.25 hrs (1st July), then the date selected for the batch re run is 1st july--1st july and the date settings of 1st june to 30th june is lost and so none of the invoices for the month of june are created.
Kindly advice how to solve this date problem so that even if the batch job fails and the job is run again on the next day (1st day of july), then the date in the variant shud consider the last month dates (i.e from 1st till 30th jun)
regds