Hi fellow ABAPers
I've writen a report which will be executed in background and foreground(when needed) as well , it has the following in the
CLEAR : SO_DATE, SO_DATE. " Date should the previous
SO_DATE-SIGN = 'I'.
SO_DATE-OPTION = 'EQ'.
SO_DATE-LOW = SY-DATUM - 1.
SO_DATE-HIGH = SY-DATUM - 1.
when run in foreground it is picking the previous day's date correctly, but when scheduled in background(as periodic job-daily) it takes the previous date of the day in which the job is actullay created(scheduled).
what is the reason behind this , and how to over come this.