Skip to Content
0
Oct 11, 2005 at 02:13 PM

Using offset for global variables in FOX

216 Views

Dear all,

I'm using global variables (i.e. defined in planning area)in my FOX formulas by using VARV-command.

I'm doing this for fiscal year, which has default value current year. However I'd like to use this variable also for next year thus creating the following code:

DATA CURYEAR TYPE 0FISCYEAR.

DATA NEXTYEAR TYPE 0FISCYEAR.

CURYEAR = VARV(Z021VA01).

NEXTYEAR = CURYEAR+1.

This gives a syntax error. Anabody any idea how I can use offset in the FOX for my variables?

Thanks in advance!

Kind regards, Harjan