Skip to Content
0
Former Member
Nov 01, 2008 at 11:10 AM

Date not populating correctly in background (job)

14 Views

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

INITIALIZATION.

CLEAR : SO_DATE, SO_DATE[]. " Date should the previous

day's date

SO_DATE-SIGN = 'I'.

SO_DATE-OPTION = 'EQ'.

SO_DATE-LOW = SY-DATUM - 1.

SO_DATE-HIGH = SY-DATUM - 1.

APPEND SO_DATE.

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.

Regards

Prabumanoharan