Skip to Content

Using offset for global variables in FOX

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Oct 11, 2005 at 06:54 PM

    if u use

    NEXTYEAR = CURYEAR + 0001.

    This should work.

    NS

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2005 at 02:27 PM

    Hi Harjan,

    Unfortunately you can not use offsets in the FOX formula. The only solutions is to find a good ABAP developper to create a routine!

    Regards,

    Patrick

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.