cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with TMVL function

Former Member
0 Kudos

Hi,

The following is part of the code in my FOX Formula:

DATA ZFPY TYPE 0FISCPER.

DATA ZFPY2 TYPE 0FISCPER.

ZFPY = VARV(FPY_01).

ZFPY2 = TMVL(ZFPY,2).

When I click on the "Check Formula" button, I get the following error message:

Error : A comma and other arguments were expected instead of )

Info : Syntax error in row 5, column 20.

The same formula doesnt give me an error in another Infor-provider.

I am not able to diagnose the cause for this error! Don't know if the following info is relevant for the problem, but I thought I will give as much info as I can:

The Aggregation level is built on a Multi-provider which contains my planning cube and ICSNAP1 (The Snapshot cube for Stocks - as built based on the relevant How-To Guide).

Help would be greatly appreciated!

Regards

Sriram

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Are are you also using 0calmonth in the infoprovider?

If so, you may have to give the fiscal year variant after the offset.

Hope this helps you.

Varadharajan

Former Member
0 Kudos

Hi,

The problem was with the Fiscal Year Variant only!! There is no space needed after the comma!!

Basically, the solution to this problem is that I added the Fiscal Year Variant as the last argument in the TMVL function!! I however searched the whole documentation but couldnt find anything that stated about this syntax change.

Thanks everybody.

Regards

Sriram

Former Member
0 Kudos

Hi,

could it be that your fiscal year variant was not defined in the filter? Normally you should not add the fiscal year variant in your function statement.

D

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sriram,

Couple of things to check. Firstly, is the variable FPY_01 a single value variable or a multivalue? In the latter case, VARV wont work.

Also, which is row 5? If its the statement assigning ZFPY2, try giving a space between <b>,</b> and <b>2</b>.

Former Member
0 Kudos

Hi,

you need to set a space between your komma and 2:

ZFPY2 = TMVL(ZFPY, 2).

D