Skip to Content
0
Former Member
May 16, 2006 at 01:20 PM

operands in a FOX

44 Views

Hello BPS Experts,

in the rolling forecast code operands used are {fiscalyear/period, version}. does that mean we are trying to change the period with respect to version.?

rolling forecast code:

DATA CURROER TYPE 0FISCPER.

DATA FISCPER TYPE 0FISCPER.

DATA SUM TYPE F.

DATA DELTA TYPE F.

CURRPER = VARV('CURRPER').

FOREACH FISCPER.

IF FISCPER > CURRPER.

SUM = SUM + FISCPER, 320 }.

ENDIF.

ENDFOR.

DELTA = CURRPER, 320 - CURRPER,220}.

FOREACH FISCPER.

FISCPER,420 = CURRPER,220}.

ENDFOR.

CURRPER,420 = CURRPER,220}.

FOREACH FISCPER.

IF FISCPER > CURRPER.

FISCPER,420 = FISCPER,420 + DELTA * FISCPER, 420 / SUM.

ENDFOR.

if the above code:

1) the statment fiscper,320 means? does it mean the sales rev and other amounts in the records when the corresponding values of the fiscal period and version is 320?

2) sum = sum + fiscper,320} does it mean, we are adding the fiscal year periods or the amounts in the records for corresponding selection of fiscper and version 320?

Suggestionse are greatly appreciated.

Thanks,

BWer