cancel
Showing results for 
Search instead for 
Did you mean: 

Sentence Vari on fox formulas 2004s

natalia_cristiano2
Participant
0 Kudos
88

Hi Gurus !! I need some help on an error for my code.

I have a fox formula that it works on 3.5 version but it doesn´t on 2004s.

The error message is " Error en función VARI acceso con offset 2 cantidad de valores 1 " It means that the VARI sentence is on error with the offset 2, and the same for the rest of the offset. I`m trying to do this :

  • DECLARACION VARIABLES

DATA V_MONTO TYPE F.

DATA COUNT TYPE I.

DATA V_PER TYPE 0FISCPER3.

DATA V_YEAR TYPE 0FISCYEAR.

DATA V_FISCPER TYPE 0FISCPER.

*ASIGNACION VALOR VARIABLES

V_YEAR = VARV(VYEAR1).

V_MONTO = VARV(VAR_MONTOANUAL).

V_MONTO = V_MONTO/12.

COUNT=1.

DO.

V_PER = VARI(VPER,COUNT).

V_FISCPER=CONCAT(V_YEAR,V_PER).

{0AMOUNT,V_FISCPER, V_PER,V_YEAR} = V_MONTO.

COUNT = COUNT + 1.

IF COUNT = 13.

EXIT.

ENDIF.

ENDDO.

Any Clues ??

Thanks in advance !!

Natalia.

Accepted Solutions (0)

Answers (1)

Answers (1)

natalia_cristiano2
Participant
0 Kudos

I already solution it.