cancel
Showing results for 
Search instead for 
Did you mean: 

comma was expected and other arguments: VARC Fox Formula

Former Member
0 Kudos

Hi Experts!!

I'm trying to write a Fox formula to get the number of values of a value ranges variable, something like this:

<i>DATA CUANTOS TYPE I.

CUANTOS = VARC(0I_FPER).

DO CUANTOS TIMES.

FOREACH CATEGORIA, MATERIAL.

........ and go on.....</i>

(Where '0I_FPER' is a variable of type value range)

But, I'm getting the following error: <b>"comma was expected and other arguments insted of )"</b>

in this line: <b>CUANTOS = VARC(0I_FPER).</b>

I think the correct sintax for VARC is VARC(variable), so why is expecting more arguments???

Thnks a lot!!

Yolanda.

View Entire Topic
0 Kudos

Hello,

the message pops up if the characteristic is compounded. You have to

supply a local variable with the value of the superordinate characteristic.

You have to add the following lines to your code.

DATA FISCVARNT TYPE 0FISCVARNT.

...

FISCVARNT = 'K4'.

CUANTOS = VARC(0I_FPER, FISCVARNT).

Best regards

Hans-Juergen Schwab

Former Member
0 Kudos

You'r totally rigth!!!

This solved my problem.

Thnks a lot for your help!!!