Skip to Content
0
Former Member
May 30, 2008 at 09:20 AM

Fox Formula Syntax error

354 Views

Hi All,

Even though the syntax is correct in the belwo mentioned code .I am encountering problem with code in line mentioned for CYEAR = TMVL(PYEAR,-1).

Below is the error:

A comma and other arguments were expected instead of )

Syntax error in row 13, column 27

DATA IB TYPE ZDG_CIDVB.

DATA CLUSTER TYPE ZDG_CCLST.

DATA REGION TYPE ZDG_CREGN.

DATA CUSTOMER TYPE ZDG_CTCUS.

DATA PYEAR TYPE 0FISCYEAR.

DATA CYEAR TYPE 0FISCYEAR.

CLUSTER = VARV(ZDG_CCLST_C_01).

REGION = VARV(ZDG_CREGN_C_01).

CUSTOMER = VARV(ZDG_CTCUS_C_01).

PYEAR = VARV (ZDG_FYEAR_C_01).

CYEAR = TMVL(PYEAR,-1).

FOREACH IB.

IF IB <> #.

{ZDG_KGVLE,K4,PYEAR,ZDG_TCDEP, CLUSTER,IB,REGION,CUSTOMER,0000000001,S01,60,CS} =

({ZDG_KVOLC,K4,PYEAR,ZDG_TCDEP, CLUSTER,IB,REGION,CUSTOMER,0000000001,S01,60,CS} - {ZDG_KVOLC,K4,CYEAR,ZDG_TCDEP, CLUSTER,IB,REGION,CUSTOMER,0000000002,S00,60,CS}) /

{ZDG_KVOLC,K4,CYEAR,ZDG_TCDEP, CLUSTER,IB,REGION,CUSTOMER,0000000002,S00,60,CS}.

ENDIF.

ENDFOR.